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>GXSetCurrentMtx</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetCurrentMtx</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19<dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre>
20  </dd>
21<dd><pre><CODE>void GXSetCurrentMtx( u32 id );</CODE></pre>
22  </dd>
23</dl>
24
25<h2>Arguments</h2>
26<TABLE border="1" cellpadding="3" cellspacing="0.1">
27  <tr>
28<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>id</font></strong></em></TD>
29<TD width="520">Specifies the matrix <a href="../Enumerated_Types/GXPosNrmMtx.html">name</a></TD>
30    </tr>
31</TABLE>
32<h2>Return Values</h2>
33
34<p>None.</p>
35<H2>Description</H2>
36<P>This matrix <code><em><strong>id</strong></em></code> is used to select the current modelview transform matrix and normal transform matrix, as long as a matrix index is not present in the vertex data (see <a href="../Geometry/GXSetVtxDesc.html"><code>GXSetVtxDesc</code></a>).&nbsp;If the current vertex descriptor enables GX_VA_PNMTXIDX, the matrix <em><strong><code>id</code></strong></em> specified by <code>GXSetCurrentMtx</code> will be overwritten when the vertices are drawn. The valid matrix indices are enumerated by <a href="../Enumerated_Types/GXPosNrmMtx.html"><code>GXPosNrmMtx</code></a>.</P>
37<P><a href="../Management/GXInit.html"><code>GXInit</code></a> sets <code>GX_PNMTX0</code> as the default matrix initially:</P>
38<P><CODE>GXSetCurrentMtx(GX_PNMTX0);</CODE></P>
39
40<h2>See Also</h2>
41
42<p><a href="GXLoadNrmMtxImm.html">GXLoadNrmMtxImm</a><br> <a href="GXLoadNrmMtxIndx3x3.html">GXLoadNrmMtxIndx3x3</a><br> <a href="GXLoadPosMtxImm.html">GXLoadPosMtxImm</a><br> <a href="GXLoadPosMtxIndx.html">GXLoadPosMtxIndx</a></p>
43<H2>Revision History</H2>
44<P>03/01/2006 Initial version.</P>
45</BODY>
46</HTML>