1GLUDISK(3G) GLUDISK(3G)
2
3
4
6 gluDisk - draw a disk
7
8
10 void gluDisk( GLUquadric* quad,
11 GLdouble inner,
12 GLdouble outer,
13 GLint slices,
14 GLint loops )
15
16
18 quad Specifies the quadrics object (created with gluNewQuadric).
19
20 inner Specifies the inner radius of the disk (may be 0).
21
22 outer Specifies the outer radius of the disk.
23
24 slices Specifies the number of subdivisions around the z axis.
25
26 loops Specifies the number of concentric rings about the origin into
27 which the disk is subdivided.
28
30 gluDisk renders a disk on the z = 0 plane. The disk has a radius of
31 outer, and contains a concentric circular hole with a radius of inner.
32 If inner is 0, then no hole is generated. The disk is subdivided around
33 the z axis into slices (like pizza slices), and also about the z axis
34 into rings (as specified by slices and loops, respectively).
35
36 With respect to orientation, the +z side of the disk is considered to
37 be "outside" (see gluQuadricOrientation). This means that if the ori‐
38 entation is set to GLU_OUTSIDE, then any normals generated point along
39 the +z axis. Otherwise, they point along the -z axis.
40
41 If texturing has been turned on (with gluQuadricTexture), texture coor‐
42 dinates are generated linearly such that where r=outer, the value at
43 (r, 0, 0) is (1, 0.5), at (0, r, 0) it is (0.5, 1), at (-r, 0, 0) it is
44 (0, 0.5), and at (0, -r, 0) it is (0.5, 0).
45
47 gluCylinder(3G), gluNewQuadric(3G), gluPartialDisk(3G),
48 gluQuadricOrientation(3G), gluQuadricTexture(3G), gluSphere(3G)
49
50
51
52 GLUDISK(3G)