Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is meant with the OpenGL object model?

meant model object OpenGL
0
Posted

What is meant with the OpenGL object model?

0

Related to the last question. OpenGL has grouped state and global state. Grouped state resides inside objects; state that can have multiple instances of a thing. Examples are buffer objects, texture objects, vertex array objects and framebuffer objects. Global state is simply state which is not associated with any object, because it only has one instance. An example of this is the GL_ARRAY_BUFFER_BINDING state which is a binding point for buffer object names used as vertex attributes. glBindBuffer() writes the buffer object name (the integer identifier) to GL_ARRAY_BUFFER_BINDING, and glVertexAttribPointer() reads it and writes the value to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, which is a state array associated with the currently bound vertex array object. This is something which is done a lot in OpenGL. You write to a global binding point, and another operation reads this binding point, and writes it to a state variable which belongs to an object. This extra indirection means that yo

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123