-> Click here to learn how to get live help <-
NAMEgluCylinder - draw a cylinder
C SPECIFICATIONvoid f3gluCylinderfP( GLUquadric* fIquadfP,
f2quadfP Specifies the quadrics object (created with %f3gluNewQuadricfP).
DESCRIPTION%f3gluCylinderfP draws a cylinder oriented along the f2zfP axis. The base of the cylinder is placed at f2zfP = 0, and the top at $ z ~=~ "height" $. Like a sphere, a cylinder is subdivided around the f2zfP axis into slices, and along the f2zfP axis into stacks. Note that if f2topfP is set to 0.0, this routine generates a cone. If the orientation is set to %f3GLU_OUTSIDEfP (with %f3gluQuadricOrientationfP), then any generated normals point away from the f2zfP axis. Otherwise, they point toward the f2zfP axis. If texturing is turned on (with %f3gluQuadricTexturefP), then texture coordinates are generated so that f2tfP ranges linearly from 0.0 at f2zfP = 0 to 1.0 at f2zfP = f2heightfP, and f2sfP ranges from 0.0 at the +f2yfP axis, to 0.25 at the +f2xfP axis, to 0.5 at the -f2yfP axis, to 0.75 at the -f2xfP axis, and back to 1.0 at the +f2yfP axis.
SEE ALSO%f3gluDisk(3G)fP, %f3gluNewQuadric(3G)fP, %f3gluPartialDisk(3G)fP, %f3gluQuadricTexture(3G)fP, %f3gluSphere(3G)fP