gleSetNumSides(3GLE)

πŸ“¦
version 3.1.2 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ gleSetNumSides β€” bestie edition ✨

ok so this is gleSetNumSides and gleGetNumSides, from the GLE manual (section 3GLE), and they're literally just here to let you peek at and/or change how round your cylinders are. πŸ’…


πŸŽ€ NAME πŸŽ€

gleSetNumSides, gleGetNumSides β€” query and set the cylinder roundness. that's it, that's the whole job. roundness management. iconic.


πŸ¦‹ SYNTAX πŸ¦‹

void gleSetNumSides (int nslices);
int gleGetNumSides (void);

🌸 ARGUMENTS 🌸

  • nslices β€” a positive integer number of slices. like, a real count of sides. no negatives, no zero, bestie, we're being serious.

πŸ’– DESCRIPTION πŸ’–

okok so. query and set the GLE cylinder and cone roundness. that's the vibe.

when GLE draws a cylinder or a cone, it approximates the circular cross-section with a polygon β€” and that polygon has 20 sides by default. not a real circle. a fake circle. a circle that's doing its best. 🫢

these subroutines let you change the default number of sides in this cross-section. so if 20 isn't the moment for you, you can say something.

here's the tea though:

  • a smaller number of sides can typically be drawn much faster β€” at the loss of some visual accuracy. speed vs. pretty. the eternal struggle. 😭
  • increasing the number of sides to more than 20 will typically have no noticeable visual effect. so like... you can, but why. it's giving diminishing returns. πŸ’€

πŸ’€ BUGS πŸ’€

multiple threads using GLE share a single global number of sides. so if one thread changes it, everybody's changing it. chaos. no cap.

(although this should be easily fixable because GLE does use a centralized graphics context β€” so like, the fix is right there, someone just has to do it πŸ™ˆ)


⭐ SEE ALSO ⭐

  • glePolyCylinder
  • glePolyCone

πŸ‘‘ AUTHOR πŸ‘‘

Linas Vepstas (linas@linas.org) β€” the legend himself. πŸŽ€


this has been GLE version 3.0, page gleSetNumSides(3GLE), brought to you by the GLE manual. stay round, bestie. slay πŸ’–βœ¨