# glClearDepth

Definition: | include pGUI.e include opengl.e glClearDepth(atom depth)
Description: | The glClearDepth function specifies the clear value for the depth buffer. depth: The depth value used when the depth buffer is cleared.
pwa/p2js: | Not supported.
Remarks | GL_INVALID_OPERATION is generated if glClearDepth() is executed between the execution of glBegin() and the corresponding execution of glEnd(). The glClearDepth function specifies the depth value used by glClear to clear the depth buffer. Values specified by glClearDepth are clamped to the range [0,1]. Existing values can be retrieved via glGet with argument GL_DEPTH_CLEAR_VALUE (which can likewise yield GL_INVALID_OPERATION).
See Also: | glBegin, glClear, glEnd, glGet