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

NAME

6       gluSphere - draw a sphere
7

C SPECIFICATION

9       void gluSphere(GLUquadric* quad, GLdouble radius, GLint slices,
10                      GLint stacks);
11

PARAMETERS

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

DESCRIPTION

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

SEE ALSO

45       gluCylinder(), gluDisk(), gluNewQuadric(), gluPartialDisk(),
46       gluQuadricOrientation(), gluQuadricTexture()
47
49       Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
50       under the SGI Free Software B License. For details, see
51       http://oss.sgi.com/projects/FreeB/.
52

AUTHORS

54       opengl.org
55
56
57
58opengl.org                        07/13/2018                     GLUSPHERE(3G)
Impressum