GLUORTHO2D(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

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 pass near and far yourself β€” 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