NAME
gluDisk
- draw a disk
C SPECIFICATION
void gglluuDDiisskk(
GLUquadric* _q_u_a_d,
GLdouble _i_n_n_e_r,
GLdouble _o_u_t_e_r,
GLint _s_l_i_c_e_s,
GLint _l_o_o_p_s )
delim $$
PARAMETERS
-
_q_u_a_d
-
Specifies the quadrics object (created with gglluuNNeewwQQuuaaddrriicc).
-
_i_n_n_e_r
-
Specifies the inner radius of the disk (may be 0).
-
_o_u_t_e_r
-
Specifies the outer radius of the disk.
-
_s_l_i_c_e_s
-
Specifies the number of subdivisions around the _z axis.
-
_l_o_o_p_s
-
Specifies the number of concentric rings about the origin into which
the disk is subdivided.
DESCRIPTION
gglluuDDiisskk renders a disk on the _z = 0 plane. The disk has a radius of
_o_u_t_e_r, and contains a concentric circular hole with a radius
of _i_n_n_e_r. If _i_n_n_e_r is 0, then no hole is generated. The disk is
subdivided around the _z axis into slices (like pizza slices), and also
about the _z axis into rings
(as specified by _s_l_i_c_e_s and _l_o_o_p_s, respectively).
With respect to orientation, the +_z side of the disk is considered to be
"outside" (see gglluuQQuuaaddrriiccOOrriieennttaattiioonn).
This means that if the
orientation is set to GGLLUU__OOUUTTSSIIDDEE, then any normals generated
point along the +_z axis. Otherwise, they point along the -_z
axis.
If texturing has been turned on (with gglluuQQuuaaddrriiccTTeexxttuurree),
texture coordinates are generated
linearly such that where $ r ~=~ "outer" $, the value at (_r, 0, 0) is
(1, 0.5), at (0, _r, 0) it is (0.5, 1), at (-_r, 0, 0)
it is (0, 0.5), and
at (0, -_r, 0) it is (0.5, 0).
SEE ALSO
gglluuCCyylliinnddeerr((33GG)), gglluuNNeewwQQuuaaddrriicc((33GG)), gglluuPPaarrttiiaallDDiisskk((33GG)),
gglluuQQuuaaddrriiccOOrriieennttaattiioonn((33GG)),
gglluuQQuuaaddrriiccTTeexxttuurree((33GG)), gglluuSSpphheerree((33GG))