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<H2>C Specification</H2> 13<DL> 14 <DD> 15<PRE><CODE>#include <revolution/gx.h></CODE></PRE> 16 <DD> 17<PRE><CODE>void 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 );</CODE></PRE> 23</DL> 24<H2>Arguments</H2> 25<TABLE border="1" cellspacing="0.1" cellpadding="3"> 26 <TBODY> 27 <TR> 28<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>id</FONT></STRONG></EM></TD> 29<TD width="520">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> 30 </TR> 31 <TR> 32<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>red</FONT></STRONG></EM></TD> 33<TD width="520">Selects the input color component that should be mapped to the red output component. <BR>Accepted values are:<BR> 34 <TABLE border="1" width="500" cellspacing="0.1"> 35 36 <tr> 37<TD width="150" bgcolor="#C0C0C0">Name</TD> 38<TD width="350" bgcolor="#C0C0C0">Input color component</TD> 39 </tr> 40 <tr> 41<TD width="150"><code> GX_CH_RED</code></TD> 42<TD width="350">Red</TD> 43 </tr> 44 <tr> 45<TD width="150"><code>GX_CH_GREEN</code></TD> 46<TD width="350">Green</TD> 47 </tr> 48 <tr> 49<TD width="150"><code>GX_CH_BLUE</code></TD> 50<TD width="350">Blue</TD> 51 </tr> 52 <tr> 53<TD width="150"><code>GX_CH_ALPHA</code></TD> 54<TD width="350">Alpha</TD> 55 </tr> 56 57 </TABLE> 58 </TD> 59 </TR> 60 <TR> 61<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>green</FONT></STRONG></EM></TD> 62<TD width="520">Selects the input color component that should be mapped to the green output component. Accepted values are similar to <strong><em><CODE>red</CODE></em></strong>. </TD> 63 </TR> 64 <TR> 65<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>blue</FONT></STRONG></EM></TD> 66<TD width="520">Selects the input color component that should be mapped to the blue output component. Accepted values are similar to <strong><em><CODE>red</CODE></em></strong>. </TD> 67 </TR> 68 <TR> 69<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>alpha</FONT></STRONG></EM></TD> 70<TD width="520">Selects the input color component that should be mapped to the alpha output component. Accepted values are similar to <strong><em><CODE>red</CODE></em></strong>. </TD> 71 </TR> 72 </TBODY> 73</TABLE> 74<H2>Return Values</H2> 75<P>None.</P> 76<H2>Description</H2> 77<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> 78<table border="1" width="847"> 79 80 <tr> 81<td width="169">entry</td> 82<td width="169">red component</td> 83<td width="169">green component</td> 84<td width="170">blue component</td> 85<td width="170">alpha component</td> 86<td width="170">swap result</td> 87 </tr> 88 <tr> 89<td width="169"><CODE>GX_TEV_SWAP0</FONT> </td> 90<td width="169"><CODE>GX_CH_RED</FONT> </td> 91<td width="169"><CODE>GX_CH_GREEN</FONT> </td> 92<td width="170"><CODE>GX_CH_BLUE</FONT> </td> 93<td width="170"><CODE>GX_CH_ALPHA</FONT></td> 94<td width="170">RGBA</td> 95 </tr> 96 <tr> 97<td width="169"><CODE>GX_TEV_SWAP1</FONT> </td> 98<td width="169"><CODE>GX_CH_RED</FONT> </td> 99<td width="169"><CODE>GX_CH_RED</FONT> </td> 100<td width="170"><CODE>GX_CH_RED</FONT> </td> 101<td width="170"><CODE>GX_CH_ALPHA</FONT></td> 102<td width="170">RRRA</td> 103 </tr> 104 <tr> 105<td width="169"><CODE>GX_TEV_SWAP2</FONT> </td> 106<td width="169"><CODE>GX_CH_GREEN</FONT> </td> 107<td width="169"><CODE>GX_CH_GREEN</FONT> </td> 108<td width="170"><CODE>GX_CH_GREEN</FONT> </td> 109<td width="170"><CODE>GX_CH_ALPHA</FONT></td> 110<td width="170">GGGA</td> 111 </tr> 112 <tr> 113<td width="169"><CODE>GX_TEV_SWAP3</FONT> </td> 114<td width="169"><CODE>GX_CH_BLUE</FONT> </td> 115<td width="169"><CODE>GX_CH_BLUE</FONT></td> 116<td width="170"><CODE>GX_CH_BLUE</FONT> </td> 117<td width="170"><CODE>GX_CH_ALPHA</FONT></td> 118<td width="170">BBBA</td> 119 </tr> 120 121</table> 122<P>The table specifies for a single entry how an input color component is mapped to an output color component.</P> 123<H2>See Also</H2> 124<P><A href="GXSetTevSwapMode.html"><CODE>GXSetTevSwapMode</CODE></A></P> 125<H2>Revision History</H2> 126<P>03/01/2006 Initial version.</P>