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>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetCurrentMtx( u32 id );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH>id</TH>
27<TD>Specifies the matrix <a href="../Enumerated_Types/GXPosNrmMtx.html">name</a>.</TD>
28  </tr>
29</TABLE>
30
31<h2>Return Values</h2>
32<p>None.</p>
33
34<H2>Description</H2>
35<P>If there is no matrix index present in the vertex data, this matrix <SPAN class="argument">id</SPAN> is used to select the current modelview transform matrix and normal transform matrix (see the <A href="../Geometry/GXSetVtxDesc.html"><CODE>GXSetVtxDesc</CODE></A> function). If the current vertex descriptor enables <CODE>GX_VA_PNMTXIDX</CODE> for use, the matrix ID specified by the <CODE>GXSetCurrentMtx</CODE> function will be overwritten when the vertices are rendered. The valid matrix indices are enumerated by <A href="../Enumerated_Types/GXPosNrmMtx.html"><CODE>GXPosNrmMtx</CODE></A>.</P>
36<P>The <A href="../Management/GXInit.html"><CODE>GXInit</CODE></A> function sets <CODE>GX_PNMTX0</CODE> as the initial default matrix, as shown below.</P>
37<P><CODE>GXSetCurrentMtx(GX_PNMTX0);</CODE></P>
38
39<h2>See Also</h2>
40<p class="reference">
41<a href="GXLoadNrmMtxImm.html">GXLoadNrmMtxImm</a>,
42<a href="GXLoadNrmMtxIndx3x3.html">GXLoadNrmMtxIndx3x3</a>,
43<a href="GXLoadPosMtxImm.html">GXLoadPosMtxImm</a>,
44<a href="GXLoadPosMtxIndx.html">GXLoadPosMtxIndx</a>
45</p>
46
47<H2>Revision History</H2>
48<P>
492006/03/01 Initial version.<br>
50</P>
51
52<hr><p>CONFIDENTIAL</p></body>
53</HTML>