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 17<h2>C Specification</h2> 18 19<dl> 20<dd><PRE><CODE>#include <revolution/gx.h></CODE></PRE></dd> 21<dd><pre><CODE>void GXInitTlutObj( 22<a href="../Structures/GXTlutObj.html">GXTlutObj</a><em>* tlut_obj</em>, 23void* lut, 24<a href="../Enumerated_Types/GXTlutFmt.html">GXTlutFmt</a> fmt, 25u16 n_entries );</CODE></pre></dd> 26</dl><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>tlut_obj</CODE></strong></em></TD> 30<TD width="520">Pointer to a <a href="../Structures/GXTlutObj.html"><code>GXTlutObj</code></a>. The memory for this object must be allocated by the application.</TD> 31 </tr> 32 <tr> 33<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>lut</CODE></strong></em></TD> 34<TD width="520">Pointer to the look-up table data. The pointer must be 32-byte aligned.</TD> 35 </tr> 36 <tr> 37<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>fmt</CODE></strong></em></TD> 38<TD width="520"><a href="../Enumerated_Types/GXTlutFmt.html">Format</a> of the entries in the TLUT.</TD> 39 </tr> 40 <tr> 41<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>n_entries</CODE></strong></em></TD> 42<TD width="520">Number of entries in the TLUT. The maximum value is 16384.</TD> 43 </tr> 44</TABLE> 45<h2>Return Values</h2> 46 47<p>None.</p> 48<H2>Description</H2> 49<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 <A href="GXLoadTlut.html"><CODE>GXLoadTlut</CODE></A>.</P> 50 51<h2>See Also</h2> 52 53<p><a href="GXLoadTlut.html"><CODE>GXLoadTlut</CODE></a><br> <a href="GXGetTlutObjAll.html"><CODE>GXGetTlutObjAll</CODE></a></p> 54<H2>Revision History</H2> 55<P>03/01/2006 Initial version.</P> 56</BODY> 57</HTML>