O
gluOrtho2D
Chapter 13
316
gluOrtho2D
gluOrtho2D: define a 2D orthographic projection matrix.
C Specification
void gluOrtho2D(
GLdouble left,
GLdouble right,
GLdouble bottom,
GLdouble top)
Parameters
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 atwo-dimensional orthographic viewing region. Thisis equivalent to
calling glOrtho with near = 1 and far = 1.
See Also
glOrtho,
gluPerspective