Specifies the clear value for the depth buffer.
OpenGL C bindings library: libGL.a
void glClearDepth(GLclampd Depth)
Depth | Specifies the depth value used when the depth buffer is cleared. The default value is 0 (zero). |
The glClearDepth subroutine specifies the depth value used by the glClear subroutine to clear the depth buffer. Values specified by glClearDepth are clamped to the range [0,1].
GL_INVALID_OPERATION | The glClearDepth subroutine is called between a call to glBegin and the corresponding call to glEnd. |
Associated gets for the glClearDepth subroutine are as follows. (See the glGet subroutine for more information.)
glGet with argument GL_DEPTH_CLEAR_VALUE.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glBegin or glEnd subroutine, glClear subroutine.