added not about wrong winding of teapot vertices, as is in the original

glut manpages


git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1215 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2012-03-26 13:51:15 +00:00
parent 299390347d
commit c7016dc648

View File

@ -2036,8 +2036,23 @@ draw a wireframe and solid teapot respectively.
<p><b>Description</b></p>
<p>The <tt>glutWireTeapot</tt> and <tt>
glutSolidTeapot</tt> functions render a teapot of the desired size, centered
at the origin. This is the famous OpenGL teapot [add reference]. </p>
glutSolidTeapot</tt> functions render a teapot of the desired size,
centered at the origin. This is the famous OpenGL teapot [add
reference]. </p>
<p><b>Bugs</b></p>
<p>OpenGL's default <tt>glFrontFace</tt> 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:</p>
<p><tt>&nbsp;&nbsp;glFrontFace(GL_CW);<br>
&nbsp;&nbsp;glutSolidTeapot(size);<br>
&nbsp;&nbsp;glFrontFace(GL_CCW);</tt></p>
<p>Both these bugs reflect issues in the original aux toolkit's teapot
rendering routines (GLUT used the same teapot rendering routine).</p>
<p><b>Changes From GLUT</b></p>