gl.DepthMask(flag)
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.
#GL_FALSE
, depth
buffer writing is disabled, otherwise, it is enabled; initially, depth buffer writing is enabled#GL_INVALID_OPERATION
is generated if gl.DepthMask()
is executed between the execution of gl.Begin() and the corresponding execution of gl.End()
#GL_DEPTH_WRITEMASK