table of contents
other versions
- Tumbleweed 3.2.2-2.1
- Leap-16.0
- Leap-15.6
| GLUTSOLIDSPHERE(3) | Library Functions Manual (local) | GLUTSOLIDSPHERE(3) |
NAME¶
glutSolidSphere —
Draw a solid sphere centered at the origin.
LIBRARY¶
OpenGLUT - geometry
SYNOPSIS¶
#include
<openglut.h>
void
glutSolidSphere(GLdouble
radius, GLint
slices, GLint
stacks);
PARAMETERS¶
radius
Sphere radius.
slices
The number of divisions around the z axis. (latitudal)
stacks
The number of divisions along the z axis. (longitudal)
DESCRIPTION¶
The glutSolidSphere() function draws a shaded sphere centered at the origin. The surface is created from quadrangles (except for triangles as degenerate quads at the poles) in a longitude/latitude pattern. The equatorial great circle lies in the xy-plane and is centered on the origin.
CAVEATS¶
The number of polygons representing the spherical surface is proportional to (slices*stacks).