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>GDSetTexCached</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GDSetTexCached</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gd.h&gt;
16
17void GDSetTexCached(
18    <A href="../gx/Enumerated_Types/GXTexMapID.html">GXTexMapID</A> id,
19    u32 tmem_even, <A href="../gx/Enumerated_Types/GXTexCacheSize.html">GXTexCacheSize</A> size_even,
20    u32 tmem_odd,  <A href="../gx/Enumerated_Types/GXTexCacheSize.html">GXTexCacheSize</A> size_odd );
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>tmem_even</TH>
32<TD>Base pointer in Texture Memory for even LODs (refer to <a     href="../gx/Texture/GXInitTexPreLoadRegion.html#TMEM_rules">table</a>). Must be a multiple of 2 KB.</TD>
33    </TR>
34    <TR>
35<TH>size_even</TH>
36<TD><a href="../gx/Enumerated_Types/GXTexCacheSize.html">Size</a> of the even numbered cache. Acceptable values are: <code>GX_TEXCACHE_32K</code>,<code> GX_TEXCACHE_128K</code>, and <code>GX_TEXCACHE_512K.</code></TD>
37    </TR>
38    <TR>
39<TH>tmem_odd</TH>
40<TD>Base pointer in Texture Memory for the odd LODs (see <a     href="../gx/Texture/GXInitTexCacheRegion.html#TMEM_rules">table</a>). Must be a multiple of 2 KB.</TD>
41    </TR>
42    <TR>
43<TH>size_odd</TH>
44<TD><a href="../gx/Enumerated_Types/GXTexCacheSize.html">Size</a> of the odd numbered cache. Acceptable values are: <code>GX_TEXCACHE_32K</code>,<code> GX_TEXCACHE_128K</code>, <code>GX_TEXCACHE_512K</code>, and <code>GX_TEXCACHE_NONE.</code></TD>
45    </TR>
46  </TBODY>
47</TABLE>
48
49<H2>Return Values</H2>
50<P>None.</P>
51
52<H2>Description</H2>
53<P>This function is used to set a specified hardware texture map ID as cached texture and bind it to a specified region of texture memory (TMEM). Unlike the GX library, which uses texture objects, GD functions set the hardware registers directly.</P>
54<P>A specified texture map can either be cached or preloaded. A cached texture resides in main memory and uses TMEM as a cache. Preloaded textures reside entirely in TMEM. This function sets the texture map to be cached, while <code><a href="GDSetTexPreLoaded.html">GDSetTexPreLoaded</a></code> sets it to be preloaded. In either case, the texture map must be bound to a particular region of TMEM. The cache size must be declared for cached textures.</P>
55<P>TMEM is divided into low order and high order banks. The texture may be split between the banks depending upon the texture format. For the rules governing this, refer to <code><a href="../gx/Texture/GXInitTexCacheRegion.html#TMEM_rules">GXInitTexCacheRegion</a></code>.</P>
56
57<H2>See Also</H2>
58<P class="reference">
59<A href="../gx/Texture/GXInitTexCacheRegion.html">GXInitTexCacheRegion</A>,
60<A href="GDSetTexPreLoaded.html">GDSetTexPreLoaded</A>
61</P>
62
63<H2>Revision History</H2>
64<P>
652006/03/01 Initial version.<BR>
66</P>
67
68<hr><p>CONFIDENTIAL</p></body>
69</HTML>