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 17<h2>C Specification</h2> 18 19<dl> 20<dd><PRE><CODE>#include <revolution/gx.h></CODE></PRE> 21 </dd> 22<dd><pre>void GXSetTevColorS10( <a href="../Enumerated_Types/GXTevRegID.html">GXTevRegID</a> id, <a href="../Structures/GXColorS10.html">GXColorS10</a> color );</pre> 23 </dd> 24</dl> 25 26<h2>Arguments</h2> 27<TABLE border="1" cellspacing="0.1" cellpadding="3"> 28 <tr> 29<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>id</font></strong></em></TD> 30<TD width="520">Color register <a href="../Enumerated_Types/GXTevRegID.html">id</a>. Accepted values are: <code>GX_TEVREG0</code>, <code>GX_TEVREG1</code>, <code>GX_TEVREG2</code>.</TD> 31 </tr> 32 <tr> 33<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>color</font></strong></em></TD> 34<TD width="520">Constant color <a href="../Structures/GXColorS10.html">value</a>. Each color component accepts the following range: -1024 to +1023.</TD> 35 </tr> 36</TABLE> 37<h2>Return Values</h2> 38 39<p>None.</p> 40<H2>Description</H2> 41<P>This function sets one of the constant 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 in usage occur.</P> 42<P>This function enables the color components to be signed 10-bit numbers (sign 1bit + 10bit = total 11bit). To set 8-bit unsigned colors (the most common), use <a href="GXSetTevColor.html"><code>GXSetTevColor</code></a>.</P> 43<h2>See Also</h2> 44 45<p><a href="GXSetTevColorIn.html"><CODE>GXSetTevColorIn</CODE></a><br> <a href="GXSetTevAlphaIn.html"><CODE>GXSetTevAlphaIn</CODE></a><br> <a href="GXSetTevColor.html"><CODE>GXSetTevColor</CODE></a></p> 46<H2>Revision History</H2> 47<P>03/01/2006 Initial version.</P>