1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutSolidSphere — Draw a solid sphere centered at the origin.
5

LIBRARY

7     OpenGLUT - geometry
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
14

PARAMETERS

16      radius         Sphere radius.
17
18      slices         The number of divisions around the z axis. (latitudal)
19
20      stacks         The number of divisions along the z axis. (longitudal)
21

DESCRIPTION

23     The glutSolidSphere() function draws a shaded sphere centered at the ori‐
24     gin.  The surface is created from quadrangles (except for triangles as
25     degenerate quads at the poles) in a longitude/latitude pattern.  The
26     equatorial great circle lies in the xy-plane and is centered on the ori‐
27     gin.
28

CAVEATS

30     The number of polygons representing the spherical surface is proportional
31     to (slices*stacks).
32

SEE ALSO

34     glutWireSphere(3)
35
36
37
38
39                                     Epoch
Impressum