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>GXSetTevSwapModeTable</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXSetTevSwapModeTable</H1>
12
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gx.h&gt;
16
17void GXSetTevSwapModeTable(
18    <A href="../Enumerated_Types/GXTevSwapSel.html">GXTevSwapSel</A>   id,
19    <A href="../Enumerated_Types/GXTevColorChan.html">GXTevColorChan</A> red,
20    <A href="../Enumerated_Types/GXTevColorChan.html">GXTevColorChan</A> green,
21    <A href="../Enumerated_Types/GXTevColorChan.html">GXTevColorChan</A> blue,
22    <A href="../Enumerated_Types/GXTevColorChan.html">GXTevColorChan</A> alpha );
23</pre></dd></dl>
24
25<H2>Arguments</H2>
26<TABLE class="arguments" border="1" >
27  <TBODY>
28    <TR>
29<TH>id</TH>
30<TD>Which entry (row) in the table is being modified. Accepted values are: <code>GX_TEV_SWAP0</code>, <code>GX_TEV_SWAP1</code>, <code>GX_TEV_SWAP2</code>, <code>GX_TEV_SWAP3</code>.</TD>
31    </TR>
32    <TR>
33<TH><STRONG><EM><CODE>red</CODE></EM></STRONG></TH>
34<TD>Selects the input color component that should be mapped to the red output component.&nbsp;Accepted values are:<BR>
35      <TABLE class="arguments" border="1" >
36          <tr>
37<TD bgcolor="#C0C0C0">Name</TD>
38<TD bgcolor="#C0C0C0">Input color component</TD>
39          </tr>
40          <tr>
41<TH>GX_CH_RED</TH>
42<TD>Red</TD>
43          </tr>
44          <tr>
45<TH>GX_CH_GREEN</TH>
46<TD>Green</TD>
47          </tr>
48          <tr>
49<TH>GX_CH_BLUE</TH>
50<TD>Blue</TD>
51          </tr>
52          <tr>
53<TH>GX_CH_ALPHA</TH>
54<TD>Alpha</TD>
55          </tr>
56      </TABLE>
57      </TD>
58    </TR>
59    <TR>
60<TH><STRONG><EM><CODE>green</CODE></EM></STRONG></TH>
61<TD>Selects the input color component that should be mapped to the green output component.&nbsp;Accepted values are similar to <SPAN class="argument">red</SPAN>.</TD>
62    </TR>
63    <TR>
64<TH><STRONG><EM><CODE>blue</CODE></EM></STRONG></TH>
65<TD>Selects the input color component that should be mapped to the blue output component.&nbsp;Accepted values are similar to <SPAN class="argument">red</SPAN>.</TD>
66    </TR>
67    <TR>
68<TH><STRONG><EM><CODE>alpha</CODE></EM></STRONG></TH>
69<TD>Selects the input color component that should be mapped to the alpha output component.&nbsp;Accepted values are similar to <SPAN class="argument">red</SPAN>.</TD>
70    </TR>
71  </TBODY>
72</TABLE>
73
74<H2>Return Values</H2>
75<P>None.</P>
76
77<H2>Description</H2>
78<P>This function is for setting the TEV swap table. The swap table makes it possible to swap at the component level the rasterized color inputs and the texture color inputs in the TEV stage. The defaults for the swap table are as follows.</P>
79<TABLE class="arguments" border="1" >
80    <tr>
81<td bgcolor="#C0C0C0">Entry</td>
82<td bgcolor="#C0C0C0">Red component</td>
83<td bgcolor="#C0C0C0">Green component</td>
84<td bgcolor="#C0C0C0">Blue component</td>
85<td bgcolor="#C0C0C0">Alpha Component</td>
86<td bgcolor="#C0C0C0">Swap result</td>
87    </tr>
88    <tr>
89<th>GX_TEV_SWAP0</th>
90<td>GX_CH_RED</td>
91<td>GX_CH_GREEN</td>
92<td>GX_CH_BLUE</td>
93<td>GX_CH_ALPHA</td>
94<td>RGBA</td>
95    </tr>
96    <tr>
97<th>GX_TEV_SWAP1</th>
98<td>GX_CH_RED</td>
99<td>GX_CH_RED</td>
100<td>GX_CH_RED</td>
101<td>GX_CH_ALPHA</td>
102<td>RRRA</td>
103    </tr>
104    <tr>
105<th>GX_TEV_SWAP2</th>
106<td>GX_CH_GREEN</td>
107<td>GX_CH_GREEN</td>
108<td>GX_CH_GREEN</td>
109<td>GX_CH_ALPHA</td>
110<td>GGGA</td>
111    </tr>
112    <tr>
113<th>GX_TEV_SWAP3</th>
114<td>GX_CH_BLUE</td>
115<td>GX_CH_BLUE</td>
116<td>GX_CH_BLUE</td>
117<td>GX_CH_ALPHA</td>
118<td>BBBA</td>
119    </tr>
120</table>
121
122<P>The table specifies for a single entry how an input color component is mapped to an output color component.</P>
123
124<H2>See Also</H2>
125<P class="reference">
126<A href="GXSetTevSwapMode.html"><CODE>GXSetTevSwapMode</CODE></A>
127</P>
128
129<H2>Revision History</H2>
130<P>
1312006/03/01 Initial version.<br>
132</P>
133
134<hr><p>CONFIDENTIAL</p></body>
135</HTML>