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:
parent
299390347d
commit
c7016dc648
@ -2036,8 +2036,23 @@ draw a wireframe and solid teapot respectively.
|
|||||||
<p><b>Description</b></p>
|
<p><b>Description</b></p>
|
||||||
|
|
||||||
<p>The <tt>glutWireTeapot</tt> and <tt>
|
<p>The <tt>glutWireTeapot</tt> and <tt>
|
||||||
glutSolidTeapot</tt> functions render a teapot of the desired size, centered
|
glutSolidTeapot</tt> functions render a teapot of the desired size,
|
||||||
at the origin. This is the famous OpenGL teapot [add reference]. </p>
|
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> glFrontFace(GL_CW);<br>
|
||||||
|
glutSolidTeapot(size);<br>
|
||||||
|
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>
|
<p><b>Changes From GLUT</b></p>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user