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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>G3*_Color</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">G3*_Color <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19<PRE><CODE>#include &lt;nitro/gx/g3imm.h&gt;
20#include &lt;nitro/gx/g3b.h&gt;
21#include &lt;nitro/gx/g3c.h&gt;
22
23void G3_Color(GXRgb color);
24
25// Below are APIs for creating the display list (command list):
26void G3B_Color(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, GXRgb rgb);
27void G3C_Color(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, GXRgb rgb);
28void G3BS_Color(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, GXRgb rgb);
29void G3CS_Color(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, GXRgb rgb);</CODE></PRE>
30  </dd>
31</dl><h2>Arguments</h2>
32
33<table border="1" width="100%">
34  <tr>
35    <td width="13%"><em><strong><font face="Courier New">info</font></strong></em></td>
36    <td width="87%">Command List Information.</td>
37  </tr>
38  <tr>
39    <td width="13%"><em><strong><font face="Courier New"><em><strong><code>rgb</code></strong></em>&nbsp;&nbsp;</font></strong></em></td>
40    <td width="87%">Vertex Color</td>
41  </tr>
42</table>
43<h2>Return Values</h2>
44<p>None.</p>
45<H2>Description</H2>
46<P>This function sets vertex color directly. The vertex color is valid until the current vertex color is updated by a <code><A href="G3_Color.html" target="_self">G3*_Color</A></code>, <code><A href="G3_Normal.html" target="_self">G3*_Normal</A></code>, or <code><A href="G3_MaterialColorDiffAmb.html" target="_self">G3*_MaterialColorDiffAmb</A></code> (vertex color set flag) command. Therefore, vertex color can be shared by multiple vertices.</P>
47<h2>See Also</h2>
48<P><CODE><A href="G3_Normal.html" target="_self">G3*_Normal</A>, <A href="G3_MaterialColorDiffAmb.html" target="_self">G3*_MaterialColorDiffAmb</A></CODE></P>
49<H2>Revision History</H2>
50<P>2004/01/19 Initial version.</P>
51<hr><p>CONFIDENTIAL</p></body>
52</html>
53