Name
gl.DepthMask -- enable or disable writing into the depth buffer
Synopsis
gl.DepthMask(flag)
Function
gl.DepthMask() 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.

Please consult an OpenGL reference manual for more information.

Inputs
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
Errors
#GL_INVALID_OPERATION is generated if gl.DepthMask() is executed between the execution of gl.Begin() and the corresponding execution of gl.End()

Associated gets
gl.Get() with argument #GL_DEPTH_WRITEMASK


Show TOC