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>GDSetTexImgAttr</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GDSetTexImgAttr</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/gd.h> 16 17void GDSetTexImgAttr ( 18 <A href="../gx/Enumerated_Types/GXTexMapID.html">GXTexMapID</A> id, 19 u16 width, 20 u16 height, 21 <A href="../gx/Enumerated_Types/GXTexFmt.html">GXTexFmt</A> format ); 22</pre></dd></dl> 23 24<H2>Arguments</H2> 25<TABLE class="arguments" border="1" > 26 <TBODY> 27 <TR> 28<TH>id</TH> 29<TD>The hardware texture map <a href="../gx/Enumerated_Types/GXTexMapID.html">ID</a> to change.</TD> 30 </TR> 31 <TR> 32<TH>width</TH> 33<TD>Width of the texture or LOD 0 for mipmap. Max value is 1024 Mipmap must be a power of two.</TD> 34 </TR> 35 <TR> 36<TH>height</TH> 37<TD>Height of the texture or LOD 0 for mipmap. Max value is 1024 Mipmap must be a power of two.</TD> 38 </TR> 39 <TR> 40<TH><CODE>format</CODE></TH> 41<TD>Texture <a href="../gx/Enumerated_Types/GXTexFmt.html">format</a>. </TD> 42 </TR> 43 </TBODY> 44</TABLE> 45 46<H2>Return Values</H2> 47<P>None.</P> 48 49<H2>Description</H2> 50<P>This function is used to set the image attributes for the specified hardware texture map ID. Unlike the GX library, which uses texture objects, GD functions set the hardware registers directly. The parameters of this function are all related to the physical description of the specified texture.</P> 51 52<H2>See Also</H2> 53<P class="reference"> 54<A href="../gx/Texture/GXInitTexObj.html">GXInitTexObj</A>, 55<A href="GDSetTexLookupMode.html">GDSetTexLookupMode</A>, 56<A href="GDSetTexImgPtr.html">GDSetTexImgPtr</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>