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>GXSetNumChans</title> 10</head> 11 12<body> 13 14<h1 align="left">GXSetNumChans</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><CODE>void GXSetNumChans( u8 nChans );</CODE></pre> 23 </dd> 24</dl> 25 26<h2>Arguments</h2> 27 28<table border="1" cellpadding="3" cellspacing="0.1"> 29 <tr> 30<td width="120" bgcolor="#ffffe8"><em><strong><CODE>nChans</CODE></strong></em></td> 31<td width="520">Number of color channels to rasterize. Minimum value is 0, maximum value is 2.</td> 32 </tr> 33</table> 34 35<h2>Return Values</h2> 36 37<p>None.</p> 38<H2>Description</H2> 39<P>This function sets the number of color channels that are output to the Texture Environment (TEV) stages. Color channels are the mechanism used to compute per-vertex lighting effects. Color channels are controlled using <a href="GXSetChanCtrl.html"><code>GXSetChanCtrl</code></a>. Color channels are linked to specific Texture Environment (TEV) stages using <a href="../Tev/GXSetTevOrder.html"><code>GXSetTevOrder</code></a>.</P> 40<P>This function basically defines the number of per-vertex colors that get rasterized. If <EM><STRONG><CODE>nChans</CODE></STRONG></EM> is set to 0, at least one texture coordinate must be generated. Use the <CODE><A href="../TexCoordGen/GXSetNumTexGens.html">GXSetNumTexGens</A></CODE> function to set it (see <CODE>GXSetNumTexGens</CODE>). If <EM><STRONG><CODE>nChans</CODE></STRONG></EM> is set to 1, channel <CODE>GX_COLOR0A0</CODE> will be rasterized. If <CODE><EM><STRONG>nChans</STRONG></EM></CODE> is set to 2 (the maximum value), <CODE>GX_COLOR0A0</CODE> and <CODE>GX_COLOR1A1</CODE> will be rasterized.</P> 41<h2>See Also</h2> 42<P><A href="GXSetChanCtrl.html"><CODE>GXSetChanCtrl</CODE></A></P> 43<H2>Revision History</H2> 44<P>2006/03/01 Initial version.</P><hr> 45<P>CONFIDENTIAL</p> 46</BODY> 47</HTML>