gluOrtho2D  21EXO37

[New - Windows 95, OEM Service Release 2]

The gluOrtho2D function defines a 2-D orthographic projection matrix.

void gluOrtho2D(

    GLdouble left,

 

    GLdouble right,

 

    GLdouble bottom,

 

    GLdouble top

 

   );

 

 

Parameters

left, right

The coordinates for the left and right vertical clipping planes.

bottom, top

The coordinates for the bottom and top horizontal clipping planes.

 

Remarks

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

See Also

, , gluPerspective