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>GXDrawCube</title>
10</head>
11
12<body>
13
14<h1 align="left">GXDrawCube</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXDrawCube( void );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>None.</p>
28
29<H2>Description</H2>
30<P>This function draws a unit cube.&nbsp;Each side is 2.0/sqrt(3.0) in length, so the cube will fit inside a sphere with a radius of 1.0.&nbsp;By default, this function generates both vertex coordinate and normal information in 32-bit floating point. Also, when this function is called, it attaches binormal/tangent or 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>
31<DL><DD><a href="GXDrawCube.html">GXDrawCube</a>();</code><br></DD></DL>
32<P>The cube is drawn centered about the origin.</P>
33
34<h2>See Also</h2>
35<p>None.</p>
36
37<H2>Revision History</H2>
38<P>
392006/03/01 Initial version.<br>
40</P>
41
42<hr><p>CONFIDENTIAL</p></body>
43</HTML>