1GLUSPHERE(3G)                                                    GLUSPHERE(3G)
2
3
4

NAME

6       gluSphere - draw a sphere
7
8

C SPECIFICATION

10       void gluSphere( GLUquadric* quad,
11                       GLdouble radius,
12                       GLint slices,
13                       GLint stacks )
14
15

PARAMETERS

17       quad    Specifies the quadrics object (created with gluNewQuadric).
18
19       radius  Specifies the radius of the sphere.
20
21       slices  Specifies the number of subdivisions around the z axis (similar
22               to lines of longitude).
23
24       stacks  Specifies the number of subdivisions along the z axis  (similar
25               to lines of latitude).
26

DESCRIPTION

28       gluSphere  draws  a sphere of the given radius centered around the ori‐
29       gin. The sphere is subdivided around the z axis into slices  and  along
30       the z axis into stacks (similar to lines of longitude and latitude).
31
32       If  the orientation is set to GLU_OUTSIDE (with gluQuadricOrientation),
33       then any normals generated point away from the center  of  the  sphere.
34       Otherwise, they point toward the center of the sphere.
35
36       If  texturing is turned on (with gluQuadricTexture), then texture coor‐
37       dinates are generated so that t ranges from 0.0 at z=−radius to 1.0  at
38       z=radius  (t increases linearly along longitudinal lines), and s ranges
39       from 0.0 at the +y axis, to 0.25 at the +x axis, to 0.5 at the -y axis,
40       to 0.75 at the -x axis, and back to 1.0 at the +y axis.
41

SEE ALSO

43       gluCylinder(3G),  gluDisk(3G),  gluNewQuadric(3G),  gluPartialDisk(3G),
44       gluQuadricOrientation(3G), gluQuadricTexture(3G)
45
46
47
48                                                                 GLUSPHERE(3G)
Impressum