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 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>G3_MaterialColorDiffAmb</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G3*_MaterialColorDiffAmb <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 <nitro/gx/g3imm.h> 20#include <nitro/gx/g3b.h> 21#include <nitro/gx/g3c.h> 22 23void G3_MaterialColorDiffAmb(RGB diffuse, GXRgb ambient, BOOL IsSetVtxColor); 24 25// Below are APIs for creating the display list (command list): 26void G3B_MaterialColorDiffAmb( 27 <A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, 28 GXRgb diffuse, 29 GXRgb ambient, 30 BOOL IsSetVtxColor); 31 32void G3C_MaterialColorDiffAmb( 33 <A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, 34 GXRgb diffuse, 35 GXRgb ambient, 36 BOOL IsSetVtxColor); 37 38void G3BS_MaterialColorDiffAmb( 39 <A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, 40 GXRgb diffuse, 41 GXRgb ambient, 42 BOOL IsSetVtxColor); 43 44void G3CS_MaterialColorDiffAmb( 45 <A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, 46 GXRgb diffuse, 47 GXRgb ambient, 48 BOOL IsSetVtxColor);</CODE></PRE> 49 </dd> 50</dl><h2>Arguments</h2> 51 52<table border="1" width="100%"> 53 <tr> 54 <td width="13%"><em><strong><font face="Courier New">info</font></strong></em></td> 55 <td width="87%">Command List Information.</td> 56 </tr> 57 <tr> 58 <td width="13%"><em><strong><font face="Courier New">diffuse</font></strong></em></td> 59 <td width="87%">Diffuse reflection color</td> 60 </tr> 61 <tr> 62 <td width="13%"><em><strong><font face="Courier New">ambient</font></strong></em></td> 63 <td width="87%">Ambient reflection color</td> 64 </tr> 65 <tr> 66 <td width="13%"><em><strong><font face="Courier New">IsSetVtxColor</font></strong></em></td> 67 <td width="87%">Vertex color set flag</td> 68 </tr> 69</table> 70<h2>Return Values</h2> 71<p>None.</p> 72<H2>Description</H2> 73<P>This function sets the reflected diffuse color and reflected ambient color for materials. The vertex color set flag specifies whether to set the reflected diffuse color as the vertex color (<code>TRUE</code>) or not as the vertex color (<code>FALSE</code>).</P> 74<h2>See Also</h2> 75<p><A href="G3_MaterialColorSpecEmi.html">G3*_MaterialColorSpecEmi</A></p> 76<H2>Revision History</H2> 77<P>2004/01/19 Initial version.</P> 78<hr><p>CONFIDENTIAL</p></body> 79</html> 80