GLUDISK(3G)
π GLUDISK(3G) π
okay bestie, welcome to the gluDisk page β it's a 3G manual page, it lives in the GLU family, and it's literally just about drawing a disk. a whole page. for a disk. iconic.
β¨ NAME β¨
gluDisk β draw a disk πΏ
πΈ C SPECIFICATION πΈ
here's the whole thing, copy it exactly, no cap:
void gluDisk( GLUquadric* quad,
GLdouble inner,
GLdouble outer,
GLint slices,
GLint loops )
π PARAMETERS π
quadβ the quadrics object, fr. you make it withgluNewQuadric.innerβ the inner radius of the disk. it can be0, and yes that's allowed, that's the whole point.outerβ the outer radius of the disk. the big one. the main character radius.slicesβ how many subdivisions around the z axis.loopsβ how many concentric rings around the origin the disk gets chopped into.
π¦ DESCRIPTION π¦
so gluDisk renders a disk, and it does it on the z = 0 plane. the disk's radius is outer, and inside it there's a concentric circular hole with radius inner. if inner is 0? no hole. solid disk. we love a solid disk. π©
the disk gets subdivided around the z axis into slices (think pizza slices, genuinely) and also about the z axis into rings β those two things are slices and loops respectively, in that order, don't mix them up bestie.
now the orientation tea β: the +z side of the disk is considered "outside" β check gluQuadricOrientation for that whole situation. what this means is: if the orientation is set to GLU_OUTSIDE, then any normals that get generated point along the +z axis. otherwise, they point along the -z axis. periodt.
and if texturing is turned on (via gluQuadricTexture), texture coordinates get generated linearly, like this, where r=outer:
- at
(r, 0, 0)β(1, 0.5) - at
(0, r, 0)β(0.5, 1) - at
(-r, 0, 0)β(0, 0.5) - at
(0, -r, 0)β(0.5, 0)
slay. β¨
π SEE ALSO π
gluCylinder(3G)gluNewQuadric(3G)gluPartialDisk(3G)gluQuadricOrientation(3G)gluQuadricTexture(3G)gluSphere(3G)
okay that's the whole page, you're officially a disk girlie now π π«Ά this was GLUDISK(3G), same name at the top and at the bottom because that's how manual pages do, mwah, bye bestie ππΈ
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms