C++ dev confused about OpenGL objects
// create object unsigned int objectId = 0; glGenObject(1, &objectId); // bind/assign object to context glBindObject(GL_WINDOW_TARGET, objectId); // set options of object currently bound to GL_WINDOW_TARGET glSetObjectOption(GL_WINDOW_TARGET, GL_OPTION_WINDOW_WIDTH, 800); glSetObjectOption(GL_WINDOW_TARGET, GL_OPTION_WINDOW_HEIGHT, 600); // set context target back to default glBindObject(GL_WINDOW_TARGET, 0); I thought objects are created by ClassName objectName. I’ve failed to wrap my head […]
OpenGL: Cannot find GL_MAX_UNIFORM_BUFFERS and similar macro definitions
In OpenGL Superbible 5th and 6th editions (maybe others too), at the Uniform Buffer Objects part, it says this: