GLUQUADRICDRAWSTYLE(3G)

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

πŸ’… gluQuadricDrawStyle β€” the GLU glow-up for your quadrics

okay bestie, welcome to the GLUQUADRICDRAWSTYLE(3G) page, aka the part of the GLU manual where you get to decide whether your quadric shows up dressed as a solid girlie, a wireframe icon, a silhouette queen, or just a lil cloud of points ✨


✨ NAME ✨

gluQuadricDrawStyle β€” specify the draw style desired for quadrics πŸŽ€

🌸 C SPECIFICATION 🌸

void gluQuadricDrawStyle( GLUquadric* quad,
                          GLenum draw )

that's it, that's the whole signature, no cap πŸ’–

πŸ¦‹ PARAMETERS πŸ¦‹

  • quad β€” Specifies the quadrics object (created with gluNewQuadric). it's literally the quadric you're about to serve looks on, you have to make it first with gluNewQuadric or there's nothing to style πŸ™ˆ
  • draw β€” Specifies the desired draw style. Valid values are GLU_FILL, GLU_LINE, GLU_SILHOUETTE, and GLU_POINT. four options, four vibes, pick your fighter πŸ‘‘

πŸ’œ DESCRIPTION πŸ’œ

gluQuadricDrawStyle</purl> specifies the draw style for quadrics rendered with quad. The legal values are as follows:

  • GLU_FILL β€” Quadrics are rendered with polygon primitives. The polygons are drawn in a counterclockwise fashion with respect to their normals (as defined with gluQuadricOrientation). so like, full solid main-character energy, and the winding order is lowkey tied to whatever orientation you set up with gluQuadricOrientation β€” it's giving ✨coordinated✨
  • GLU_LINE β€” Quadrics are rendered as a set of lines. wireframe moment, very see-through, very honest πŸ•ΈοΈ
  • GLU_SILHOUETTE β€” Quadrics are rendered as a set of lines, except that edges separating coplanar faces will not be drawn. okay so it's also lines but it's the picky version β€” if two faces are coplanar, the edge between them gets ghosted, no edge drawn there, so you only get the actual outline silhouette πŸ’…
  • GLU_POINT β€” Quadrics are rendered as a set of points. just dots bestie, a whole constellation of them ⭐
ngl the order you call this in matters to your sanity β€” set the draw style and then let the quadric cook πŸ”₯

🌈 SEE ALSO 🌈

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

go read those too, they're all part of the same quadric friend group 🫢


and that's the page, babe β€” this one lives in the 3G GLU manual, filed under GLUQUADRICDRAWSTYLE(3G), same name up top and down at the bottom like a little mirrored slay πŸ’–

πŸ“¦ where this page comes from