gluOrtho2D function

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

Syntax

void WINAPI gluOrtho2D(
   GLdouble left,
   GLdouble right,
   GLdouble bottom,
   GLdouble top,
);

Parameters

left

The coordinate for the left vertical clipping plane.

right

The coordinate for the right vertical clipping plane.

bottom

The coordinate for the bottom horizontal clipping plane.

top

The coordinate for the top horizontal clipping plane.

Return value

This function does not return a value.

Remarks

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

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Glu.h
Library
Glu32.lib
DLL
Glu32.dll

See also

glOrtho

gluPerspective