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 GLUDISK

GLUDISK

Index
 

NAME

gluDisk - draw a disk

 

C SPECIFICATION

void f3gluDiskfP( GLUquadric* fIquadfP,
f2quadfP
Specifies the quadrics object (created with %f3gluNewQuadricfP).
f2innerfP
Specifies the inner radius of the disk (may be 0).
f2outerfP
Specifies the outer radius of the disk.
f2slicesfP
Specifies the number of subdivisions around the f2zfP axis.
f2loopsfP
Specifies the number of concentric rings about the origin into which the disk is subdivided.
 

DESCRIPTION

%f3gluDiskfP renders a disk on the f2zfP = 0 plane. The disk has a radius of f2outerfP, and contains a concentric circular hole with a radius of f2innerfP. If f2innerfP is 0, then no hole is generated. The disk is subdivided around the f2zfP axis into slices (like pizza slices), and also about the f2zfP axis into rings (as specified by f2slicesfP and f2loopsfP, respectively). With respect to orientation, the +f2zfP side of the disk is considered to be "outside" (see %f3gluQuadricOrientationfP). This means that if the orientation is set to %f3GLU_OUTSIDEfP, then any normals generated point along the +f2zfP axis. Otherwise, they point along the -f2zfP axis. If texturing has been turned on (with %f3gluQuadricTexturefP), texture coordinates are generated linearly such that where $ r ~=~ "outer" $, the value at (f2rfP, 0, 0) is (1, 0.5), at (0, f2rfP, 0) it is (0.5, 1), at (-f2rfP, 0, 0) it is (0, 0.5), and at (0, -f2rfP, 0) it is (0.5, 0).  

SEE ALSO

%f3gluCylinder(3G)fP, %f3gluNewQuadric(3G)fP, %f3gluPartialDisk(3G)fP, %f3gluQuadricOrientation(3G)fP, %f3gluQuadricTexture(3G)fP, %f3gluSphere(3G)fP


 

Index

NAME
C SPECIFICATION
DESCRIPTION
SEE ALSO