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>GXDrawCylinder</title>
10</head>
11
12<body>
13
14<h1 align="left">GXDrawCylinder</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXDrawCylinder( u8 numEdges );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH>numEdges</TH>
27<TD>Number of sides of the cylinder.&nbsp;Maximum value is 99</TD>
28  </tr>
29</TABLE>
30
31<h2>Return Values</h2>
32<p>None.</p>
33
34<H2>Description</H2>
35<P>This function draws a unit cylinder.&nbsp;The cylinder has a radius of 1.0 and a height of 2.0.&nbsp;You can specify the number of&nbsp; radial divisions used to draw the cylinder using <SPAN class="argument">numEdges</SPAN>.</P>
36<P>Generates both vertex coordinate and normal information in 32-bit floating point.&nbsp;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.&nbsp; An example usage is:<br></P>
37<DL><DD><a href="GXDrawCylinder.html">GXDrawCylinder</a>(16);</code><br></DD></DL>
38<P>In the above example the model is drawn centered about the origin, with sixteen radial divisions.</P>
39
40<h2>See Also</h2>
41<p>None.</p>
42
43<H2>Revision History</H2>
44<P>
452006/03/01 Initial version.<br>
46</P>
47
48<hr><p>CONFIDENTIAL</p></body>
49</HTML>