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>tex-mix-mode</title> 10</head> 11 12<body> 13 14<h1 align="left">tex-mix-mode</h1> 15 16<h2>Description</h2> 17<p>This program tests simultaneous use of preloaded and cached texture. Textured cubes are displayed on the screen. Out of the 16 textures used in this example some are preloaded and others use caches. You can set up to seven preloaded textures up (this program prepares only 8 regions shared for preloading and caching).</p> 18 19<h2>Coverage</h2> 20<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 21 <tr> 22<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD> 23<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD> 24<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD> 25 </tr> 26 <tr> 27<TD width="30%" rowspan="5"><a href="../../../gx/Texture/GXInitTexObj.html"><code>GXInitTexObj</code></a></TD> 28<TD width="25%"><SPAN class="argument">Pointer to image data.</SPAN></TD> 29<TD width="45%">Appropriate value.</TD> 30 </tr> 31 <tr> 32<TD width="25%"><SPAN class="argument">Width and height</SPAN></TD> 33<TD width="45%">Fixed.</TD> 34 </tr> 35 <tr> 36<TD width="25%"><SPAN class="argument">format</SPAN></TD> 37<TD width="45%">Always <CODE>GX_RGB565</CODE></TD> 38 </tr> 39 <tr> 40<TD width="25%"><SPAN class="argument">Wrap mode (s, t).</SPAN></TD> 41<TD width="45%">Always <CODE>GX_REPEAT</CODE></TD> 42 </tr> 43 <tr> 44<TD width="25%"><SPAN class="argument">Mipmap</SPAN></TD> 45<TD width="45%">Always <CODE>GX_TRUE</CODE></TD> 46 </tr> 47 <tr> 48<TD width="30%"><a href="../../../gx/Texture/GXInitTexObjUserData.html"><code>GXInitTexObjUserData</code></a></TD> 49<TD width="25%"><SPAN class="argument">User data pointer</SPAN></TD> 50<TD width="45%"><strong>Existing pointer (to texture region objects).</strong></TD> 51 </tr> 52 <tr> 53<TD width="30%"><a href="../../../gx/Texture/GXGetTexObjUserData.html"><code>GXGetTexObjUserData</code></a></TD> 54<TD width="25%"><SPAN class="argument">(no parameter)</SPAN></TD> 55 <TD width="45%"> </TD> 56 </tr> 57 <tr> 58<TD width="30%"><a href="../../../gx/Texture/GXPreLoadEntireTexture.html"><code>GXPreLoadEntireTexture</code></a></TD> 59<TD width="25%"><SPAN class="argument">Texture region</SPAN></TD> 60<TD width="45%"><strong>Appropriate <CODE>GXTexRegion</CODE> object</strong></TD> 61 </tr> 62 <tr> 63<TD width="30%" rowspan="2"><a href="../../../gx/Texture/GXLoadTexObjPreLoaded.html"><code>GXLoadTexObjPreLoaded</code></a></TD> 64<TD width="25%"><SPAN class="argument">Texture region</SPAN></TD> 65<TD width="45%">The correct region where the texture data is preloaded.</TD> 66 </tr> 67 <tr> 68<TD width="25%"><SPAN class="argument">Destination texture name</SPAN></TD> 69<TD width="45%">Always <CODE>GX_TEXMAP0</CODE></TD> 70 </tr> 71 <tr> 72<TD width="30%"><a href="../../../gx/Texture/GXLoadTexObj.html"><code><CODE>GXLoadTexObj</CODE></code></a></TD> 73<TD width="25%"><SPAN class="argument">Destination texture name</SPAN></TD> 74<TD width="45%">Always <CODE>GX_TEXMAP0</CODE></TD> 75 </tr> 76 <tr> 77<TD width="30%" rowspan="3"><a href="../../../gx/Texture/GXInitTexCacheRegion.html"><code>GXInitTexCacheRegion</code></a></TD> 78<TD width="25%"><SPAN class="argument">32-bit mipmap flag.</SPAN></TD> 79<TD width="45%">Always <CODE>GX_FALSE</CODE></TD> 80 </tr> 81 <tr> 82<TD width="25%"><SPAN class="argument">TMEM address (even, odd).</SPAN></TD> 83<TD width="45%"><strong>Appropriate lower bank address (even)<br>Appropriate higher bank address (odd)</strong></TD> 84 </tr> 85 <tr> 86<TD width="25%"><SPAN class="argument">Cache size (even, odd).</SPAN></TD> 87<TD width="45%">Always <CODE>GX_TEXCACHE_32K</CODE></TD> 88 </tr> 89 <tr> 90<TD width="30%" rowspan="2"><a href="../../../gx/Texture/GXInitTexPreLoadRegion.html"><code>GXInitTexPreloadRegion</code></a></TD> 91<TD width="25%"><SPAN class="argument">TMEM address (even/odd)</SPAN></TD> 92<TD width="45%"><strong>Appropriate lower bank address (even)<br>Appropriate higher bank address (odd)</strong></TD> 93 </tr> 94 <tr> 95<TD width="25%"><SPAN class="argument">Texture region size (even/odd)</SPAN></TD> 96<TD width="45%">Always 32768</TD> 97 </tr> 98 <tr> 99<TD width="30%"><a href="../../../gx/Texture/GXSetTexRegionCallback.html"><code>GXSetTexRegionCallBack</code></a></TD> 100<TD width="25%"><SPAN class="argument">Callback Functions</SPAN></TD> 101<TD width="45%">One function</TD> 102 </tr> 103 <tr> 104<TD width="30%"><a href="../../../gx/Texture/GXInvalidateTexAll.html"><code>GXInvalidateTexAll</code></a></TD> 105<TD width="25%"><SPAN class="argument">(no parameter)</SPAN></TD> 106 <TD width="45%"> </TD> 107 </tr> 108 <tr> 109<TD width="30%"><a href="../../../gx/Management/GXTexModeSync.html"><code>GXTexModeSync</code></a></TD> 110<TD width="25%"><SPAN class="argument">(no parameter)</SPAN></TD> 111 <TD width="45%"> </TD> 112 </tr> 113 <tr> 114<TD width="30%" rowspan="2"><a href="../../../gx/Tev/GXSetTevOp.html"><code>GXSetTevOp</code></a></TD> 115<TD width="25%"><SPAN class="argument">TEV stage ID</SPAN></TD> 116<TD width="45%">Always <CODE>GX_TEVSTAGE0</CODE></TD> 117 </tr> 118 <tr> 119<TD width="25%"><SPAN class="argument">Operation mode</SPAN></TD> 120<TD width="45%">Always <CODE>GX_REPLACE</CODE></TD> 121 </tr> 122</TABLE> 123 124<h2>Using the Demo</h2> 125<p>START exits the demo.</p> 126<p>The L and R Buttons change the number of preloaded textures (0-7).<br>If the number is n, textures with numbers that are less than n are preloaded.</p> 127 128<p>The X and Y Buttons change the number of layers drawn.<br>Drawing many layers to check the difference in performance may be useful.</p> 129 130<h2>Snapshot</h2> 131<P><IMG src="./images/tex-mix-mode-1.gif" alt="tex-mix-mode-1.gif (107748 bytes)" WIDTH="640" HEIGHT="480"></p> 132 133<h2>Data Files Required</h2> 134<p><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-07.tpl</CODE></p> 135 136<H2>Revision History</H2> 137<P> 1382006/03/01 Initial version.<br> 139</P> 140 141<hr><p>CONFIDENTIAL</p></body> 142</html>