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>GXDrawSphere</title> 10</head> 11 12<body> 13 14<h1 align="left">GXDrawSphere</h1> 15 16 17<h2>C Specification</h2> 18 19<dl> 20<dd><PRE><CODE>#include <revolution/gx.h></CODE></PRE></dd> 21<dd><pre>void GXDrawSphere( 22u8 numMajor, 23u8 numMinor );</pre></dd> 24</dl> 25 26<h2>Arguments</h2> 27<TABLE border="1" cellpadding="3" cellspacing="0.1"> 28 <tr> 29<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>numMajor</font></strong></em></TD> 30<TD width="520">Number of latitude divisions</TD> 31 </tr> 32 <tr> 33<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>numMinor</font></strong></em></TD> 34<TD width="520">number of longitude divisions</TD> 35 </tr> 36</TABLE> 37<h2>Return Values</h2> 38 39<p>None.</p> 40<H2>Description</H2> 41<P>This function draws a unit sphere. You can control the number of divisions in latitude and longitude using <code><em><strong>numMajor</strong></em></code> and <code><em><strong>numMinor</strong></em></code>. This function generates both position and normal information in 32-bit floating point. Also, when this function is called, it attaches texture coordinate (<code>GX_VA_TEX0</code>) corresponding to the vertex descriptor state. This 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.</P> 42<P><a href="GXDrawSphere.html">GXDrawSphere</a>(8, 16);</code></P> 43<P><br> The model is drawn centered about the origin.</P> 44 45 46 47 48<h2>See Also</h2> 49 50<p><a href="GXDrawSphere1.html"><CODE>GXDrawSphere1</CODE></a></p> 51<H2>Revision History</H2> 52<P>03/01/2006 Initial version.</P> 53</BODY> 54</HTML>