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.

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/GLUT/glutplane.py Lines: 240
OpenGL-Demo PyOpenGL-Demo/GLUT/shader_test.py Lines: 26
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 46
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 172
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson4.py Lines: 60
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 181
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson2.py Lines: 50
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6.py Lines: 85
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson19.py Lines: 88
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson5.py Lines: 63
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson3.py Lines: 50
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson1.py Lines: 50
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson13.py Lines: 117
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson18.py Lines: 109
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson45.py Lines: 358
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson6-multi.py Lines: 120
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson23.py Lines: 59
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson11.py Lines: 32
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson12.py Lines: 35
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson16.py Lines: 50
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson26.py Lines: 54
OpenGL-Demo py2exe-example/shader_test.py Lines: 27
pyBzEdit pyBzEdit.py Lines: 404
{LGPL} pygl2d pygl2d/window.py Lines: 61
{LGPL or GPL or MPL} Kamaelia Sketches/MPS/Old/SoC/simplecube.py Lines: 45
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Spheres.py Lines: 40
{LGPL or GPL or MPL} Kamaelia Sketches/CL/Topology3D/Experiments/Cubes.py Lines: 60
{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/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: 17
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube.py Lines: 17
{LGPL or GPL or MPL} Kamaelia Sketches/THF/simplecube/simplecube_controlled.py Lines: 69
{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
{LGPL or GPL or MPL} Kamaelia Code/Python/Kamaelia/Kamaelia/UI/OpenGL/OpenGLDisplay.py Lines: 459