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>GXPreLoadEntireTexture</title>
10</head>
11
12<body>
13
14<h1 align="left">GXPreLoadEntireTexture</h1>
15
16
17<h2>C Specification</h2>
18
19<dl>
20<dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre>
21  </dd>
22<dd><pre><CODE>void GXPreLoadEntireTexture(
23const <a href="../Structures/GXTexObj.html">GXTexObj</a>*     tex_obj,
24const <a href="../Structures/GXTexRegion.html">GXTexRegion</a>*  region );</CODE></pre>
25  </dd>
26</dl>
27
28<h2>Arguments</h2>
29<TABLE border="1" cellpadding="3" cellspacing="0.1">
30  <tr>
31<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>tex_obj</CODE></strong></em></TD>
32<TD width="520">Pointer to the texture object that describes the texture to be loaded.</TD>
33    </tr>
34  <tr>
35<TD width="120" bgcolor="#ffffe8"><em><strong><CODE>region</CODE></strong></em></TD>
36<TD width="520">Texture region in texture memory where the texture is to be loaded.</TD>
37    </tr>
38</TABLE>
39<h2>Return Values</h2>
40
41<p>None.</p>
42<H2>Description</H2>
43<P>This function loads a given texture from DRAM into the texture memory.&nbsp;Accesses to this texture will bypass the texture-cache-tag look-up and instead read the texels directly from texture memory.&nbsp;The texture region must be the same size as the texture, see <a href="GXInitTexPreLoadRegion.html"><code>GXInitTexPreLoadRegion</code></a>.</P>
44<P>This function loads the texture into texture memory, but to use it as a source for the texture environment (TEV) unit, you must first call <a href="GXLoadTexObjPreLoaded.html"><code>GXLoadTexObjPreLoaded</code></a>. The default configuration (as set by <a href="../Management/GXInit.html"><code>GXInit</code></a>) of texture memory has <em>no preloaded regions</em>, so you must install your own region allocator callbacks using <a href="../Texture/GXSetTexRegionCallback.html"><code>GXSetTexRegionCallBack</code></a> and <a href="../Texture/GXSetTlutRegionCallback.html"><code>GXSetTlutRegionCallBack</code></a>.</P>
45
46<h2>See Also</h2>
47
48<p><a href="GXLoadTexObj.html">GXLoadTexObj</a><br> <a href="GXLoadTlut.html">GXLoadTlut</a><br> <a href="GXInitTexPreLoadRegion.html">GXInitTexPreLoadRegion</a></p>
49<H2>Revision History</H2>
50<P>03/01/2006 Initial version.</P>
51</BODY>
52</HTML>