GLUSPHERE(3G)
β¨ GLUSPHERE(3G) β¨
okay bestie, welcome to the GLUSPHERE page of the 3G manual π this one is short, sweet, and literally just draws you a whole entire sphere. no cap.
NAME π
gluSphere β draw a sphere
C SPECIFICATION π
void gluSphere( GLUquadric* quad,
GLdouble radius,
GLint slices,
GLint stacks )
PARAMETERS π¦
quadβ the quadrics object you're working with. it's the one you made earlier withgluNewQuadric, so likeβ¦ you already know her πradiusβ how big the sphere is. the radius, babe, that's the whole vibe.slicesβ how many subdivisions go around the z axis. think lines of longitude πstacksβ how many subdivisions go along the z axis. think lines of latitude πΈ
DESCRIPTION π
so gluSphere draws a sphere of the given radius, centered around the origin. periodt. β¨
the sphere gets subdivided around the z axis into slices, and along the z axis into stacks β which is giving lines of longitude and latitude, exactly like you'd expect π§
if the orientation is set to GLU_OUTSIDE (which you do with gluQuadricOrientation), then any normals it generates point away from the center of the sphere. otherwise? they point toward the center. lowkey important, don't skip this one π
if texturing is turned on (with gluQuadricTexture), then texture coordinates get generated so that:
tranges from0.0atz=βradiusto1.0atz=radiusβ andtincreases linearly along the longitudinal lines πsranges from0.0at the+yaxis, to0.25at the+xaxis, to0.5at the-yaxis, to0.75at the-xaxis, and back to1.0at the+yaxis π₯
so yeah, she wraps all the way around and comes home. iconic behavior tbh π«Ά
SEE ALSO π
gluCylinder(3G)gluDisk(3G)gluNewQuadric(3G)gluPartialDisk(3G)gluQuadricOrientation(3G)gluQuadricTexture(3G)
and that's the whole page, bestie π this was the <b>GLUSPHERE(3G)</b> manual page β go forth and render spheres, you absolute main character πβ¨π
π¦ 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