1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
9<title>GXSetTevColor</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetTevColor</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetTevColor( <a href="../Enumerated_Types/GXTevRegID.html">GXTevRegID</a> id, <a href="../Structures/GXColor.html">GXColor</a> color );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<TH>id</TH>
27<TD>Color register <a href="../Enumerated_Types/GXTevRegID.html">id</a>. Accepted values are: <code>GX_TEVREG0</code>, <code>GX_TEVREG1</code>, and <code>GX_TEVREG2</code>.</TD>
28  </tr>
29  <tr>
30<TH><STRONG><EM><CODE>color</CODE></EM></STRONG></TH>
31<TD>Constant color <a href="../Structures/GXColor.html">value</a>.</TD>
32  </tr>
33</TABLE>
34
35<h2>Return Values</h2>
36<p>None.</p>
37
38<H2>Description</H2>
39<P>This function is used to set one of the primary registers in the Texture Environment (TEV) unit. These registers are available to all TEV stages. At least one of these registers is used to pass the output of one TEV stage to the next in a multi-texture configuration.&nbsp;The application is responsible for allocating these registers, so no collisions occur in usage.</P>
40<P>This function can only set unsigned 8-bit colors.&nbsp;To set signed 10-bit colors, use the <A href="GXSetTevColorS10.html"><CODE>GXSetTexColorS10</CODE></A> function.</P>
41
42<h2>See Also</h2>
43<P class="reference">
44<a href="GXSetTevColorIn.html">GXSetTevColorIn</a>,
45<a href="GXSetTevAlphaIn.html">GXSetTevAlphaIn</a>,
46<A href="GXSetTevColorS10.html">GXSetTevColorS10</A>
47</p>
48
49<H2>Revision History</H2>
50<P>
512006/03/01 Initial version.<br>
52</P>
53
54<hr><p>CONFIDENTIAL</p></body>
55</HTML>