GLUQUADRICORIENTATION(3G)

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

πŸ’– GLUQUADRICORIENTATION πŸ’–

okay bestie, so you're deep in the 3G GLU manual and you found this one: gluQuadricOrientation. it's giving "tiny function, big consequences" ✨ let's get into it.


✨ NAME ✨

gluQuadricOrientation β€” specify inside/outside orientation for quadrics 🫢


🌸 C SPECIFICATION 🌸

void gluQuadricOrientation( GLUquadric* quad,
                            GLenum orientation )

πŸŽ€ PARAMETERS πŸŽ€

  • quad β€” the quadrics object you're working with, aka the one you made with gluNewQuadric. it's literally your little quadric baby πŸ₯Ί
  • orientation β€” the orientation you want. valid values are GLU_OUTSIDE and GLU_INSIDE. that's it, those are the only two, no cap.

πŸ’… DESCRIPTION πŸ’…

so gluQuadricOrientation says what kind of orientation you want for the quadrics rendered with quad. the way that this works is: you pick one of the orientation values, and that's the vibe your normals are on. here they are ⬇️

  • GLU_OUTSIDE β€” quadrics are drawn with normals pointing outward. this is the initial value, so if you never touch this function, congrats, this is your default πŸŽ‰
  • GLU_INSIDE β€” quadrics are drawn with normals pointing inward. flipped, reversed, inside-out sweater energy πŸ§₯
⚠️ important note bestie: the interpretation of "outward" and "inward" depends on the quadric being drawn. so don't come for me if your idea of outside is different from the quadric's idea of outside, because it's literally quadric-dependent. iykyk 😭

πŸ”₯ SEE ALSO πŸ”₯

  • gluNewQuadric(3G)
  • gluQuadricDrawStyle(3G)
  • gluQuadricNormals(3G)
  • gluQuadricTexture(3G)

okay and that's the whole page, periodt πŸ’œ this was the GLUQUADRICORIENTATION(3G) manual page β€” that's the footer line right there at the bottom, iconic of it. go forth and orient your quadrics correctly, main character πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from