1GLUCYLINDER(3G)                  OpenGL Manual                 GLUCYLINDER(3G)
2
3
4

NAME

6       gluCylinder - draw a cylinder
7

C SPECIFICATION

9       void gluCylinder(GLUquadric* quad, GLdouble base, GLdouble top,
10                        GLdouble height, GLint slices, GLint stacks);
11

PARAMETERS

13       quad
14           Specifies the quadrics object (created with gluNewQuadric()).
15
16       base
17           Specifies the radius of the cylinder at z = 0.
18
19       top
20           Specifies the radius of the cylinder at z = height.
21
22       height
23           Specifies the height of the cylinder.
24
25       slices
26           Specifies the number of subdivisions around the z axis.
27
28       stacks
29           Specifies the number of subdivisions along the z axis.
30

DESCRIPTION

32       gluCylinder draws a cylinder oriented along the z axis. The base of the
33       cylinder is placed at z = 0 and the top at z = height. Like a sphere, a
34       cylinder is subdivided around the z axis into slices and along the z
35       axis into stacks.
36
37       Note that if top is set to 0.0, this routine generates a cone.
38
39       If the orientation is set to GLU_OUTSIDE (with
40       gluQuadricOrientation()), then any generated normals point away from
41       the z axis. Otherwise, they point toward the z axis.
42
43       If texturing is turned on (with gluQuadricTexture()), then texture
44       coordinates are generated so that t ranges linearly from 0.0 at z = 0
45       to 1.0 at z = height, and s ranges from 0.0 at the +y axis, to 0.25 at
46       the +x axis, to 0.5 at the -y axis, to 0.75 at the \-x axis, and back
47       to 1.0 at the +y axis.
48

SEE ALSO

50       gluDisk(), gluNewQuadric(), gluPartialDisk(), gluQuadricTexture(),
51       gluSphere()
52
54       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
55       under the SGI Free Software B License. For details, see
56       http://oss.sgi.com/projects/FreeB/.
57

AUTHORS

59       opengl.org
60
61
62
63opengl.org                        07/13/2018                   GLUCYLINDER(3G)
Impressum