Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The glClearDepth function specifies the clear value for the depth buffer.
Syntax
void WINAPI glClearDepth(
GLclampd depth
);
Parameters
-
depth
-
The depth value used when the depth buffer is cleared.
Return value
This function does not return a value.
Error codes
The following error code can be retrieved by the glGetError function.
Name | Meaning |
---|---|
|
The function was called between a call to glBegin and the corresponding call to glEnd. |
Remarks
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].
The following function retrieves information related to the glClearDepth function:
glGet with argument GL_DEPTH_CLEAR_VALUE
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|
Library |
|
DLL |
|