OpenGL State Variables

The following pages contain tables that list the names of queryable state variables that OpenGL maintains. Variables are grouped by their related functionality. For each variable in a table, the token you pass to query its value, along with a description, its initial values, and a recommended glGet*() function are provided. Most state variables can be obtained using glGetBooleanv(), glGetIntegerv(), glGetFloatv(), or glGetDoublev(). The tables list the most appropriate one given the type of data to be returned. However, state variables for which glIsEnabled() is listed as the query command can also be obtained using any of glGetBooleanv(), glGetIntegerv(), glGetFloatv(), or glGetDoublev(). State variables for which any ...

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.