Signature
Parameters
Variables | Description |
---|---|
size |
Relative size of the teapot.
|
Description
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.
Bugs
The teapot is greatly over-tesselated; it renders way too slow. OpenGL's default
glFrontFace
state assumes that front facing polygons (for the purpose of face culling)
have vertices that wind counter clockwise when projected into window space. This teapot is rendered with its front
facing polygon vertices winding clockwise. For OpenGL's default back face culling to work, you should use:
glFrontFace(GL_CW);
glutSolidTeapot(size);
glFrontFace(GL_CCW);
Both these bugs reflect issues in the original aux toolkit's teapot rendering routines (GLUT used the same teapot
rendering routine).
See Also
glutSolidSphere glutSolidCube glutSolidCone glutSolidTorus glutSolidDodecahedron glutSolidOctahedron glutSolidTetrahedron glutSolidIcosahedronSample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glutSolidTeapot
{LGPL or GPL or MPL} Kamaelia
Code/Python/Kamaelia/Kamaelia/Visualisation/PhysicsGraph3D/Particles3D.py
Lines: 631
{LGPL or GPL or MPL} Kamaelia
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Visualisation/PhysicsGraph3D/Particles3D.py
Lines: 631
glutWireTeapot