1GLUDISK(3G) OpenGL Manual GLUDISK(3G)
2
3
4
6 gluDisk - draw a disk
7
9 void gluDisk(GLUquadric* quad, GLdouble inner, GLdouble outer,
10 GLint slices, GLint loops);
11
13 quad
14 Specifies the quadrics object (created with gluNewQuadric()).
15
16 inner
17 Specifies the inner radius of the disk (may be 0).
18
19 outer
20 Specifies the outer radius of the disk.
21
22 slices
23 Specifies the number of subdivisions around the z axis.
24
25 loops
26 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
38 orientation is set to GLU_OUTSIDE, then any normals generated point
39 along the +z axis. Otherwise, they point along the \-z axis.
40
41 If texturing has been turned on (with gluQuadricTexture()), texture
42 coordinates are generated linearly such that where r = outer, the value
43 at (r, 0, 0) is (1, 0.5), at (0, r, 0) it is (0.5, 1), at (\-r, 0, 0)
44 it is (0, 0.5), and at (0, \-r, 0) it is (0.5, 0).
45
47 gluCylinder(), gluNewQuadric(), gluPartialDisk(),
48 gluQuadricOrientation(), gluQuadricTexture(), gluSphere()
49
51 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
52 under the SGI Free Software B License. For details, see
53 http://oss.sgi.com/projects/FreeB/.
54
56 opengl.org
57
58
59
60opengl.org 06/10/2014 GLUDISK(3G)