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.

Description

gluOrtho2D sets up a two-dimensional orthographic viewing region. This is equivalent to calling glOrtho with near = -1 and far = 1 .

See Also

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/NeHe/lesson42.py Lines: 269
OpenGL-Demo PyOpenGL-Demo/redbook/lines.py Lines: 127
OpenGL-Demo PyOpenGL-Demo/redbook/smooth.py Lines: 89, 91
Gloopy gloopy/view/projection.py Lines: 67, 77

MathML Rendering

Powered by MathJax