Signature
Parameters
Variables | Description |
---|---|
depth |
Specifies the depth value used when the depth buffer is cleared. The
initial value is 1.
|
Description
glClearDepth
specifies the depth value used by
glClear
to clear the depth buffer.
Values specified by
glClearDepth
are clamped to the range
.
Notes
The type of the
depth
parameter was
changed from GLclampf to GLfloat for
glClearDepthf
and from GLclampd to
GLdouble for
glClearDepth
. This change
is transparent to user code and is described in detail on
the
removedTypes
page.
Associated Gets
glGet
with argument
GL_DEPTH_CLEAR_VALUE
Version Support
glClearDepth | |
glClearDepthf |
See Also
glClear
,
removedTypes
Copyright
Copyright
1991-2006 Silicon Graphics, Inc.
Copyright
2010-2014 Khronos Group.
This document is licensed under the SGI Free Software B License.
For details, see
http://oss.sgi.com/projects/FreeB/
.
Sample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glClearDepth
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 459
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube_controlled.py
Lines: 87
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Examples/simplecube/simplecube.py
Lines: 34
{LGPL or GPL or MPL} Kamaelia
Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py
Lines: 144
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 460
{LGPL or GPL or MPL} Kamaelia
Sketches/THF/Packages/Kamaelia/Community/THF/Kamaelia/UI/OpenGL/OpenGLDisplay.py
Lines: 459