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
13<H2>Syntax</H2>
14<dl><dd><pre class="construction">
15#include &lt;revolution/gx.h&gt;
16
17void GXSetTevKColorSel(
18    <A href="../Enumerated_Types/GXTevStageID.html">GXTevStageID</A>     stage,
19    <A href="../Enumerated_Types/GXTevKColorSel.html">GXTevKColorSel</A>   sel );
20</pre></dd></dl>
21
22<H2>Arguments</H2>
23<TABLE class="arguments" border="1" >
24  <TBODY>
25    <TR>
26<TH><STRONG><EM><CODE>stage</CODE></EM></STRONG></TH>
27<TD>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> through <code>GX_TEVSTAGE15</code>.</TD>
28    </TR>
29    <TR>
30<TH><em><strong><code>sel</code></strong></em>&nbsp;&nbsp;</TH>
31<TD>Selects the constant <A href="../Enumerated_Types/GXTevKColorSel.html">color</A> to be used for this stage. Accepted values are:<BR>
32      <TABLE class="arguments" border="1" >
33          <tr>
34<TD bgcolor="#C0C0C0">Name</TD>
35<TD bgcolor="#C0C0C0">Constant Color Source</TD>
36          </tr>
37          <tr>
38<TH>GX_TEV_KCSEL_K0</TH>
39<TD>Constant color register 0 (RGB)</TD>
40          </tr>
41          <tr>
42<TH>GX_TEV_KCSEL_K1</TH>
43<TD>Constant color register 1 (RGB)</TD>
44          </tr>
45          <tr>
46<TH>GX_TEV_KCSEL_K2</TH>
47<TD>Constant color register 2 (RGB)</TD>
48          </tr>
49          <tr>
50<TH>GX_TEV_KCSEL_K3</TH>
51<TD>Constant color register 3 (RGB)</TD>
52          </tr>
53          <tr>
54<TD colspan="2" bgcolor="#E0E0E0">The following sets a single value to all three components.</TD>
55          </tr>
56          <tr>
57<TH>GX_TEV_KCSEL_K0_R</TH>
58<TD>Constant color register 0 (RRR)</TD>
59          </tr>
60          <tr>
61<TH>GX_TEV_KCSEL_K1_R</TH>
62<TD>Constant color register 1 (RRR)</TD>
63          </tr>
64          <tr>
65<TH>GX_TEV_KCSEL_K2_R</TH>
66<TD>Constant color register 2 (RRR)</TD>
67          </tr>
68          <tr>
69<TH>GX_TEV_KCSEL_K3_R</TH>
70<TD>Constant color register 3 (RRR)</TD>
71          </tr>
72          <tr>
73<TH>GX_TEV_KCSEL_K0_G</TH>
74<TD>Constant color register 0 (GGG)</TD>
75          </tr>
76          <tr>
77<TH>GX_TEV_KCSEL_K1_G</TH>
78<TD>Constant color register 1 (GGG)</TD>
79          </tr>
80          <tr>
81<TH>GX_TEV_KCSEL_K2_G</TH>
82<TD>Constant color register 2 (GGG)</TD>
83          </tr>
84          <tr>
85<TH>GX_TEV_KCSEL_K3_G</TH>
86<TD>Constant color register 3 (GGG)</TD>
87          </tr>
88          <tr>
89<TH>GX_TEV_KCSEL_K0_B</TH>
90<TD>Constant color register 0 (BBB)</TD>
91          </tr>
92          <tr>
93<TH>GX_TEV_KCSEL_K1_B</TH>
94<TD>Constant color register 1 (BBB)</TD>
95          </tr>
96          <tr>
97<TH>GX_TEV_KCSEL_K2_B</TH>
98<TD>Constant color register 2 (BBB)</TD>
99          </tr>
100          <tr>
101<TH>GX_TEV_KCSEL_K3_B</TH>
102<TD>Constant color register 3 (BBB)</TD>
103          </tr>
104          <tr>
105<TH>GX_TEV_KCSEL_K0_A</TH>
106<TD>Constant color register 0 (AAA)</TD>
107          </tr>
108          <tr>
109<TH>GX_TEV_KCSEL_K1_A </TH>
110<TD>Constant color register 1 (AAA)</TD>
111          </tr>
112          <tr>
113<TH>GX_TEV_KCSEL_K2_A</TH>
114<TD>Constant color register 2 (AAA)</TD>
115          </tr>
116          <tr>
117<TH>GX_TEV_KCSEL_K3_A </TH>
118<TD>Constant color register 3 (AAA)</TD>
119          </tr>
120          <tr>
121<TH>GX_TEV_KCSEL_8_8<BR> GX_TEV_KCSEL_1</TH>
122<TD>fixed constant 1</TD>
123          </tr>
124          <tr>
125<TH>GX_TEV_KCSEL_7_8</TH>
126<TD>fixed constant 7/8</TD>
127          </tr>
128          <tr>
129<TH>GX_TEV_KCSEL_6_8<BR> GX_TEV_KCSEL_3_4</TH>
130<TD>fixed constant 3/4</TD>
131          </tr>
132          <tr>
133<TH>GX_TEV_KCSEL_5_8</TH>
134<TD>fixed constant 5/8</TD>
135          </tr>
136          <tr>
137<TH>GX_TEV_KCSEL_4_8<BR> GX_TEV_KCSEL_1_2  </TH>
138<TD>fixed constant 1/2</TD>
139          </tr>
140          <tr>
141<TH>GX_TEV_KCSEL_3_8</TH>
142<TD>fixed constant 3/8</TD>
143          </tr>
144          <tr>
145<TH>GX_TEV_KCSEL_2_8<BR> GX_TEV_KCSEL_1_4</TH>
146<TD>fixed constant 1/4</TD>
147          </tr>
148          <tr>
149<TH>GX_TEV_KCSEL_1_8</TH>
150<TD>fixed constant 1/8</TD>
151          </tr>
152      </TABLE>
153      </TD>
154    </TR>
155  </TBODY>
156</TABLE>
157
158<H2>Return Values</H2>
159<P>None.</P>
160
161<H2>Description</H2>
162<P>This function selects the color input (constant) to be used on the given TEV stage. The constant color input is only used when <CODE>GX_CC_KONST</CODE> is selected as that TEV stage input. It can be used for one or more inputs. but only one constant color input can be used for one TEV stage.</P>
163
164<H2>See Also</H2>
165<P class="reference">
166<A href="GXSetTevColorIn.html">GXSetTevColorIn</A>,
167<A href="GXSetTevKColor.html">GXSetTevKColor</A>
168</P>
169
170<H2>Revision History</H2>
171<P>
1722006/03/01 Initial version.<br>
173</P>
174
175<hr><p>CONFIDENTIAL</p></body>
176</HTML>