glFrustum

multiply the current matrix by a perspective matrix

Signature

glFrustum( GLdouble ( left ) , GLdouble ( right ) , GLdouble ( bottom ) , GLdouble ( top ) , GLdouble ( nearVal ) , GLdouble ( farVal ) )-> void
glFrustum( left , right , bottom , top , zNear , zFar )

Parameters

VariablesDescription
left, right
Specify the coordinates for the left and right vertical clipping planes.
bottom, top
Specify the coordinates for the bottom and top horizontal clipping planes.
nearVal, farVal
Specify the distances to the near and far depth clipping planes. Both distances must be positive.

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.

glFrustum
OpenGLContext tests/boundingvolume.py Lines: 76, 81
OpenGL-Demo PyOpenGL-Demo/GLUT/glutplane.py Lines: 243
OpenGL-Demo PyOpenGL-Demo/GLUT/gears.py Lines: 214
OpenGL-Demo PyOpenGL-Demo/GLE/maintest.py Lines: 53
OpenGL-Demo PyOpenGL-Demo/redbook/cube.py Lines: 80
{LGPL} VisionEgg VisionEgg/Core.py Lines: 1076
{LGPL} PyMT pymt/ui/window/__init__.py Lines: 19, 456
{GPL3} OpenGL-Programmable 01-direct.py Lines: 124
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 228
{GPL3} OpenGL-Programmable 03-array.py Lines: 135
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 261
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 133
{GPL3} OpenGL-Programmable 05-shader.py Lines: 220
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 239
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 154