OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition
by Dave Shreiner, Graham Sellers, John M. Kessenich, Bill M. Licea-Kane
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access