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>GXSetTevSwapMode</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXSetTevSwapMode</H1>
12<H2>C Specification</H2>
13<DL>
14  <DD>
15  <PRE><CODE>#include &lt;revolution/gx.h&gt;</CODE></PRE>
16  <DD>
17  <PRE><CODE>void GXSetTevSwapMode(</CODE><CODE>
18    <A href="../Enumerated_Types/GXTevStageID.html">GXTevStageID</A>   stage,
19    <A href="../Enumerated_Types/GXTevSwapSel.html">GXTevSwapSel</A>   ras_sel,
20    <A href="../Enumerated_Types/GXTevSwapSel.html">GXTevSwapSel</A>   tex_sel );</CODE></PRE>
21</DL>
22<H2>Arguments</H2>
23<TABLE border="1" cellspacing="0.1" cellpadding="3">
24  <TBODY>
25    <TR>
26<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>stage</code></STRONG></EM></TD>
27<TD width="520">Name of the TEV <a href="../Enumerated_Types/GXTevStageID.html">stage</a>. Accepted values are: <code>GX_TEVSTAGE0</code>, <code>GX_TEVSTAGE1</code>, <code>GX_TEVSTAGE2</code>, ..., <code>GX_TEVSTAGE15</code>.</TD>
28    </TR>
29    <TR>
30<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>ras_sel</code></STRONG></EM></TD>
31<TD width="520">Selects a swap <a href="../Enumerated_Types/GXTevSwapSel.html">mode</a> for the rasterized color input.&nbsp;Accepted values are: <code>GX_TEV_SWAP0</code>, <code>GX_TEV_SWAP1</code>, <code>GX_TEV_SWAP2</code>, <code>GX_TEV_SWAP3</code>.</TD>
32    </TR>
33    <TR>
34<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>tex_sel</code></STRONG></EM></TD>
35<TD width="520">Selects a swap <a href="../Enumerated_Types/GXTevSwapSel.html">mode</a> for the texture color input.&nbsp;Accepted values are: <code>GX_TEV_SWAP0</code>, <code>GX_TEV_SWAP1</code>, <code>GX_TEV_SWAP2</code>, <code>GX_TEV_SWAP3</code>.</TD>
36    </TR>
37  </TBODY>
38</TABLE>
39<H2>Return Values</H2>
40<P>None.</P>
41<H2>Description</H2>
42<P>This function selects the swap mode settings for rasterized color inputs and texture color inputs for the given TEV stage. This can be used to re-order or duplicate the input color components.</P>
43<P>There are four different swap mode table entries. Each entry in the table specifies how the RGBA inputs map to the RGBA outputs. For more information, see the <CODE><A href="GXSetTevSwapModeTable.html">GXSetTevSwapModeTable</A></code> function.</P>
44<H2>See Also</H2>
45<P><A href="GXSetTevSwapModeTable.html"><CODE>GXSetTevSwapModeTable</CODE><br></A><A href="GXSetTevColorIn.html"><CODE>GXSetTevColorIn</CODE></A><br> <A href="GXSetTevAlphaIn.html"><CODE>GXSetTevAlphaIn</CODE></A></P>
46<H2>Revision History</H2>
47<P>2006/03/01 Initial version</P>
48<hr>
49<P>CONFIDENTIAL</p>
50</BODY>
51</HTML>
52