<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glutSolidTeapot</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GLUT.xml" title="GLUT"/><link rel="previous" href="glutSolidSphere.3GLUT.xml" title="glutSolidSphere"/><link rel="next" href="glutSolidTetrahedron.3GLUT.xml" title="glutSolidTetrahedron"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glutSolidTeapot</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glutSolidSphere.3GLUT.xml">Prev</a> </td><th width="60%" align="center">GLUT</th><td width="20%" align="right"> <a accesskey="n" href="glutSolidTetrahedron.3GLUT.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glutSolidTeapot.3GLUT"/><div class="titlepage"/><div class="refnamediv"><a name="glutSolidTeapot.3GLUT-name"/><h2>Name</h2><p>glutSolidTeapot, glutWireTeapot &#8212; render a solid or wireframe teapot respectively.</p></div><div class="refsynopsisdiv"><a name="glutSolidTeapot.3GLUT-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glutSolidTeapot</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble <i><tt>size</tt></i>);</code></td></tr></table><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glutWireTeapot</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble <i><tt>size</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glutSolidTeapot.3GLUT-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glutSolidTeapot</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>size</tt></i>) &#8594; <tt>None</tt></code></td></tr></table><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glutWireTeapot</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>size</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glutSolidTeapot.3GLUT-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>size</tt></i></span></dt><dd>
						Relative size of the teapot.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glutSolidTeapot.3GLUT-description"/><h2>Description</h2><p>
			<tt>glutSolidTeapot</tt> and <tt>glutWireTeapot</tt> render a solid or wireframe teapot
			respectively. Both surface normals and texture coordinates for the teapot are generated. The teapot is generated with
			OpenGL evaluators.
		</p></div><div class="refsect1" lang="en"><a name="glutSolidTeapot.3GLUT-bugs"/><h2>Bugs</h2><p>
			The teapot is greatly over-tesselated; it renders way too slow. OpenGL's default <a href="glFrontFace.3G.xml"><tt>glFrontFace</tt></a> 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><pre class="programlisting">glFrontFace(GL_CW);
glutSolidTeapot(size);
glFrontFace(GL_CCW);</pre><p>
			Both these bugs reflect issues in the original aux toolkit's teapot rendering routines (GLUT used the same teapot
			rendering routine).
		</p></div><div class="refsect1" lang="en"><a name="glutSolidTeapot.3GLUT-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glutSolidSphere.3GLUT.xml">glutSolidSphere</a>, <a href="glutSolidCube.3GLUT.xml">glutSolidCube</a>, <a href="glutSolidCone.3GLUT.xml">glutSolidCone</a>, <a href="glutSolidTorus.3GLUT.xml">glutSolidTorus</a>, <a href="glutSolidDodecahedron.3GLUT.xml">glutSolidDodecahedron</a>, <a href="glutSolidOctahedron.3GLUT.xml">glutSolidOctahedron</a>, <a href="glutSolidTetrahedron.3GLUT.xml">glutSolidTetrahedron</a>, <a href="glutSolidIcosahedron.3GLUT.xml">glutSolidIcosahedron</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glutSolidSphere.3GLUT.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GLUT.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="glutSolidTetrahedron.3GLUT.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glutSolidSphere </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glutSolidTetrahedron</td></tr></table></div></body></html>