Graphics Reference
In-Depth Information
Querying OpenGL ES State
Your application can modify many parameters to affect OpenGL ES 3.0's
operation. Although it's usually more efficient for an application to track
these values when it modifies them, you can retrieve any of the values
listed in Table 15-2 from the currently bound context. For each token, the
appropriate OpenGL ES 3.0 get function is provided.
Table 15-2
Application-Modifiable OpenGL ES State Queries
Minimum/
Initial Value
State Variable
Description
Get Function
GL_ARRAY_
BUFFER_BINDING
Currently bound
vertex attribute
array binding
0
glGetIntegerv
GL_VIEWPORT
Current size of the
viewport
glGetIntegerv
GL_ELEMENT_
ARRAY_BUFFER_
BINDING
Currently bound
element array
binding
0
glGetIntegerv
GL_VERTEX_
ARRAY_BINDING
Currently bound
vertex array binding
0
glGetIntegerv
GL_DEPTH_RANGE
Current depth range
values
(0, 1)
glGetFloatv
GL_LINE_WIDTH
Current line width
1.0
glGetFloatv
GL_POLYGON_
OFFSET_FACTOR
Current polygon
offset factor value
0
glGetFloatv
GL_POLYGON_
OFFSET_UNITS
Current polygon
offset units value
0
glGetFloatv
GL_CULL_FACE_
MODE
Current face culling
mode
GL_BACK glGetIntegerv
GL_FRONT_FACE
Current front-facing
vertex winding mode
GL_CCW
glGetIntegerv
GL_SAMPLE_
COVERAGE_VALUE
Current value
specified for
multisampling
sample coverage value
1
glGetFloatv
(continues)
 
 
 
Search WWH ::




Custom Search