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>GXLoadTexObj</title>
10</head>
11
12<body>
13
14<h1 align="left">GXLoadTexObj</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXLoadTexObj( const <a href="../Structures/GXTexObj.html">GXTexObj</a>* obj, <a href="../Enumerated_Types/GXTexMapID.html">GXTexMapID</a> id );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH>obj</TH>
27<TD>Pointer to a texture object.</TD>
28  </tr>
29  <tr>
30<TH>id</TH>
31<TD>Attaches a name to the texture so that it may be referenced on the TEV stage. Applicable values are <code>GX_TEXMAP0</code>, <code>GX_TEXMAP1</code>, <code>GX_TEXMAP2</code>, <code>GX_TEXMAP3</code>, <code>GX_TEXMAP4</code>, <code>GX_TEXMAP5</code>, <code>GX_TEXMAP6</code> and <code>GX_TEXMAP7</code>.</TD>
32  </tr>
33</TABLE>
34
35<h2>Return Values</h2>
36<p>None.</p>
37
38<H2>Description</H2>
39<P>This function loads the state describing a texture into one of eight hardware register sets. Before this happens, the texture object, <SPAN class="argument">obj</SPAN>, should be initialized using the <A href="GXInitTexObj.html"><CODE>GXInitTexObj</CODE></A> or <A href="GXInitTexObjCI.html"><CODE>GXInitTexObjCI</CODE></A> function. The <SPAN class="argument">id</SPAN> argument refers to the texture state register set.</P>
40<P>Once loaded, the texture can be used in any texture environment (TEV) stage using the <A href="../Tev/GXSetTevOrder.html"><CODE>GXSetTevOrder</CODE></A> function.</P>
41<P>The <A href="GXLoadTexObj.html"><CODE>GXLoadTexObj</CODE></A> function will call the functions set by the <A href="GXSetTexRegionCallback.html"><CODE>GXSetTexRegionCallBack</CODE></A> function (or the <A href="GXSetTlutRegionCallback.html"><CODE>GXSetTlutRegionCallBack</CODE></A> function if the texture is color-index format) to get the texture regions associated with this texture object. These callbacks are set to default functions by the <A href="../Management/GXInit.html"><CODE>GXInit</CODE></A> function.</P>
42
43<h2>See Also</h2>
44<p class="reference">
45<a href="../Tev/GXSetTevOrder.html">GXSetTevOrder</a>,
46<a href="../Management/GXInit.html">GXInit</a>,
47<a href="GXInitTexObj.html">GXInitTexObj</a>,
48<a href="GXInitTexObjCI.html">GXInitTexObjCI</a>,
49<a href="GXSetTexRegionCallback.html">GXSetTexRegionCallBack</a>,
50<a href="GXSetTlutRegionCallback.html">GXSetTlutRegionCallBack</a>
51</p>
52
53<H2>Revision History</H2>
54<P>
552006/03/01 Initial version.<br>
56</P>
57
58<hr><p>CONFIDENTIAL</p></body>
59</html>