glDepthRange

specify mapping of depth values from normalized device coordinates to window coordinates

Signature

glDepthRange( GLdouble ( nearVal ) , GLdouble ( farVal ) )-> void
glDepthRange( near , far )
glDepthRangef( GLfloat ( nearVal ) , GLfloat ( farVal ) )-> void
glDepthRangef( n , f )

Parameters

VariablesDescription
nearVal
Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0.
farVal
Specifies the mapping of the far clipping plane to window coordinates. 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.

glDepthRange
{LGPL} VisionEgg VisionEgg/Core.py Lines: 1366