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>GXInitTlutRegion</title>
10</head>
11
12<body>
13
14<h1 align="left">GXInitTlutRegion</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXInitTlutRegion(
21    <a href="../Structures/GXTlutRegion.html">GXTlutRegion</a>*     region,
22    u32               tmem_addr,
23    <a href="../Enumerated_Types/GXTlutSize.html">GXTlutSize</a>        tlut_size );
24</pre></dd></dl>
25
26<h2>Arguments</h2>
27<TABLE class="arguments" border="1" >
28  <tr>
29<TH>region</TH>
30<TD>Pointer to a <a href="../Structures/GXTlutRegion.html"><code>GXTlutRegion</code></a> structure. The memory for this structure must be allocated by the application.</TD>
31  </tr>
32  <tr>
33<TH>tmem</TH>
34<TD>Location of TLUT in texture memory. This pointer must be aligned to the table size.&nbsp;</TD>
35  </tr>
36  <tr>
37<TH>size</TH>
38<TD>Size of the table.</TD>
39  </tr>
40</TABLE>
41
42<h2>Return Values</h2>
43<p>None.</p>
44
45<H2>Description</H2>
46<P>This function initializes a texture lookup table (TLUT) region object.</P>
47<P>The <A href="../Management/GXInit.html"><CODE>GXInit</CODE></A> function creates default TLUT regions, so the application does not need to call this function unless a new configuration of TMEM is needed. When using this function, the application must also set a new TLUT region allocator using the <A href="GXSetTlutRegionCallback.html"><CODE>GXSetTlutRegionCallBack</CODE></A> function.</P>
48
49<h2>See Also</h2>
50<P class="reference">
51<A href="GXInitTexCacheRegion.html">GXInitTexCacheRegion</A>,
52<A href="GXInitTexPreLoadRegion.html">GXInitTexPreLoadRegion</A>,
53<A href="GXSetTexRegionCallback.html">GXSetTexRegionCallBack</A>,
54<A href="GXGetTlutRegionAll.html">GXGetTlutRegionAll</A>,
55<a href="GXTMEMDefault.html">GX Default TMEM Configuration</a>
56</p>
57
58<H2>Revision History</H2>
59<P>
602006/03/01 Initial version.<br>
61</P>
62
63<hr><p>CONFIDENTIAL</p></body>
64</HTML>