Next: 11.2 glutSolidCubeglutWireCube
Up: 11 Geometric Object Rendering
Previous: 11 Geometric Object Rendering
glutSolidSphere and glutWireSphere render a solid or wireframe
sphere respectively.
Usage
void glutSolidSphere(GLdouble radius,
GLint slices, GLint stacks);
void glutWireSphere(GLdouble radius,
GLint slices, GLint stacks);
- radius
-
The radius of the sphere.
- slices
-
The number of subdivisions around the Z axis (similar to lines of longitude).
- stacks
-
The number of subdivisions along the Z axis (similar to lines of latitude).
Description
Renders a sphere centered at the modeling coordinates origin of the specified radius.
The sphere is subdivided around the Z axis into slices and along the Z
axis into stacks.
Next: 11.2 glutSolidCubeglutWireCube
Up: 11 Geometric Object Rendering
Previous: 11 Geometric Object Rendering
Mark Kilgard
Fri Feb 23 08:05:02 PST 1996