NAME

gluSphere - draw a sphere

C SPECIFICATION

void gglluuSSpphheerree( GLUquadric* _q_u_a_d,
                GLdouble _r_a_d_i_u_s,
                GLint _s_l_i_c_e_s,
                GLint _s_t_a_c_k_s )

delim $$

PARAMETERS

_q_u_a_d
Specifies the quadrics object (created with gglluuNNeewwQQuuaaddrriicc).
_r_a_d_i_u_s
Specifies the radius of the sphere.
_s_l_i_c_e_s
Specifies the number of subdivisions around the _z axis (similar to lines of longitude).
_s_t_a_c_k_s
Specifies the number of subdivisions along the _z axis (similar to lines of latitude).

DESCRIPTION

gglluuSSpphheerree draws a sphere of the given radius centered around the origin. The sphere is subdivided around the _z axis into slices and along the _z axis into stacks (similar to lines of longitude and latitude).

If the orientation is set to GGLLUU__OOUUTTSSIIDDEE (with gglluuQQuuaaddrriiccOOrriieennttaattiioonn), then any normals generated point away from the center of the sphere. Otherwise, they point toward the center of the sphere.

If texturing is turned on (with gglluuQQuuaaddrriiccTTeexxttuurree), then texture coordinates are generated so that _t ranges from 0.0 at $ z ~=~ -^"radius" $ to 1.0 at $ z ~=~ "radius" $ (_t increases linearly along longitudinal lines), and _s ranges from 0.0 at the +_y axis, to 0.25 at the +_x axis, to 0.5 at the -_y axis, to 0.75 at the -_x axis, and back to 1.0 at the +_y axis.

SEE ALSO

gglluuCCyylliinnddeerr((33GG)), gglluuDDiisskk((33GG)), gglluuNNeewwQQuuaaddrriicc((33GG)), gglluuPPaarrttiiaallDDiisskk((33GG)), gglluuQQuuaaddrriiccOOrriieennttaattiioonn((33GG)), gglluuQQuuaaddrriiccTTeexxttuurree((33GG))