ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



glutSolidTeapot(3GLUT)                              GLUT                              glutSolidTeapot(3GLUT)



NAME
       glutSolidTeapot, glutWireTeapot - render a solid or wireframe teapot respectively.

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

ARGUMENTS
       size      Relative size of the teapot.

DESCRIPTION
       glutSolidTeapot and glutWireTeapot render a solid or wireframe teapot respectively. Both surface nor-mals normals
       mals and texture coordinates for the teapot are generated. The teapot is generated with OpenGL evalu-ators. evaluators.
       ators.

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(3G),  glutSolidCube(3G), glutSolidCone(3G), glutSolidTorus(3G), glutSolidDodecahedron(3G), glutSolidOcta-hedron(3G), glutSolidOctahedron(3G),
       hedron(3G), glutSolidTetrahedron(3G), glutSolidIcosahedron(3G)


AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)



GLUT                                                 3.7                              glutSolidTeapot(3GLUT)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.