Enables or disables writing into the depth buffer.
OpenGL C bindings library: libGL.a
void glDepthMask(GLboolean Flag)
Flag | Specifies whether the depth buffer is enabled for writing. If Flag is 0, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. |
The glDepthMask subroutine specifies whether the depth buffer is enabled for writing. If the Flag parameter is zero (0), depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.
GL_INVALID_OPERATION | The glDepthMask subroutine is called between a call to glBegin and the corresponding call to glEnd. |
Associated gets for the glDepthMask subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_DEPTH_WRITEMASK.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glColorMask subroutine, glDepthFunc subroutine, glDepthRange subroutine, glIndexMask subroutine, glStencilMask subroutine.