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 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 GXInitTlutRegion( 23 <a href="../Structures/GXTlutRegion.html">GXTlutRegion</a>* <em> region</em>, 24 u32 tmem_addr, 25 <a href="../Enumerated_Types/GXTlutSize.html">GXTlutSize</a> tlut_size );</CODE></pre> 26 </dd> 27</dl> 28 29<h2>Arguments</h2> 30<TABLE border="1" cellpadding="3" cellspacing="0.1"> 31 <tr> 32<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>region</CODE></strong></em></TD> 33<TD width="520">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> 34 </tr> 35 <tr> 36<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>tmem</CODE></strong></em></TD> 37<TD width="520">Location of TLUT in texture memory. This pointer must be aligned to the table size. </TD> 38 </tr> 39 <tr> 40<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>size</CODE></strong></em></TD> 41<TD width="520">Size of the table.</TD> 42 </tr> 43</TABLE> 44<h2>Return Values</h2> 45 46<p>None.</p> 47<H2>Description</H2> 48<P>This function initializes a texture lookup table (TLUT) region object.</P> 49<P><a href="../Management/GXInit.html"><code>GXInit</code></a> creates default TLUT regions, so the application does not need to call this function unless you want a new configuration of TMEM. If so, the application should also set a new TLUT region allocator using <a href="GXSetTlutRegionCallback.html"><code>GXSetTlutRegionCallBack</code></a>.</P> 50<h2>See Also</h2> 51 52<p><a href="GXInitTexCacheRegion.html">GXInitTexCacheRegion</a><br> <a href="GXInitTexPreLoadRegion.html">GXInitTexPreLoadRegion</a><br> <a href="GXSetTexRegionCallback.html">GXSetTexRegionCallBack</a><br> <a href="GXGetTlutRegionAll.html">GXGetTlutRegionAll</a></p> 53<p><a href="GXTMEMDefault.html">GX Default TMEM Configuration</a></p> 54<H2>Revision History</H2> 55<P>2006/03/01 Initial version.</P> 56<hr> 57<P>CONFIDENTIAL</p> 58</BODY> 59</HTML>