GLDraw.sphere

Renders a sphere centered at the modeling coordinates origin of the specified radius. The sphere is subdivided around the Z axis into slices and along the Z axis into stacks.

class GLDraw
static
void
sphere
(
int solid
,
double radius
,
int slices
,
int stacks
)

Parameters

solid int

TRUE if the sphere should be solid.

radius double

the radius of the sphere.

slices int

the number of subdivisions around the Z axis (similar to lines of longitude).

stacks int

the number of subdivisions along the Z axis (similar to lines of latitude).

Meta