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>GXSetTevKColorSel</TITLE>
9</HEAD>
10<BODY>
11<H1 align="left">GXSetTevKColorSel</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 GXSetTevKColorSel(
18<A href="../Enumerated_Types/GXTevStageID.html">GXTevStageID</A>     stage,
19<A href="../Enumerated_Types/GXTevKColorSel.html">GXTevKColorSel</A>   sel );</CODE></PRE>
20</DL>
21<H2>Arguments</H2>
22<TABLE border="1" cellspacing="0.1" cellpadding="3">
23  <TBODY>
24    <TR>
25<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>stage</FONT></STRONG></EM></TD>
26<TD width="520">name of the TEV <a href="../Enumerated_Types/GXTevStageID.html">stage</a><BR>Accepted values are: <code>GX_TEVSTAGE0</code>, <code>GX_TEVSTAGE1</code>, <code>GX_TEVSTAGE2</code> through <code>GX_TEVSTAGE15</code>.</TD>
27    </TR>
28    <TR>
29<TD width="120" valign="top" bgcolor="#ffffe8"><EM><STRONG><CODE>sel</FONT></STRONG></EM></TD>
30<TD width="520">selects the constant <a href="../Enumerated_Types/GXTevKColorSel.html">color</a> to be used for this stage <BR>Accepted values are:<BR>
31      <TABLE border="1" width="500" cellspacing="0.1">
32
33          <tr>
34<TD width="150" bgcolor="#C0C0C0">Name</TD>
35<TD width="350" bgcolor="#C0C0C0">Constant Color Source</TD>
36          </tr>
37          <tr>
38<TD width="150"><code> GX_TEV_KCSEL_K0</code></TD>
39<TD width="350">constant color register 0 (RGB)</TD>
40          </tr>
41          <tr>
42<TD width="150"><code>GX_TEV_KCSEL_K1</code></TD>
43<TD width="350">constant color register 1 (RGB)</TD>
44          </tr>
45          <tr>
46<TD width="150"><code>GX_TEV_KCSEL_K2</code></TD>
47<TD width="350">constant color register 2 (RGB)</TD>
48          </tr>
49          <tr>
50<TD width="150"><code>GX_TEV_KCSEL_K3</code></TD>
51<TD width="350">constant color register 3 (RGB)</TD>
52          </tr>
53          <tr>
54<TD colspan="2" bgcolor="#E0E0E0" width="150">The following sets a single value to all three components.</TD>
55          </tr>
56          <tr>
57<TD width="150"><code> GX_TEV_KCSEL_K0_R</code></TD>
58<TD width="350">constant color register 0 (RRR)</TD>
59          </tr>
60          <tr>
61<TD width="150"><code>GX_TEV_KCSEL_K1_R</code></TD>
62<TD width="350">constant color register 1 (RRR)</TD>
63          </tr>
64          <tr>
65<TD width="150"><code>GX_TEV_KCSEL_K2_R</code></TD>
66<TD width="350">constant color register 2 (RRR)</TD>
67          </tr>
68          <tr>
69<TD width="150"><code>GX_TEV_KCSEL_K3_R</code></TD>
70<TD width="350">constant color register 3 (RRR)</TD>
71          </tr>
72          <tr>
73<TD width="150"><code>GX_TEV_KCSEL_K0_G</code></TD>
74<TD width="350">constant color register 0 (GGG)</TD>
75          </tr>
76          <tr>
77<TD width="150"><code>GX_TEV_KCSEL_K1_G</code></TD>
78<TD width="350">constant color register 1 (GGG)</TD>
79          </tr>
80          <tr>
81<TD width="150"><code>GX_TEV_KCSEL_K2_G</code></TD>
82<TD width="350">constant color register 2 (GGG)</TD>
83          </tr>
84          <tr>
85<TD width="150"><code>GX_TEV_KCSEL_K3_G</code></TD>
86<TD width="350">constant color register 3 (GGG)</TD>
87          </tr>
88          <tr>
89<TD width="150"><code>GX_TEV_KCSEL_K0_B</code></TD>
90<TD width="350">constant color register 0 (BBB)</TD>
91          </tr>
92          <tr>
93<TD width="150"><code>GX_TEV_KCSEL_K1_B</code></TD>
94<TD width="350">constant color register 1 (BBB)</TD>
95          </tr>
96          <tr>
97<TD width="150"><code>GX_TEV_KCSEL_K2_B</code></TD>
98<TD width="350">constant color register 2 (BBB)</TD>
99          </tr>
100          <tr>
101<TD width="150"><code>GX_TEV_KCSEL_K3_B</code></TD>
102<TD width="350">constant color register 3 (BBB)</TD>
103          </tr>
104          <tr>
105<TD width="150"><code>GX_TEV_KCSEL_K0_A</code></TD>
106<TD width="350">constant color register 0 (AAA)</TD>
107          </tr>
108          <tr>
109<TD width="150"><code>GX_TEV_KCSEL_K1_A </code></TD>
110<TD width="350">constant color register 1 (AAA)</TD>
111          </tr>
112          <tr>
113<TD width="150"><code>GX_TEV_KCSEL_K2_A</code></TD>
114<TD width="350">constant color register 2 (AAA)</TD>
115          </tr>
116          <tr>
117<TD width="150"><code>GX_TEV_KCSEL_K3_A </code></TD>
118<TD width="350">constant color register 3 (AAA)</TD>
119          </tr>
120          <tr>
121<TD width="150"><code>GX_TEV_KCSEL_8_8<BR> GX_TEV_KCSEL_1</code></TD>
122<TD width="350">fixed constant 1</TD>
123          </tr>
124          <tr>
125<TD width="150"><code>GX_TEV_KCSEL_7_8 </code></TD>
126<TD width="350">fixed constant 7/8</TD>
127          </tr>
128          <tr>
129<TD width="150"><code>GX_TEV_KCSEL_6_8<BR> GX_TEV_KCSEL_3_4</code></TD>
130<TD width="350">fixed constant 3/4</TD>
131          </tr>
132          <tr>
133<TD width="150"><code>GX_TEV_KCSEL_5_8</code></TD>
134<TD width="350">fixed constant 5/8</TD>
135          </tr>
136          <tr>
137<TD width="150"><code>GX_TEV_KCSEL_4_8<BR> GX_TEV_KCSEL_1_2 </code></TD>
138<TD width="350">fixed constant 1/2</TD>
139          </tr>
140          <tr>
141<TD width="150"><code>GX_TEV_KCSEL_3_8</code></TD>
142<TD width="350">fixed constant 3/8</TD>
143          </tr>
144          <tr>
145<TD width="150"><code>GX_TEV_KCSEL_2_8<BR> GX_TEV_KCSEL_1_4</code></TD>
146<TD width="350">fixed constant 1/4</TD>
147          </tr>
148          <tr>
149<TD width="150"><code>GX_TEV_KCSEL_1_8</code></TD>
150<TD width="350">fixed constant 1/8</TD>
151          </tr>
152
153      </TABLE>
154      </TD>
155    </TR>
156  </TBODY>
157</TABLE>
158<H2>Return Values</H2>
159<P>None.</P>
160<H2>Description</H2>
161<P>This function selects the constant color input to be used on the given TEV stage. The constant color input is only used when <CODE>GX_CC_KONST</CODE> is selected as the TEV stage input. Only one constant color selection is available for a given TEV stage, though it may be used for more than one input.</P>
162<H2>See Also</H2>
163<P><A href="GXSetTevColorIn.html"><CODE>GXSetTevColorIn</CODE></A><BR> <A href="GXSetTevKColor.html"><CODE>GXSetTevKColor</CODE></A></P>
164<H2>Revision History</H2>
165<P>03/01/2006 Initial version.</P>