function gluOrtho2D

OpenGL

Version 1 Vol. 3G

Define a 2D orthographic projection matrix

gluOrtho2D()
Parameters:
  • left
  • right – Specify the coordinates for the left and right vertical clipping planes.
  • bottom
  • top – Specify the coordinates for the bottom and top horizontal clipping planes.

Specification

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

Description

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

OpenGL

(c)1991-2006 Silicon Graphics, Inc. SGI Free Software B License.

Previous topic

function gluNurbsSurface

Next topic

function gluPartialDisk

This Page