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>GXSetTevIndTile</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetTevIndTile</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetTevIndTile( <a href="../Enumerated_Types/GXTevStageID.html">GXTevStageID</a> tev_stage,
21                      <a href="../Enumerated_Types/GXIndTexStageID.html">GXIndTexStageID</a> ind_stage,
22                      u16 tilesize_s,
23                      u16 tilesize_t,
24                      u16 tilespacing_s,
25                      u16 tilespacing_t,
26                      <a href="../Enumerated_Types/GXIndTexFormat.html">GXIndTexFormat</a> format,
27                      <a href="../Enumerated_Types/GXIndTexMtxID.html">GXIndTexMtxID</a> matrix_sel,
28                      <a href="../Enumerated_Types/GXIndTexBiasSel.html">GXIndTexBiasSel</a> bias_sel,
29                      <a href="../Enumerated_Types/GXIndTexAlphaSel.html">GXIndTexAlphaSel</a> alpha_sel);
30</pre></dd></dl>
31
32<h2>Arguments</h2>
33<TABLE class="arguments" border="1" >
34  <tr>
35<TH>tev_stage</TH>
36<TD>TEV stage to be set. Accepted values are: <code>GX_TEVSTAGE0</code>, <code>GX_TEVSTAGE1</code>, <code>GX_TEVSTAGE2</code>, ... , <code>GX_TEVSTAGE15</code>.</TD>
37  </tr>
38  <tr>
39<TH>ind_stage</TH>
40<TD>The indirect stage results used with this TEV stage. <BR>Accepted values are: <code>GX_INDTEXSTAGE0</code>, <code>GX_INDTEXSTAGE1</code>, <code>GX_INDTEXSTAGE2</code> and <code>GX_INDTEXSTAGE3</code>.</TD>
41  </tr>
42  <tr>
43<TH>tilesize_s</TH>
44<TD>Size of the tile in the S direction. <BR>Applicable values are 16, 32, 64, 128 and 256.</TD>
45  </tr>
46  <tr>
47<TH>tilesize_t</TH>
48<TD>Size of the tile in the T direction. <BR>Applicable values are 16, 32, 64, 128 and 256.</TD>
49  </tr>
50  <tr>
51<TH>tilespacing_s</TH>
52<TD>Spacing of the tiles (in the tile definition map) in the S direction.</TD>
53  </tr>
54  <tr>
55<TH>tilespacing_t</TH>
56<TD>Spacing of the tiles (in the tile-definition map) in the T direction.</TD>
57  </tr>
58  <tr>
59<TH>format</TH>
60<TD>Specifies which indirect texture format to use. Accepted values are:<BR>
61      <TABLE class="arguments" border="1" >
62          <tr>
63<TD bgcolor="#C0C0C0">Name</TD>
64<TD bgcolor="#C0C0C0">Indirect Offset Data and Bump Alpha</TD>
65          </tr>
66          <tr>
67<TH>GX_ITF_8</TH>
68<TD>Use all 8 bits as indirect offset data. The same data (the upper 5 bits) is copied as the bump alpha.</TD>
69          </tr>
70          <tr>
71<TH>GX_ITF_5</TH>
72<TD>Use lower 5 bits as indirect offset data. Remaining 3 bits become &quot;bump alpha&quot;.</TD>
73          </tr>
74          <tr>
75<TH>GX_ITF_4</TH>
76<TD>Use lower 4 bits as indirect offset data. Remaining 4 bits become &quot;bump alpha&quot;.</TD>
77          </tr>
78          <tr>
79<TH>GX_ITF_3</TH>
80<TD>Use lower 3 bits as indirect offset data. Remaining 5 bits become &quot;bump alpha&quot;.</TD>
81          </tr>
82      </TABLE>
83    </TD>
84  </tr>
85  <tr>
86<TH>matrix_sel</TH>
87<TD>The indirect matrix and scale value to multiply the offsets by.</TD>
88  </tr>
89  <tr>
90<TH>bias_sel</TH>
91<TD>Tile stacking direction for pseudo-3D textures. Accepted values are:<BR>
92      <TABLE class="arguments" border="1" >
93          <tr>
94<TD bgcolor="#C0C0C0">Name</TD>
95<TD bgcolor="#C0C0C0">Bias-applied Components</TD>
96          </tr>
97          <tr>
98<TH>GX_ITB_NONE</TH>
99<TD>None.</TD>
100          </tr>
101          <tr>
102<TH>GX_ITB_S</TH>
103<TD>S component only.</TD>
104          </tr>
105          <tr>
106<TH>GX_ITB_T</TH>
107<TD>T component only.</TD>
108          </tr>
109          <tr>
110<TH>GX_ITB_U</TH>
111<TD>U component only.</TD>
112          </tr>
113          <tr>
114<TH>GX_ITB_ST</TH>
115<TD>S and T components.</TD>
116          </tr>
117          <tr>
118<TH>GX_ITB_SU</TH>
119<TD>S and U components.</TD>
120          </tr>
121          <tr>
122<TH>GX_ITB_TU</TH>
123<TD>T and U components.</TD>
124          </tr>
125          <tr>
126<TH>GX_ITB_STU</TH>
127<TD>All components: S, T, and U.</TD>
128          </tr>
129      </TABLE>
130    </TD>
131  </tr>
132  <tr>
133<TH>alpha_sel</TH>
134<TD>Specifies which offset component will supply the indirect bump alpha, if any (for pseudo-3D textures). Accepted values are:<BR>
135      <TABLE class="arguments" border="1" >
136          <tr>
137<TD bgcolor="#C0C0C0">Name</TD>
138<TD bgcolor="#C0C0C0">Bump Alpha Source</TD>
139          </tr>
140          <tr>
141<TH>GX_ITBA_OFF</TH>
142<TD>no bump alpha</TD>
143          </tr>
144          <tr>
145<TH>GX_ITBA_S</TH>
146<TD>S component supplies bump alpha</TD>
147          </tr>
148          <tr>
149<TH>GX_ITBA_T</TH>
150<TD>T component supplies bump alpha</TD>
151          </tr>
152          <tr>
153<TH>GX_ITBA_U</TH>
154<TD>U component supplies bump alpha</TD>
155          </tr>
156      </TABLE>
157    </TD>
158  </tr>
159</TABLE>
160
161<h2>Return Values</h2>
162<p>None.</p>
163
164<H2>Description</H2>
165<P>This function can be used to implement tile textures that use indirect textures. It will set up the correct values in the given indirect matrix; you only need to specify which matrix slot to use.</P>
166<P>Be aware that the regular texture map contains only the tile definitions. The actual texture size to be applied to the polygon being drawn is the product of the base tile size and the size of the indirect map. The <A href="../TexCoordGen/GXSetTexCoordScaleManually.html"><CODE>GXSetTexCoordScaleManually</CODE></A> function must be called to set the appropriate texture coordinate scale. The <A href="GXSetIndTexCoordScale.html"><CODE>GXSetIndTexCoordScale</CODE></A> function can also be used to use the same texture coordinates for the indirect stage as for the regular TEV stage.</P>
167
168<h2>See Also</h2>
169<P class="reference">
170<A href="GXSetTevIndirect.html">GXSetTevIndirect</A>,
171<A href="../TexCoordGen/GXSetTexCoordScaleManually.html">GXSetTexCoordScaleManually</A>,
172<A href="GXSetIndTexCoordScale.html">GXSetIndTexCoordScale</A>
173</p>
174
175<H2>Revision History</H2>
176<P>
1772006/03/01 Initial version.<br>
178</P>
179
180<hr><p>CONFIDENTIAL</p></body>
181</HTML>