glutSolidCone(3GLUT) GLUT glutSolidCone(3GLUT)

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

#include <GLUT/glut.h>
void glutSolidCone(GLdouble base, GLdouble height,
                   GLint slices, GLint stacks);
void glutWireCone(GLdouble base, GLdouble height,
                  GLint slices, GLint stacks);

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

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.

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

Mark J. Kilgard (mjk@nvidia.com)

3.7 GLUT