GLUORTHO2D(3G)
GLUORTHO2D(3G) π
okay bestie, so this one lives in the GLU part of the OpenGL manual β section 3G, library functions, you know the vibe β¨
πΈ NAME πΈ
gluOrtho2D β define a 2D orthographic projection matrix π
β¨ C SPECIFICATION β¨
void gluOrtho2D( GLdouble left,
GLdouble right,
GLdouble bottom,
GLdouble top )
π¦ PARAMETERS π¦
left,rightβ these two are the coordinates for the left and right vertical clipping planes. so like, the walls on your left and your right π«Άbottom,topβ and these are the coordinates for the bottom and top horizontal clipping planes. floor and ceiling energy π
π DESCRIPTION π
gluOrtho2D sets up a two-dimensional orthographic viewing region. no perspective drama, no vanishing point nonsense, just flat and honest πΈ
and here's the tea: it's equivalent to calling glOrtho with near=β1 and far=1. that's literally it, that's the whole thing π
lowkey iconic that you don't even have to passnearandfaryourself β the function just fills them in for you β¨
π SEE ALSO π
glOrtho(3G)gluPerspective(3G)
and that's the page bestie!! π GLUORTHO2D(3G) β straight out of the GLU manual, section 3G, no cap. go forth and make your 2D stuff look correct π β¨π¦
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms