gluOrtho2D

define a 2D orthographic projection matrix

Signature

gluOrtho2D( GLdouble ( left ) , GLdouble ( right ) , GLdouble ( bottom ) , GLdouble ( top ) )-> void
gluOrtho2D( left , right , bottom , top )
gluOrtho2D( GLdouble(left), GLdouble(right), GLdouble(bottom), GLdouble(top) ) -> None

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.

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.

gluOrtho2D
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 124
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 90, 92
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 276
Glinter Widget.py Lines: 666
Gloopy gloopy/view/projection.py Lines: 67, 77