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

NAME

6       gluCylinder - draw a cylinder
7
8

C SPECIFICATION

10       void gluCylinder( GLUquadric* quad,
11                         GLdouble base,
12                         GLdouble top,
13                         GLdouble height,
14                         GLint slices,
15                         GLint stacks )
16
17

PARAMETERS

19       quad    Specifies the quadrics object (created with gluNewQuadric).
20
21       base    Specifies the radius of the cylinder at z = 0.
22
23       top     Specifies the radius of the cylinder at z = height.
24
25       height  Specifies the height of the cylinder.
26
27       slices  Specifies the number of subdivisions around the z axis.
28
29       stacks  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  gluQuadricOrientation),
40       then  any generated normals point away from the z axis. Otherwise, they
41       point toward the z axis.
42
43       If texturing is turned on (with gluQuadricTexture), then texture  coor‐
44       dinates  are  generated  so that t ranges linearly from 0.0 at z = 0 to
45       1.0 at z = height, and s ranges from 0.0 at the +y axis, to 0.25 at the
46       +x axis, to 0.5 at the -y axis, to 0.75 at the -x axis, and back to 1.0
47       at the +y axis.
48

SEE ALSO

50       gluDisk(3G),           gluNewQuadric(3G),           gluPartialDisk(3G),
51       gluQuadricTexture(3G), gluSphere(3G)
52
53
54
55                                                               GLUCYLINDER(3G)
Impressum