---
name: "gluOrtho2D"
section: "3x"
platform: "linux"
package: "xlibmesa-glu-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/gluOrtho2D"
---

# gluOrtho2D(3x)

define a 2D orthographic projection matrix

## NAME

**gluOrtho2D** - define a 2D orthographic projection matrix

## C SPECIFICATION

void **gluOrtho2D**( GLdouble *left*,

```
	GLdouble right,
	GLdouble bottom,
	GLdouble top )
```

delim $$

## 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.

## DESCRIPTION

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

## SEE ALSO

**glOrtho(3G)**, **gluPerspective(3G)**
