Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

gluOrtho2D function

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

Syntax


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

Parameters

left

The coordinate for the left vertical clipping plane.

right

The coordinate for the right vertical clipping plane.

top

The coordinate for the top horizontal clipping plane.

bottom

The coordinate for the bottom 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 near = –1 and far = 1.

Requirements

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

 

 

Show:
© 2016 Microsoft