Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Glid ought to be able to adopt and release its objects. #13

Open
NicolBolas opened this issue Aug 25, 2013 · 0 comments
Open

Glid ought to be able to adopt and release its objects. #13

NicolBolas opened this issue Aug 25, 2013 · 0 comments

Comments

@NicolBolas
Copy link

GLid should be able to be constructed with GLuints that it did not create. This way, people can use arbitrary means to create, for example, texture objects, then pass them along to the GLDR texture class.

Similarly, GLid should be able to release its current object. This allows the user to abandon the current object. This would be useful if the user allowed the C++ object to outlive the OpenGL context, or more likely, to just be able to transfer ownership to themselves, allowing the resource to outlive the C++ object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants