Name

gluOrtho2D - define a 2D orthographic projection matrix

C Specification

void gluOrtho2D(GLfloat  left,
GLfloat  right,
GLfloat  bottom,
GLfloat  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 a two-dimensional orthographic viewing region. This is equivalent to calling glOrthof with near = -1 and far = 1.

See Also

gluPerspective.

Copyright

Copyright c 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.