<?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>gluDisk</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-GLU.xml" title="GLU"/><link rel="previous" href="gluDeleteTess.3G.xml" title="gluDeleteTess"/><link rel="next" href="gluErrorString.3G.xml" title="gluErrorString"/></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">gluDisk</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="gluDeleteTess.3G.xml">Prev</a> </td><th width="60%" align="center">GLU</th><td width="20%" align="right"> <a accesskey="n" href="gluErrorString.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="gluDisk.3G"/><div class="titlepage"/><div class="refnamediv"><a name="gluDisk.3G-name"/><h2>Name</h2><p>gluDisk &#8212; draw a disk</p></div><div class="refsynopsisdiv"><a name="gluDisk.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>gluDisk</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLUquadric* <i><tt>quad</tt></i>, GLdouble <i><tt>inner</tt></i>, GLdouble <i><tt>outer</tt></i>, GLint <i><tt>slices</tt></i>, GLint <i><tt>loops</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="gluDisk.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>gluDisk</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>quad</tt></i>, <i><tt>inner</tt></i>, <i><tt>outer</tt></i>, <i><tt>slices</tt></i>, <i><tt>loops</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="gluDisk.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>quad</tt></i></span></dt><dd>
						Specifies the quadrics object (created with <a href="gluNewQuadric.3G.xml"><tt>gluNewQuadric</tt></a>).
					</dd><dt><span class="term"><i><tt>inner</tt></i></span></dt><dd>
						Specifies the inner radius of the disk (may be 0).
					</dd><dt><span class="term"><i><tt>outer</tt></i></span></dt><dd>
						Specifies the outer radius of the disk.
					</dd><dt><span class="term"><i><tt>slices</tt></i></span></dt><dd>
						Specifies the number of subdivisions around the <i><tt>z</tt></i> axis.
					</dd><dt><span class="term"><i><tt>loops</tt></i></span></dt><dd>
						Specifies the number of concentric rings about the origin into which the disk is subdivided.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="gluDisk.3G-description"/><h2>Description</h2><p>
			<tt>gluDisk</tt> renders a disk on the <i><tt>z</tt></i> = 0 plane. The disk has a radius of
			<i><tt>outer</tt></i>, and contains a concentric circular hole with a radius of <i><tt>inner</tt></i>. If
			<i><tt>inner</tt></i> is 0, then no hole is generated. The disk is subdivided around the
			<i><tt>z</tt></i> axis into slices (like pizza slices), and also about the <i><tt>z</tt></i> axis into
			rings (as specified by <i><tt>slices</tt></i> and <i><tt>loops</tt></i>, respectively).
		</p><p>
			With respect to orientation, the +<i><tt>z</tt></i> side of the disk is considered to be "outside"
			(see <a href="gluQuadricOrientation.3G.xml">gluQuadricOrientation</a>). This means that if the orientation is set to <tt>GLU_OUTSIDE</tt>, then any normals
			generated point along the +<i><tt>z</tt></i> axis. Otherwise, they point along the -<i><tt>z</tt></i>
			axis.
		</p><p>
			If texturing has been turned on (with <a href="gluQuadricTexture.3G.xml"><tt>gluQuadricTexture</tt></a>), texture coordinates
			are generated linearly such that where <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
					<mml:mrow>
						<mml:mi>r</mml:mi>
						<mml:mo>=</mml:mo>
						<mml:mi>outer</mml:mi>
					</mml:mrow>
				</mml:math>, the value at (<i><tt>r</tt></i>, 0, 0) is (1, 0.5), at (0, <i><tt>r</tt></i>, 0) it is
			(0.5, 1), at (-<i><tt>r</tt></i>, 0, 0) it is (0, 0.5), and at (0, -<i><tt>r</tt></i>, 0) it is (0.5, 0).
		</p></div><div class="refsect1" lang="en"><a name="gluDisk.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="gluCylinder.3G.xml">gluCylinder</a>, <a href="gluNewQuadric.3G.xml">gluNewQuadric</a>, <a href="gluPartialDisk.3G.xml">gluPartialDisk</a>, <a href="gluQuadricOrientation.3G.xml">gluQuadricOrientation</a>, <a href="gluQuadricTexture.3G.xml">gluQuadricTexture</a>, <a href="gluSphere.3G.xml">gluSphere</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="gluDeleteTess.3G.xml">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference-GLU.xml">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="gluErrorString.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">gluDeleteTess </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> gluErrorString</td></tr></table></div></body></html>
