GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


Manpage of GLUCYLINDER

GLUCYLINDER

Index
 

NAME

gluCylinder - draw a cylinder

 

C SPECIFICATION

void f3gluCylinderfP( GLUquadric* fIquadfP,
f2quadfP
Specifies the quadrics object (created with %f3gluNewQuadricfP).
f2basefP
Specifies the radius of the cylinder at f2zfP = 0.
f2topfP
Specifies the radius of the cylinder at f2zfP = f2heightfP.
f2heightfP
Specifies the height of the cylinder.
f2slicesfP
Specifies the number of subdivisions around the f2zfP axis.
f2stacksfP
Specifies the number of subdivisions along the f2zfP axis.
 

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


 

Index

NAME
C SPECIFICATION
DESCRIPTION
SEE ALSO