Name

glutSolidSphere,  glutWireSphere - render a solid or wire-
frame sphere respectively.

Python Specification

glutSolidSphere
	glutSolidSphere(radius, slices, stacks) -> None
glutWireSphere
	glutWireSphere(radius, slices, stacks) -> None

C Specification

void glutSolidSphere(GLdouble radius,
                     GLint slices, GLint stacks);
void glutWireSphere(GLdouble radius,
                    GLint slices, GLint stacks);

Parameters

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 ori-
gin  of  the  specified  radius.  The sphere is subdivided
around the Z axis into slices and along the  Z  axis  into
stacks.

See Also

glutSolidCube, glutSolidCone, glutSolidTorus, glutSolidDo-
decahedron,   glutSolidOctahedron,   glutSolidTetrahedron,
glutSolidIcosahedron, glutSolidTeapot

Author

Mark J. Kilgard (mjk@nvidia.com)

:: Documentation :: References :: GLUT ::
:: Index (n/a) ::