GL_GEQUAL
Passes if the incoming depth value is greater than or equal to the stored depth value.
GL_ALWAYS
Always passes.
The initial value of func
is GL_LESS
. Initially, depth testing is disabled.
Notes
Even if the depth buffer exists and the depth mask is nonzero, the depth buffer is not updated if the depth test is disabled.
Errors
GL_INVALID_ENUM
is generated if func
is not an accepted value.
GL_INVALID_OPERATION
is generated if glDepthFunc
is executed between the execution of glBegin
and the corresponding execution of glEnd
.
Associated Gets
glGet
with argument GL_DEPTH_FUNC
glIsEnabled
with argument GL_DEPTH_TEST
See Also
glDepthRange
, glEnable
, glPolygonOffset
glDepthMask
Enable or disable writing into the depth buffer
C Specification ...
Get OpenGL SuperBible: Comprehensive Tutorial and Reference, Fourth 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.