[Front] [Reference] [Imp. Guide] [Index]

glDepthMask
[Prev] [Next]

glDepthMask: enable or disable writing into the depth buffer.

C Specification | Parameters | Description | Errors | Associated Gets | See Also

[Up] C Specification

void glDepthMask(
    GLboolean	 flag)

[Up] Parameters

flag
Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.

[Up] Description

glDepthMask specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.

[Up] Errors

[Up] Associated Gets

glGet with argument GL_DEPTH_WRITEMASK

[Up] See Also

glColorMask,
glDepthFunc,
glDepthRange,
glIndexMask,
glStencilMask

[Prev] [Next]
Front Reference [Imp. Guide] Index