The Query Commands

In addition to the basic commands, such as glGetIntegerv() and glIsEnabled(), to obtain the values of simple state variables, there are other specialized commands to return more complex state variables. The prototypes for these specialized commands are listed here. Some of these routines, such as glGetError() and glGetString(), were discussed in more detail in Chapter 1.

To find out when you need to use these commands and their corresponding symbolic constants, use the tables in the next section, “OpenGL State Variables” on Page 745.

void glGetActiveAtomicCounterBufferiv(GLuint program,                         GLuint bufferIndex,                         GLenum pname,                         GLint *params);

void glGetActiveAttrib ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.