diff --git a/freeglut/web-src/docs/api.php b/freeglut/web-src/docs/api.php index 1466dbf..d279546 100644 --- a/freeglut/web-src/docs/api.php +++ b/freeglut/web-src/docs/api.php @@ -2036,8 +2036,23 @@ draw a wireframe and solid teapot respectively.
Description
The glutWireTeapot and - glutSolidTeapot functions render a teapot of the desired size, centered -at the origin. This is the famous OpenGL teapot [add reference].
+ glutSolidTeapot functions render a teapot of the desired size, + centered at the origin. This is the famous OpenGL teapot [add + reference]. + +Bugs
+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).
Changes From GLUT