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 GLUSPHERE

GLUSPHERE

Index
 

NAME

gluSphere - draw a sphere

 

C SPECIFICATION

void f3gluSpherefP( GLUquadric* fIquadfP,
f2quadfP
Specifies the quadrics object (created with %f3gluNewQuadricfP).
f2radiusfP
Specifies the radius of the sphere.
f2slicesfP
Specifies the number of subdivisions around the f2zfP axis (similar to lines of longitude).
f2stacksfP
Specifies the number of subdivisions along the f2zfP axis (similar to lines of latitude).
 

DESCRIPTION

%f3gluSpherefP draws a sphere of the given radius centered around the origin. The sphere is subdivided around the f2zfP axis into slices and along the f2zfP axis into stacks (similar to lines of longitude and latitude). If the orientation is set to %f3GLU_OUTSIDEfP (with %f3gluQuadricOrientationfP), then any normals generated point away from the center of the sphere. Otherwise, they point toward the center of the sphere. If texturing is turned on (with %f3gluQuadricTexturefP), then texture coordinates are generated so that f2tfP ranges from 0.0 at $ z ~=~ -^"radius" $ to 1.0 at $ z ~=~ "radius" $ (f2tfP increases linearly along longitudinal lines), 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

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


 

Index

NAME
C SPECIFICATION
DESCRIPTION
SEE ALSO