Name
gl.ClearDepth -- specify the clear value for the depth buffer
Synopsis
gl.ClearDepth(depth)
Function
gl.ClearDepth() specifies the depth value used by gl.Clear() to clear the depth buffer. Values specified by gl.ClearDepth() are clamped to the range 0 through 1.

Please consult an OpenGL reference manual for more information.

Inputs
depth
specifies the depth value used when the depth buffer is cleared; the initial value is 1
Errors
#GL_INVALID_OPERATION is generated if gl.ClearDepth() is executed between the execution of gl.Begin() and the corresponding execution of gl.End()

Associated gets
gl.Get() with argument #GL_DEPTH_CLEAR_VALUE


Show TOC