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<H2>Coverage</H2>
16<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
17  <TBODY>
18    <TR>
19<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD>
20<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD>
21<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD>
22    </TR>
23    <TR>
24<TD width="30%" rowspan="4"><CODE><A href="../../../gx/TexCoordGen/GXSetTexCoordScaleManually.html">GXSetTexCoordScaleManually</A></CODE></TD>
25<TD width="25%"><FONT face="Courier New"><EM><STRONG>Texture coordinate.</STRONG></EM></FONT></TD>
26<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEXCOORD0</font>.</FONT></TD>
27    </TR>
28    <TR>
29<TD width="25%"><FONT face="Courier New"><EM><STRONG>enable</STRONG></EM></FONT></TD>
30<TD width="45%"><FONT face="Courier New">GX_TRUE</FONT></TD>    </TR>
31    <TR>
32<TD width="25%"><FONT face="Courier New"><EM><STRONG>scale S</STRONG></EM></FONT></TD>
33      <TD width="45%">128*32</TD>
34    </TR>
35    <TR>
36<TD width="25%"><FONT face="Courier New"><EM><STRONG>scale T</STRONG></EM></FONT></TD>
37      <TD width="45%">64*32</TD>
38    </TR>
39    <TR>
40<TD width="30%"><A href="../../../gx/Indirect/GXSetNumIndStages.html"><CODE><CODE>GXSetNumIndStages</CODE></CODE></A></TD>
41<TD width="25%"><FONT face="Courier New"><EM><STRONG>number of stages</STRONG></EM></FONT></TD>
42      <TD width="45%">1</TD>
43    </TR>
44    <TR>
45<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexOrder.html"><CODE><CODE>GXSetIndTexOrder</CODE></CODE></A></TD>
46<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect stage</STRONG></EM></FONT></TD>
47<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD>
48    </TR>
49    <TR>
50<TD width="25%"><FONT face="Courier New"><EM><STRONG>Texture coordinate.</STRONG></EM></FONT></TD>
51<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_TEXCOORD0</font>.</FONT></TD>
52    </TR>
53    <TR>
54<TD width="25%"><FONT face="Courier New"><EM><STRONG>texture map</STRONG></EM></FONT></TD>
55<TD width="45%"><FONT face="Courier New">GX_TEXMAP1</FONT></TD>
56    </TR>
57    <TR>
58<TD width="30%" rowspan="3"><A href="../../../gx/Indirect/GXSetIndTexCoordScale.html"><CODE><CODE>GXSetIndTexCoordScale</CODE></CODE></A></TD>
59<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect stage</STRONG></EM></FONT></TD>
60<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD>
61    </TR>
62    <TR>
63<TD width="25%"><B><I><FONT face="Courier New"><EM><STRONG>S scale</STRONG></EM></FONT></I></B></TD>
64<TD width="45%"><FONT face="Courier New">GX_ITS_32</FONT></TD>    </TR>
65    <TR>
66<TD width="25%"><FONT face="Courier New"><EM><STRONG>T scale</STRONG></EM></FONT></TD>
67<TD width="45%"><FONT face="Courier New">GX_ITS_32</FONT></TD>    </TR>
68    <TR>
69<TD width="30%" rowspan="10"><A href="../../../gx/Indirect/GXSetTevIndTile.html"><CODE>GXSetTevIndTile</CODE></A></TD>
70<TD width="25%"><FONT face="Courier New"><EM><STRONG>TEV stage</STRONG></EM></FONT></TD>
71<TD width="45%"><FONT face="Courier New">GX_TEVSTAGE1</FONT></TD>    </TR>
72    <TR>
73<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect stage</STRONG></EM></FONT></TD>
74<TD width="45%"><FONT face="Courier New"><font face="Courier New">GX_INDTEXSTAGE0</font>.</FONT></TD>
75    </TR>
76    <TR>
77<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile size S</STRONG></EM></FONT></TD>
78      <TD width="45%">32</TD>
79    </TR>
80    <TR>
81<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile size T</STRONG></EM></FONT></TD>
82      <TD width="45%">32</TD>
83    </TR>
84    <TR>
85<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile spacing S</STRONG></EM></FONT></TD>
86      <TD width="45%">32</TD>
87    </TR>
88    <TR>
89<TD width="25%"><FONT face="Courier New"><EM><STRONG>tile spacing T</STRONG></EM></FONT></TD>
90      <TD width="45%">32</TD>
91    </TR>
92    <TR>
93<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect texture format</STRONG></EM></FONT></TD>
94<TD width="45%"><FONT face="Courier New">GX_ITF_4</FONT></TD>    </TR>
95    <TR>
96<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect texture matrix</STRONG></EM></FONT></TD>
97<TD width="45%"><FONT face="Courier New">GX_ITM_0</FONT></TD>    </TR>
98    <TR>
99<TD width="25%"><FONT face="Courier New"><EM><STRONG>indirect bias select</STRONG></EM></FONT></TD>
100<TD width="45%"><FONT face="Courier New">GX_ITB_NONE</FONT></TD>    </TR>
101    <TR>
102<TD width="25%"><FONT face="Courier New"><EM><STRONG>bump alpha select</STRONG></EM></FONT></TD>
103<TD width="45%"><FONT face="Courier New">GX_ITBA_OFF</FONT></TD>    </TR>
104  </TBODY>
105</TABLE>
106<H2>Operation Method</H2>
107<P>START exits the test. <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><H2>Snapshot</H2>
108<P>
109<IMG src="./images/ind-tile-test-0.jpg" alt="ind-tile-test-0.jpg (36084 bytes)" width="640" height="448"></P>
110<P>
111<IMG src="./images/ind-tile-test-1.jpg" alt="ind-tile-test-1.jpg (25486 bytes)" width="640" height="448"></P>
112<H2>Required Data Files</H2>
113<P><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/g2d-00.tpl</FONT>.</P>
114<H2>Revision History</H2>
115<P>2006/03/01 Initial version.</P>
116<hr>
117<P>CONFIDENTIAL</p>
118</BODY>
119</HTML>