Move semantics
Bundas102 opened this issue · 0 comments
Bundas102 commented
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.