1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXDrawSphere1</title> 10</head> 11 12<body> 13 14<h1 align="left">GXDrawSphere1</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXDrawSphere1( u8 depth ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>depth</TH> 27<TD>Number of division levels.</TD> 28 </tr> 29</TABLE> 30 31<h2>Return Values</h2> 32<p>None.</p> 33 34<H2>Description</H2> 35<P>This function renders a unit sphere by recursively subdividing an icosahedron. You can specify the number of levels of subdivision using <SPAN class="argument">depth</SPAN>. For example, a <code><strong><em>depth</em></strong></code> of 0 will draw an icosahedron. 1 A <SPAN class="argument">depth</SPAN> of 1 will subdivide each triangle of the icosahedron into four triangles, for a total of 80 triangles.</P> 36<P>By default, this function generates both vertex coordinate and normal information in 32-bit floating point. The function saves the current vertex descriptor and the vertex attribute format used before drawing (and restores them afterward), so as not to interfere with the application's state. An example usage is:<br></P> 37<DL><DD><CODE><A href="GXDrawSphere1.html">GXDrawSphere1</A>(2);</CODE></DD></DL> 38<P><br> The model is drawn centered about the origin. There are 320 triangles.</P> 39 40<h2>See Also</h2> 41<P class="reference"> 42<a href="GXDrawSphere.html">GXDrawSphere</a> 43</p> 44 45<H2>Revision History</H2> 46<P> 472006/03/01 Initial version.<br> 48</P> 49 50<hr><p>CONFIDENTIAL</p></body> 51</HTML>