Rendering Teapot glutSolidTeapot and glutWireTeapot using GLUT in C

GLUT provides function glutSolidTeapot to render a Solid Torus and glutWireTeapot to render a Wire Frame Torus. glutSolidTeapot and glutWireTeapot render a solid or wireframe teapot respectively. Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evaluators. Here are the syntax of both the above functions
void glutSolidTeapot (GLdouble size);
void glutWireTeapot(GLdouble size);
Where, size –> Relative size of Teapot

Source Code

Output

GLUTTeapot

SHARE Rendering Teapot glutSolidTeapot and glutWireTeapot using GLUT in C

You may also like...

Leave a Reply

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

Share