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<H2>C Specification</H2> 13<DL> 14 <DD> 15 <PRE><CODE>#include <revolution/gd.h></CODE></PRE> 16 <DD> 17 <PRE><CODE>void 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 );</CODE></PRE> 21</DL> 22<H2>Arguments</H2> 23<TABLE border="1" cellpadding="3" cellspacing="0.1"> 24 <TBODY> 25 <TR> 26<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>id</CODE></EM></STRONG></FONT></STRONG></EM></TD> 27<TD width="520">The hardware texture map <a href="../gx/Enumerated_Types/GXTexMapID.html">ID</a> to change.</TD> 28 </TR> 29 <TR> 30<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>tmem_addr</CODE></EM></STRONG></FONT></STRONG></EM></TD> 31<TD width="520">The location of the TLUT in TMEM. This address must reside in the upper half of TMEM and align to 512 bytes.</TD> 32 </TR> 33 <TR> 34<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE><STRONG><EM><CODE>format</CODE></EM></STRONG></FONT></STRONG></EM></TD> 35<TD width="520">The <a href="../gx/Enumerated_Types/GXTlutFmt.html">format</a> for the TLUT.</TD> 36 </TR> 37 </TBODY> 38</TABLE> 39<H2>Return Values</H2> 40<P>None.</P> 41<H2>Description</H2> 42<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> 43<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> 44<H2>See Also</H2> 45<P><A href="../gx/Texture/GXInitTlutObj.html"><CODE>GXInitTlutObj</CODE></A><BR> <A href="../gx/Texture/GXLoadTlut.html"><CODE>GXLoadTlut</CODE></A><BR> <CODE><A href="GDSetTexImgAttr.html">GDSetTexImgAttr</A></CODE></P> 46<H2>Revision History</H2> 47<P>2006/03/01 Initial version.</P> 48<hr> 49<P>CONFIDENTIAL</p> 50</BODY> 51</HTML>