GNU/Linux |
CentOS 5.3 |
|
![]() |
gluOrtho2D(3gl) |
![]() |
gluOrtho2D − define a 2D orthographic projection matrix
void gluOrtho2D( GLdouble left,
|
GLdouble right, | |
|
GLdouble bottom, | |
|
GLdouble top ) |

|
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. |
gluOrtho2D sets up a two-dimensional orthographic viewing region. This is equivalent to calling glOrtho with $ near ~=~ -1 $ and $ far ~=~ 1 $.
glOrtho(3G), gluPerspective(3G)
![]() |
gluOrtho2D(3gl) | ![]() |