GLUTSOLIDSPHERE(3)
π GLUTSOLIDSPHERE(3) π
okay bestie, gather round, because we're talking about glutSolidSphere(3) from OpenGLUT β geometry division, she's iconic, she's serving spheres. β¨
πΈ NAME πΈ
glutSolidSphere β draws a solid sphere, and yes she is centered at the origin, no cap. π
π LIBRARY π
OpenGLUT β geometry, babes. that's the department. π
β¨ SYNOPSIS β¨
#include <openglut.h>
void
glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
like. that's the whole vibe. one function. three args. go off. π¦
π PARAMETERS π
radiusβ the radius of the sphere, obviously. how big we're going. πslicesβ the number of divisions around the z axis. (latitudal) πstacksβ the number of divisions along the z axis. (longitudal) π§
π DESCRIPTION π
so glutSolidSphere() draws a shaded sphere, and it's centered at the origin β main character placement fr fr. π
the surface is built out of quadrangles (except at the poles, where you get triangles acting as degenerate quads, because the poles are just like that π) and it's all laid out in a longitude/latitude pattern. very globe, very demure.
the equatorial great circle lies in the xy-plane and is centered on the origin. she's symmetrical, she's aligned, she ate. π
π CAVEATS π
the number of polygons representing the spherical surface is proportional to (slices*stacks). so like, don't come for me when your poly count explodes β that's just math doing math. not me cranking both numbers and wondering why my GPU is crying. π
π SEE ALSO π
glutWireSphere(3)β the wireframe sister, the see-through icon she is π¦
that's the whole page bestie, go draw some spheres and slay π
this one's from an UNDATED source, and the footer just says UNTITLED() β mysterious, unlabeled, lowkey giving anonymous baddie energy. periodt. π β¨
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms