include more low-level bindings
[clinton/guile-figl.git] / upstream-man-pages / man2 / xhtml / gluSphere.xml
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
2 <!-- saved from url=(0013)about:internet -->
3 <?xml-stylesheet type="text/xsl" href="mathml.xsl"?><html xmlns="http://www.w3.org/1999/xhtml" xmlns:pref="http://www.w3.org/2002/Math/preference" pref:renderer="mathplayer-dl"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>gluSphere</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /></head><body><div class="refentry" lang="en" xml:lang="en"><a id="gluSphere"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>gluSphere — draw a sphere</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr><td><code class="funcdef">void <b class="fsfunc">gluSphere</b>(</code></td><td>GLUquadric*  </td><td><var class="pdparam">quad</var>, </td></tr><tr><td> </td><td>GLdouble  </td><td><var class="pdparam">radius</var>, </td></tr><tr><td> </td><td>GLint  </td><td><var class="pdparam">slices</var>, </td></tr><tr><td> </td><td>GLint  </td><td><var class="pdparam">stacks</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>quad</code></em></span></dt><dd><p>
4 Specifies the quadrics object (created with <a class="citerefentry" href="gluNewQuadric.xml"><span class="citerefentry"><span class="refentrytitle">gluNewQuadric</span></span></a>).
5 </p></dd><dt><span class="term"><em class="parameter"><code>radius</code></em></span></dt><dd><p>
6 Specifies the radius of the sphere.
7 </p></dd><dt><span class="term"><em class="parameter"><code>slices</code></em></span></dt><dd><p>
8 Specifies the number of subdivisions around the <span class="emphasis"><em>z</em></span> axis
9 (similar to lines of longitude).
10 </p></dd><dt><span class="term"><em class="parameter"><code>stacks</code></em></span></dt><dd><p>
11 Specifies the number of subdivisions along the <span class="emphasis"><em>z</em></span> axis
12 (similar to lines of
13 latitude).
14 </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
15 <code class="function">gluSphere</code> draws a sphere of the given radius centered around the origin. The
16 sphere is subdivided around the <span class="emphasis"><em>z</em></span> axis into slices and along the
17 <span class="emphasis"><em>z</em></span> axis
18 into stacks (similar to lines of longitude and latitude).
19 </p><p>
20 If the orientation is set to <code class="constant">GLU_OUTSIDE</code>
21 (with <a class="citerefentry" href="gluQuadricOrientation.xml"><span class="citerefentry"><span class="refentrytitle">gluQuadricOrientation</span></span></a>), then any normals generated
22 point away from the center of the sphere.
23 Otherwise, they point toward the center of the sphere.
24 </p><p>
25 If texturing is turned on (with <a class="citerefentry" href="gluQuadricTexture.xml"><span class="citerefentry"><span class="refentrytitle">gluQuadricTexture</span></span></a>), then texture
26 coordinates are
27 generated so that <span class="emphasis"><em>t</em></span> ranges from 0.0 at
28 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
29
30 <mml:mrow>
31 <mml:mi mathvariant="italic">z</mml:mi>
32 <mml:mo>=</mml:mo>
33 <mml:mrow>
34 <mml:mo>-</mml:mo>
35 <mml:mi mathvariant="italic">radius</mml:mi>
36 </mml:mrow>
37 </mml:mrow>
38 </mml:math>
39 to 1.0 at
40 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
41
42 <mml:mrow>
43 <mml:mi mathvariant="italic">z</mml:mi>
44 <mml:mo>=</mml:mo>
45 <mml:mi mathvariant="italic">radius</mml:mi>
46 </mml:mrow>
47 </mml:math>
48 (<span class="emphasis"><em>t</em></span> increases linearly along longitudinal
49 lines),
50 and <span class="emphasis"><em>s</em></span> ranges from 0.0 at the +<span class="emphasis"><em>y</em></span> axis, to 0.25 at the
51 +<span class="emphasis"><em>x</em></span> axis,
52 to 0.5 at the \-<span class="emphasis"><em>y</em></span> axis, to 0.75 at the \-<span class="emphasis"><em>x</em></span> axis, and back to 1.0
53 at the +<span class="emphasis"><em>y</em></span> axis.
54 </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
55 <a class="citerefentry" href="gluCylinder.xml"><span class="citerefentry"><span class="refentrytitle">gluCylinder</span></span></a>,
56 <a class="citerefentry" href="gluDisk.xml"><span class="citerefentry"><span class="refentrytitle">gluDisk</span></span></a>,
57 <a class="citerefentry" href="gluNewQuadric.xml"><span class="citerefentry"><span class="refentrytitle">gluNewQuadric</span></span></a>,
58 <a class="citerefentry" href="gluPartialDisk.xml"><span class="citerefentry"><span class="refentrytitle">gluPartialDisk</span></span></a>,
59 <a class="citerefentry" href="gluQuadricOrientation.xml"><span class="citerefentry"><span class="refentrytitle">gluQuadricOrientation</span></span></a>,
60 <a class="citerefentry" href="gluQuadricTexture.xml"><span class="citerefentry"><span class="refentrytitle">gluQuadricTexture</span></span></a>
61 </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="Copyright"></a><h2>Copyright</h2><p>
62 Copyright <span class="trademark"></span>© 1991-2006
63 Silicon Graphics, Inc. This document is licensed under the SGI
64 Free Software B License. For details, see
65 <a class="ulink" href="http://oss.sgi.com/projects/FreeB/" target="_top">http://oss.sgi.com/projects/FreeB/</a>.
66 </p></div></div></body></html>