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<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXPreLoadEntireTexture( 21 const <a href="../Structures/GXTexObj.html">GXTexObj</a>* tex_obj, 22 const <a href="../Structures/GXTexRegion.html">GXTexRegion</a>* region ); 23</pre></dd></dl> 24 25<h2>Arguments</h2> 26<TABLE class="arguments" border="1" > 27 <tr> 28<TH>tex_obj</TH> 29<TD>Pointer to the texture object that describes the texture to be loaded.</TD> 30 </tr> 31 <tr> 32<TH>region</TH> 33<TD>Texture region in texture memory where the texture is to be loaded.</TD> 34 </tr> 35</TABLE> 36 37<h2>Return Values</h2> 38<p>None.</p> 39 40<H2>Description</H2> 41<P>This function loads a given texture from DRAM into the texture memory. Accesses to this texture will bypass the texture-cache-tag look-up and instead read the texels directly from texture memory. The texture region must be the same size as the texture. See the <A href="GXInitTexPreLoadRegion.html"><CODE>GXInitTexPreLoadRegion</CODE></A> function for details.</P> 42<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 the <A href="GXLoadTexObjPreLoaded.html"><CODE>GXLoadTexObjPreLoaded</CODE></A> function. The default configuration of texture memory (as set by the <A href="../Management/GXInit.html"><CODE>GXInit</CODE></A> function) has <em>no preloaded regions</em>, so you must implement your own region allocator callbacks using the <A href="GXSetTexRegionCallback.html"><CODE>GXSetTexRegionCallBack</CODE></A> and <A href="GXSetTlutRegionCallback.html"><CODE>GXSetTlutRegionCallBack</CODE></A> functions.</P> 43 44<h2>See Also</h2> 45<P class="reference"> 46<a href="GXLoadTexObj.html">GXLoadTexObj</a>, 47<a href="GXLoadTlut.html">GXLoadTlut</a>, 48<a href="GXInitTexPreLoadRegion.html">GXInitTexPreLoadRegion</a> 49</p> 50 51<H2>Revision History</H2> 52<P> 532006/03/01 Initial version.<br> 54</P> 55 56<hr><p>CONFIDENTIAL</p></body> 57</HTML>