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
تعليقات: 0
إرسال تعليق