Name

glutSolidCone, glutWireCone — render a solid or wireframe cone respectively.

C Specification

void glutSolidCone ( GLdouble base , GLdouble height , GLint slices , GLint stacks );
void glutWireCone ( GLdouble base , GLdouble height , GLint slices , GLint stacks );

Python Specification

glutSolidCone ( base , height , slices , stacks ) →  None
glutWireCone ( base , height , slices , stacks ) →  None

Parameters

base
The radius of the base of the cone.
height
The height of the cone.
slices
The number of subdivisions around the Z axis.
stacks
The number of subdivisions along the Z axis.

Description

glutSolidCone and glutWireCone render a solid or wireframe cone respectively 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.

See Also

glutSolidSphere , glutSolidCube , glutSolidTorus , glutSolidDodecahedron , glutSolidOctahedron , glutSolidTetrahedron , glutSolidIcosahedron , glutSolidTeapot

Python Sample Code

glutSolidCone
glutWireCone