Graphics Reference
In-Depth Information
Table 15-2
Application-Modifiable OpenGL ES State Queries (continued)
Minimum/
Initial Value
State Variable
Description
Get Function
Current stencil test
operator function
GL_STENCIL_
FUNC
GL_
ALWAYS
glGetIntegerv
GL_STENCIL_
VALUE_MASK
Current stencil test
value mask
1s
glGetIntegerv
GL_STENCIL_REF Current stencil test
reference value
0
glGetIntegerv
GL_STENCIL_
FAIL
Current operation for
stencil test failure
GL_KEEP glGetIntegerv
GL_STENCIL_
PASS_DEPTH_
FAIL
Current operation for
when the stencil test
passes, but the depth
test fails
GL_KEEP glGetIntegerv
GL_STENCIL_
PASS_DEPTH_
PASS
Current operation
when both the stencil
and depth tests pass
GL_KEEP glGetIntegerv
GL_STENCIL_
BACK_FUNC
Current back-facing
stencil test operator
function
GL_
ALWAYS
glGetIntegerv
Current back-facing
stencil test value mask
1s
GL_STENCIL_
BACK_VALUE_MASK
glGetIntegerv
GL_STENCIL_
BACK_REF
Current back-facing
stencil test reference
value
0
glGetIntegerv
GL_STENCIL_
BACK_FAIL
Current operation for
back-facing stencil
test failure
GL_KEEP glGetIntegerv
GL_STENCIL_
BACK_PASS_
DEPTH_FAIL
Current operation for
when the back-facing
stencil test passes, but
the depth test fails
GL_KEEP glGetIntegerv
GL_STENCIL_
BACK_PASS_
DEPTH_PASS
Current operation
when both the back-
facing stencil and
depth tests pass
GL_KEEP glGetIntegerv
(continues)
 
Search WWH ::




Custom Search