Skip to content

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

@NicolBolas

Description

@NicolBolas

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions