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>GXSetTevColorS10</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetTevColorS10</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetTevColorS10( <a href="../Enumerated_Types/GXTevRegID.html">GXTevRegID</a> id, <a href="../Structures/GXColorS10.html">GXColorS10</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/GXColorS10.html">value</a>. Each color component can fall in the following range: -1024 to +1023.</TD>
32  </tr>
33</TABLE>
34
35<h2>Return Values</h2>
36<p>None.</p>
37
38<H2>Description</H2>
39<P>This function sets one of the primary color 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. The application is responsible for allocating these registers, so no collisions occur in usage.</P>
40<P>This function enables the color components to be signed 10-bit numbers (1 bit sign + 10 bits = 11 bits total). To set 8-bit unsigned colors (the most common), use the <A href="GXSetTevColor.html"><CODE>GXSetTevColor</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="GXSetTevColor.html">GXSetTevColor</a>
47</p>
48
49<H2>Revision History</H2>
50<P>
512008/05/22 Corrected errors. <br>2006/03/01 Initial version.<br>
52</P>
53
54<hr><p>CONFIDENTIAL</p></body>
55</HTML>