Glut Geometry Utilities

Glut provides functions to draw several basic shapes - Platonic solids, simple curves, and teapots.

They can be drawn either with solid polygons, or in wireframe.

     glutSolidSphere(1.5, 16, 8);

     glutWireDodecahedron();

Example code: glutGeometry.c

Sphere glutSolidSphere(radius, slices, stacks)
Cone glutSolidCone(baseRadius, height, slices, stacks)
Torus glutSolidTorus(innerRadius, outerRadis, sides, rings)
Tetrahedron glutSolidTetrahedron()
Cube glutSolidCube(size)
Octahedron glutSolidOctahedron()
Dodecahedron glutSolidDodecahedron()
Icosahedron glutSolidIcosahedron()
Teapot glutSolidTeapot(size)

next