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><CODE>GXSetChanMatColor</CODE></title>
10</head>
11
12<body>
13
14<h1 align="left"><CODE>GXSetChanMatColor</CODE></h1>
15
16<h2>C Specification</h2>
17
18<dl>
19<dd><pre><CODE>#include &lt;revolution/gx.h&gt;</CODE></pre></dd>
20<dd><pre><CODE>void GXSetChanMatColor(
21<a href="../Enumerated_Types/GXChannelID.html">GXChannelID</a>   chan,
22<a href="../Structures/GXColor.html">GXColor</a>       mat_color );</CODE></pre></dd>
23</dl>
24<h2>Arguments</h2>
25<TABLE border="1" cellpadding="3" cellspacing="0.1">
26  <tr>
27<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE><code><EM><STRONG>chan</STRONG></EM></code></CODE></strong></em></TD>
28<TD width="520">Color <a href="../Enumerated_Types/GXChannelID.html">channel</a>.&nbsp;Accepted values are:
29      <TABLE width="500" border="1" cellspacing="0.1">
30
31          <tr>
32<TD width="150" bgcolor="#C0C0C0">Name</TD>
33<TD width="350" bgcolor="#C0C0C0">Channel where the material color is updated</TD>
34          </tr>
35          <tr>
36<TD width="150"><code>GX_COLOR0A0</code></TD>
37<TD width="350">Color channel 0 + Alpha channel 0</TD>
38          </tr>
39          <tr>
40<TD width="150" height="20"><code>GX_COLOR0</code></TD>
41<TD width="350" height="20">Color channel 0 (only RGB components are used)</TD>
42          </tr>
43          <tr>
44<TD width="150"><code>GX_ALPHA0</code></TD>
45<TD width="350">Alpha channel 0 (only Alpha component is used)</TD>
46          </tr>
47          <tr>
48<TD width="150"><code>GX_COLOR1A1</code></TD>
49<TD width="350">Color channel 1 + Alpha channel 1</TD>
50          </tr>
51          <tr>
52<TD width="150"><code>GX_COLOR1</code></TD>
53<TD width="350">Color channel 1 (only RGB components are used)</TD>
54          </tr>
55          <tr>
56<TD width="150"><code>GX_ALPHA1</code></TD>
57<TD width="350">Alpha channel 1 (only Alpha component is used)</TD>
58          </tr>
59
60      </TABLE>
61      </TD>
62    </tr>
63  <tr>
64<TD width="120" valign="top" bgcolor="#ffffe8"><em><strong><CODE>mat_color</CODE></strong></em></TD>
65<TD width="520">Material color</TD>
66    </tr>
67</TABLE>
68<h2>Return Values</h2>
69
70<p>None.</p>
71<H2>Description</H2>
72<P>This function sets the material color register for color channel <code><em><strong>chan</strong></em></code>. The material color will be used for the channel if the material source, as set by <A href="GXSetChanCtrl.html"><CODE>GXSetChanCtrl</CODE></A>, is <CODE>GX_SRC_REG</CODE>.</P>
73
74<h2>See Also</h2>
75
76<p><a href="GXSetChanAmbColor.html"><CODE><CODE>GXSetChanAmbColor</CODE></CODE></a></p>
77<H2>Revision History</H2>
78<P>03/01/2006 Initial version.</P></body>
79</html>