1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>GDSetTexTlut</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GDSetTexTlut</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/gd.h> 16 17void GDSetTexTlut( 18 <A href="../gx/Enumerated_Types/GXTexMapID.html">GXTexMapID</A> id, 19 u32 tmem_addr, 20 <A href="../gx/Enumerated_Types/GXTlutFmt.html">GXTlutFmt</A> format ); 21</pre></dd></dl> 22 23<H2>Arguments</H2> 24<TABLE class="arguments" border="1" > 25 <TBODY> 26 <TR> 27<TH>id</TH> 28<TD>The hardware texture map <a href="../gx/Enumerated_Types/GXTexMapID.html">ID</a> to change.</TD> 29 </TR> 30 <TR> 31<TH><STRONG><EM><CODE>tmem_addr</CODE></EM></STRONG></TH> 32<TD>The location of the TLUT in TMEM. This address must reside in the upper half of TMEM and align to 512 bytes.</TD> 33 </TR> 34 <TR> 35<TH><CODE>format</CODE></TH> 36<TD>The <a href="../gx/Enumerated_Types/GXTlutFmt.html">format</a> for the TLUT.</TD> 37 </TR> 38 </TBODY> 39</TABLE> 40 41<H2>Return Values</H2> 42<P>None.</P> 43 44<H2>Description</H2> 45<P>This function is used to set the TLUT parameters for a given hardware texture map ID. Unlike the GX library, which uses texture objects, GD functions set the hardware registers directly.</P> 46<P>The TLUT parameters set by this function are only used if the texture map is set to a color index format. For these textures, you must indicate where the TLUT is found in texture memory (TMEM) and the format of the TLUT.</P> 47 48<H2>See Also</H2> 49<P class="reference"> 50<A href="../gx/Texture/GXInitTlutObj.html">GXInitTlutObj</A>, 51<A href="../gx/Texture/GXLoadTlut.html">GXLoadTlut</A>, 52<A href="GDSetTexImgAttr.html">GDSetTexImgAttr</A> 53</P> 54 55<H2>Revision History</H2> 56<P> 572006/03/01 Initial version.<br> 58</P> 59 60<hr><p>CONFIDENTIAL</p></body> 61</HTML>