glClearDepth

specify the clear value for the depth buffer

Signature

glClearDepth( GLdouble ( depth ) )-> void
glClearDepth( depth )
glClearDepthf( GLfloat ( depth ) )-> void
glClearDepthf( d )

Parameters

VariablesDescription
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 0 1 .

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 .

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
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 35
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 111
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 87
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 183
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 52
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 61
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 65
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 62
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 56
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 38
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 52
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 114
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 52
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 91
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 165
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 52
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 122
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 342
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 46
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 26
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 240
OpenGL-Demo py2exe-example/shader_test.py Lines: 27
{LGPL} pygl2d pygl2d/display.py Lines: 40
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 460
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 79
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 59
{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.py Lines: 34
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/Display3D.py Lines: 135
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/THF/Sketches/playground/Display3D.py Lines: 144
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Old/SoC/simplecube.py Lines: 63
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube_controlled.py Lines: 86
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube.py Lines: 34
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/Display3D.py Lines: 135
{LGPL or GPL or MPL} Kamaelia Sketches/THF/3D/playground/Display3D.py Lines: 144

MathML Rendering

Powered by MathJax