GLDraw.cone

Renders a cone oriented along the Z axis. The base of the cone is placed at Z = 0, and the top at Z = height. The cone is subdivided around the Z axis into slices, and along the Z axis into stacks.

class GLDraw
static
void
cone
(
int solid
,
double base
,
double height
,
int slices
,
int stacks
)

Parameters

solid int

TRUE if the cone should be solid.

base double

the radius of the base of the cone.

height double

the height of the cone.

slices int

the number of subdivisions around the Z axis.

stacks int

the number of subdivisions along the Z axis.

Meta