Rendering Dodecahedron, Octahedron, Tetrahedron and Icosahedrons using GLUT in C

GLUT provides functions with no parameters and pre – assigned radii for these Objects. The pre – assigned radii of Dodecahedron, Octahedron, Tetrahedron and Icosahedrons are, respectively, sqrt(3), 1, sqrt(3), 1.  The syntax of each object is given below
Dodecahedron
void glutSolidDodecahedron (void);
void glutWireDodecahedron (void);
Octahedron
void glutSolidOctahedron (void);
void glutWireOctahedron (void);
Tetrahedron
void glutSolidTetrahedron (void);
void glutWireTetrahedron (void);
Icosahedrons
void glutSolidIcosahedron (void);
void glutWireIcosahedron (void);

Source Code

Output

GLUTRegularObjects

SHARE Rendering Dodecahedron, Octahedron, Tetrahedron and Icosahedrons using GLUT in C

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Share