Export (0) Print
Expand All

gluOrtho2D function

Applies to: desktop apps only

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

Minimum supported server

Windows 2000 Server

Header

Glu.h

Library

Glu32.lib

DLL

Glu32.dll

See also

glOrtho
gluPerspective

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft