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 name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css"> 8<TITLE>ind-tile-test</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">ind-tile-test</H1> 12 13<H2>Description</H2> 14<P>This program shows how to render a tiled texture map using an indirect texture. A regular texture contains a set of tile definitions. An indirect texture contains a tile map that places tiles on a given surface.</P> 15 16<H2>Coverage</H2> 17<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 18 <TBODY> 19 <TR> 20<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD> 21<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD> 22<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD> 23 </TR> 24 <TR> 25<TD width="30%" rowspan="4"><CODE><A href="../../../gx/TexCoordGen/GXSetTexCoordScaleManually.html">GXSetTexCoordScaleManually</A></CODE></TD> 26<TD width="25%"><SPAN class="argument">Texture coordinates</SPAN></TD> 27<TD width="45%"><CODE>GX_TEXCOORD0</CODE></TD> 28 </TR> 29 <TR> 30<TD width="25%"><SPAN class="argument">enable</SPAN></TD> 31<TD width="45%"><CODE>GX_TRUE</CODE></TD> 32 </TR> 33 <TR> 34<TD width="25%"><SPAN class="argument">Scale S</SPAN></TD> 35 <TD width="45%">128 * 32</TD> 36 </TR> 37 <TR> 38<TD width="25%"><SPAN class="argument">Scale T</SPAN></TD> 39 <TD width="45%">64 * 32</TD> 40 </TR> 41 <TR> 42<TD width="30%"><A href="../../../gx/Indirect/GXSetNumIndStages.html"><CODE>GXSetNumIndStages</CODE></A></TD> 43<TD width="25%"><SPAN class="argument">Number of stages</SPAN></TD> 44 <TD width="45%">1</TD> 45 </TR> 46 <TR> 47<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexOrder.html"><CODE>GXSetIndTexOrder</CODE></A></TD> 48<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD> 49<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD> 50 </TR> 51 <TR> 52<TD width="25%"><SPAN class="argument">Texture coordinates</SPAN></TD> 53<TD width="45%"><CODE>GX_TEXCOORD0</CODE></TD> 54 </TR> 55 <TR> 56<TD width="25%"><SPAN class="argument">Texture map</SPAN></TD> 57<TD width="45%"><CODE>GX_TEXMAP1</CODE></TD> 58 </TR> 59 <TR> 60<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE>GXSetIndTexCoordScale</CODE></A></TD> 61<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD> 62<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD> 63 </TR> 64 <TR> 65<TD width="25%"><B><I><SPAN class="argument">S scale</SPAN></I></B></TD> 66<TD width="45%"><CODE>GX_ITS_32</CODE></TD> 67 </TR> 68 <TR> 69<TD width="25%"><SPAN class="argument">T scale</SPAN></TD> 70<TD width="45%"><CODE>GX_ITS_32</CODE></TD> 71 </TR> 72 <TR> 73<TD width="30%" rowspan="10"><A href="../../../gx/Indirect/GXSetTevIndTile.html"><CODE>GXSetTevIndTile</CODE></A></TD> 74<TD width="25%"><SPAN class="argument">TEV Stage</SPAN></TD> 75<TD width="45%"><CODE>GX_TEVSTAGE1</CODE></TD> 76 </TR> 77 <TR> 78<TD width="25%"><SPAN class="argument">Indirect stage</SPAN></TD> 79<TD width="45%"><CODE>GX_INDTEXSTAGE0</CODE></TD> 80 </TR> 81 <TR> 82<TD width="25%"><SPAN class="argument">Tile size S</SPAN></TD> 83 <TD width="45%">32</TD> 84 </TR> 85 <TR> 86<TD width="25%"><SPAN class="argument">Tile size T</SPAN></TD> 87 <TD width="45%">32</TD> 88 </TR> 89 <TR> 90<TD width="25%"><SPAN class="argument">Tile spacing S</SPAN></TD> 91 <TD width="45%">32</TD> 92 </TR> 93 <TR> 94<TD width="25%"><SPAN class="argument">Tile spacing T</SPAN></TD> 95 <TD width="45%">32</TD> 96 </TR> 97 <TR> 98<TD width="25%"><SPAN class="argument">Indirect texture format</SPAN></TD> 99<TD width="45%"><CODE>GX_ITF_4</CODE></TD> 100 </TR> 101 <TR> 102<TD width="25%"><SPAN class="argument">Indirect texture matrix</SPAN></TD> 103<TD width="45%"><CODE>GX_ITM_0</CODE></TD> 104 </TR> 105 <TR> 106<TD width="25%"><SPAN class="argument">Indirect bias select</SPAN></TD> 107<TD width="45%"><CODE>GX_ITB_NONE</CODE></TD> 108 </TR> 109 <TR> 110<TD width="25%"><SPAN class="argument">Bump alpha select</SPAN></TD> 111<TD width="45%"><CODE>GX_ITBA_OFF</CODE></TD> 112 </TR> 113 </TBODY> 114</TABLE> 115 116<H2>Using the Demo</H2> 117<P>PAUSE exits the test.<br><br>The L and R Buttons rotate the image. <br>The Control Stick translates the image. The A and B Buttons zoom in and zoom out.</P> 118 119<H2>Snapshot</H2> 120<P><IMG src="./images/ind-tile-test-0.jpg" alt="ind-tile-test-0.jpg (36084 bytes)" width="640" height="448"></P> 121<P><IMG src="./images/ind-tile-test-1.jpg" alt="ind-tile-test-1.jpg (25486 bytes)" width="640" height="448"></P> 122 123<H2>Required Data Files</H2> 124<P><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/g2d-00.tpl</CODE></P> 125 126<H2>Revision History</H2> 127<P> 1282006/03/01 Initial version.<br> 129</P> 130 131<hr><p>CONFIDENTIAL</p></body> 132</HTML>