gleSetNumSides(3GLE)
β¨ 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 β
glePolyCylinderglePolyCone
π 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 πβ¨
π¦ where this page comes from
- debian bookworm: libgle3-dev 3.1.0-10 Β· GPL-2.0-only
- debian trixie: libgle3-dev 3.1.2-1+b2 Β· GPL-2.0-only
- ubuntu jammy: libgle3-dev 3.1.0-10 Β· GPL-2.0-only
- ubuntu noble: libgle3-dev 3.1.2-1build1 Β· GPL-2.0-only
- ubuntu questing: libgle3-dev 3.1.2-1build1
- ubuntu resolute: libgle3-dev 3.1.2-1build2 Β· GPL-2.0-only
- ubuntu stonking: libgle3-dev 3.1.2-1build2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms