gluOrtho2D

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.

QuickInfo

  Windows NT: Use version 3.5 and later.
  Windows: Use Windows 95 and later.
  Windows CE: Unsupported.
  Header: Declared in glu.h.
  Import Library: Link with glu32.lib.

See Also

glOrtho, gluPerspective