cginternals / globjects

C++ library strictly wrapping OpenGL objects.
https://globjects.org
MIT License
539 stars 59 forks source link

Use glObjectLabel for debug names #244

Closed scheibel closed 10 years ago

scheibel commented 10 years ago

OpenGL provides two functions to set debug names for OpenGL objects https://www.opengl.org/sdk/docs/man/html/glObjectLabel.xhtml https://www.opengl.org/sdk/docs/man/html/glObjectPtrLabel.xhtml

These can be used if available instead of storing an std::string on the glo::Object superclass.

scheibel commented 10 years ago

It seems as if glObjectLabelEXT and glObjectPtrLabelEXT are defined in GL_EXT_debug_label and glObjectLabel and glObjectPtrLabel are defined in GL_KHR_debug (but are officially introduced in GL_ARB_debug_label).