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>GXSetChanAmbColor</title>
10</head>
11
12<body>
13
14<h1 align="left">GXSetChanAmbColor</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/gx.h&gt;
19
20void GXSetChanAmbColor(
21    <a href="../Enumerated_Types/GXChannelID.html">GXChannelID</a>   chan,
22    <a href="../Structures/GXColor.html">GXColor</a>       amb_color );
23</pre></dd></dl>
24
25<h2>Arguments</h2>
26<TABLE class="arguments" border="1" >
27  <tr>
28<TH>chan</TH>
29<TD>Color <a href="../Enumerated_Types/GXChannelID.html">channel</a>.&nbsp;Accepted values are:<BR>
30      <TABLE class="arguments" border="1" >
31          <tr>
32<TD bgcolor="#C0C0C0">Name</TD>
33<TD bgcolor="#C0C0C0">Channel where the ambient color is updated</TD>
34          </tr>
35          <tr>
36<TH>GX_COLOR0A0</TH>
37<TD>Color channel 0 + alpha channel 0</TD>
38          </tr>
39          <tr>
40<TH>GX_COLOR0</TH>
41<TD>Color channel 0 (only RGB components are used)</TD>
42          </tr>
43          <tr>
44<TH>GX_ALPHA0</TH>
45<TD>Alpha channel 0 (only alpha component is used)</TD>
46          </tr>
47          <tr>
48<TH>GX_COLOR1A1</TH>
49<TD>Color channel 1 + alpha channel 1</TD>
50          </tr>
51          <tr>
52<TH>GX_COLOR1</TH>
53<TD>Color channel 1 (only RGB components are used)</TD>
54          </tr>
55          <tr>
56<TH>GX_ALPHA1</TH>
57<TD>Alpha channel 1 (only alpha component is used)</TD>
58          </tr>
59      </TABLE>
60    </TD>
61  </tr>
62  <tr>
63<TH>amb_color</TH>
64<TD>Ambient color.</TD>
65  </tr>
66</TABLE>
67
68<h2>Return Values</h2>
69<p>None.</p>
70
71<H2>Description</H2>
72<P>This function sets the ambient color register for color channel <SPAN class="argument">chan</SPAN>. This color will be used by the channel as the ambient color if the ambient source, set by the <A href="GXSetChanCtrl.html"><CODE>GXSetChanCtrl</CODE></A> function, is <CODE>GX_SRC_REG</CODE>.</P>
73
74<h2>See Also</h2>
75<p class="reference">
76<A href="GXSetChanMatColor.html">GXSetChanMatColor</A>
77</p>
78
79<H2>Revision History</H2>
80<P>
812006/03/01 Initial version.<br>
82</P>
83
84<hr><p>CONFIDENTIAL</p></body>
85</html>