Name

glutSolidTeapot,  glutWireTeapot - render a solid or wire-
frame teapot respectively.

Python Specification

glutSolidTeapot
	glutSolidTeapot(size) -> None
glutWireTeapot
	glutWireTeapot(size) -> None

C Specification

void glutSolidTeapot(GLdouble size);
void glutWireTeapot(GLdouble size);

Parameters

size      Relative size of the teapot.

Description

glutSolidTeapot and glutWireTeapot render a solid or wire-
frame  teapot  respectively. Both surface normals and tex-
ture 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 fac-
ing  polygons  (for the purpose of face culling) have ver-
tices that wind counter clockwise when projected into win-
dow  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, glutSolid-
Torus, glutSolidDodecahedron,  glutSolidOctahedron,  glut-
SolidTetrahedron, glutSolidIcosahedron

Author

Mark J. Kilgard (mjk@nvidia.com)

:: Documentation :: References :: GLUT ::
:: Index (n/a) ::