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

Move semantics #16

Open
Bundas102 opened this issue Dec 1, 2019 · 0 comments
Open

Move semantics #16

Bundas102 opened this issue Dec 1, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@Bundas102
Copy link
Collaborator

Every OpenGL object wrapper class should follow move semantics. None of them should be copyable and all of them should be movable.
On move assigns we have to swap the OpenGL object names (ids) so the moved object's destructor can call the OpenGL delete function for the destroyed OpenGL object.
E.g. when a Program is move assigned we lose an OpenGL program name that we didn't delete.

@Bundas102 Bundas102 added the bug Something isn't working label Dec 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant