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 17<h2>C Specification</h2> 18 19<dl> 20<dd><PRE><CODE>#include <revolution/gx.h></CODE></PRE> 21 </dd> 22<dd><pre><CODE>void GXLoadTexObj( const <a href="../Structures/GXTexObj.html">GXTexObj</a>* obj, <a href="../Enumerated_Types/GXTexMapID.html">GXTexMapID</a> id );</CODE></pre> 23 </dd> 24</dl> 25 26<h2>Arguments</h2> 27<TABLE border="1" cellpadding="3" cellspacing="0.1"> 28 <tr> 29<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE><em><strong><code>obj</code></strong></em></CODE></strong></em></TD> 30<TD width="520">Pointer to a texture object.</TD> 31 </tr> 32 <tr> 33<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>id</CODE></strong></em></TD> 34<TD width="520">Name the texture to be referenced on the TEV stage. Allowable values are: <code>GX_TEXMAP0, GX_TEXMAP1, GX_TEXMAP2, GX_TEXMAP3, GX_TEXMAP4, GX_TEXMAP5, GX_TEXMAP6, GX_TEXMAP7</code>.</TD> 35 </tr> 36</TABLE> 37<h2>Return Values</h2> 38 39<p>None.</p> 40<H2>Description</H2> 41<P>This function loads the state describing a texture into one of eight hardware register sets. Before this happens, the texture object, <code><em><strong>obj</strong></em></code>, should be initialized using <a href="GXInitTexObj.html"><code>GXInitTexObj</code></a> or <a href="GXInitTexObjCI.html"><code>GXInitTexObjCI</code></a>. The <code><em><strong>id</strong></em></code> argument refers to the texture state register set.</P> 42<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> 43<P><a href="GXLoadTexObj.html"><code>GXLoadTexObj</code></a> will call the functions set by <a href="GXSetTexRegionCallback.html"><code>GXSetTexRegionCallBack</code></a> (and <a href="GXSetTlutRegionCallback.html"><code>GXSetTlutRegionCallBack</code></a> if the texture is color-index format) to obtain the texture regions associated with this texture object. These callbacks are set to default functions by <a href="../Management/GXInit.html"><code>GXInit</code></a>.</P> 44 45<h2>See Also</h2> 46 47<p><a href="../Tev/GXSetTevOrder.html">GXSetTevOrder</a><br> <a href="../Management/GXInit.html">GXInit</a><br> <a href="GXInitTexObj.html">GXInitTexObj</a><br> <a href="GXInitTexObjCI.html">GXInitTexObjCI</a><br> <a href="GXSetTexRegionCallback.html">GXSetTexRegionCallBack</a><br> <a href="GXSetTlutRegionCallback.html">GXSetTlutRegionCallBack</a></p> 48<H2>Revision History</H2> 49<P>03/01/2006 Initial version</P></body> 50</html>