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>GXInitTlutObj</title> 10</head> 11 12<body> 13 14<h1 align="left">GXInitTlutObj</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXInitTlutObj( 21 <a href="../Structures/GXTlutObj.html">GXTlutObj</a>* tlut_obj, 22 void* lut, 23 <a href="../Enumerated_Types/GXTlutFmt.html">GXTlutFmt</a> fmt, 24 u16 n_entries ); 25</pre></dd></dl> 26 27<h2>Arguments</h2> 28<TABLE class="arguments" border="1" > 29 <tr> 30<TH>tlut_obj</TH> 31<TD>Pointer to a <a href="../Structures/GXTlutObj.html"><code>GXTlutObj</code></a>. The memory for this object must be allocated by the application.</TD> 32 </tr> 33 <tr> 34<TH>lut</TH> 35<TD>Pointer to the look-up table data. The pointer must be 32-byte aligned.</TD> 36 </tr> 37 <tr> 38<TH>fmt</TH> 39<TD><a href="../Enumerated_Types/GXTlutFmt.html">Format</a> of the entries in the TLUT.</TD> 40 </tr> 41 <tr> 42<TH>n_entries</TH> 43<TD>Number of entries in the TLUT. Maximum value is 16384</TD> 44 </tr> 45</TABLE> 46 47<h2>Return Values</h2> 48<p>None.</p> 49 50<H2>Description</H2> 51<P>This function initializes a texture lookup table (TLUT) object. This object describes the location of the TLUT in main memory, its format and the number of entries. This TLUT in main memory can be loaded into the TLUT allocated in texture memory using the <A href="GXLoadTlut.html"><CODE>GXLoadTlut</CODE></A> function.</P> 52 53<h2>See Also</h2> 54<P class="reference"> 55<A href="GXLoadTlut.html">GXLoadTlut</A>, 56<A href="GXGetTlutObjAll.html">GXGetTlutObjAll</A> 57</p> 58 59<H2>Revision History</H2> 60<P> 612006/03/01 Initial version.<br> 62</P> 63 64<hr><p>CONFIDENTIAL</p></body> 65</HTML>