1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META http-equiv="Content-Style-Type" content="text/css"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8<TITLE>GDSetGenMode</TITLE> 9</HEAD> 10<BODY> 11<H1 align="left">GDSetGenMode / GDSetGenMode2</H1> 12 13<H2>Syntax</H2> 14<dl><dd><pre class="construction"> 15#include <revolution/gd.h> 16 17void GDSetGenMode( u8 nTexGens, u8 nChans, u8 nTevs ); 18 19void GDSetGenMode2( u8 nTexGens, u8 nChans, u8 nTevs, u8 nInds, <A href="../gx/Enumerated_Types/GXCullMode.html">GXCullMode</A> cm ); 20</pre></dd></dl> 21 22<H2>Arguments</H2> 23<TABLE class="arguments" border="1" > 24 <TBODY> 25 <TR> 26<TH>nTexGens</TH> 27<TD>Specifies the number of texture coordinates being generated.</TD> 28 </TR> 29 <TR> 30<TH>nChans</TH> 31<TD>Specifies the number of active lighting channels.</TD> 32 </TR> 33 <TR> 34<TH><STRONG><EM><CODE>nTevs</CODE></EM></STRONG></TH> 35<TD>Specifies the number of active TEV stages.</TD> 36 </TR> 37 <TR> 38<TH><STRONG><EM><CODE>nInds</CODE></EM></STRONG></TH> 39<TD>Specifies the number of active indirect texture stages.</TD> 40 </TR> 41 <TR> 42<TH><STRONG><EM><CODE>cm</CODE></EM></STRONG></TH> 43<TD>Specifies the front and back face culling mode.</TD> 44 </TR> 45 </TBODY> 46</TABLE> 47 48<H2>Return Values</H2> 49<P>None.</P> 50 51<H2>Description</H2> 52<P>The functions listed below set various parameters that control the entire graphics pipeline.</P> 53<UL> 54<LI>The number of texture coordinates being generated (calculated). 55<LI>The number of active lighting channels. 56<LI>The number of active TEV stages. 57<LI>The number of active indirect texture stages. 58<LI>The front and back face culling mode. 59</UL> 60<P>Because these settings share a graphics hardware register, these settings are set simultaneously. In addition to these settings, this register also controls the settings for antialiasing (multisampling) mode and coplanar (Z-fixed) mode. To isolate the various settings, you can use the hardware mask register so that you can change only the desired bits.</P> 61<P>For flexibility, two different versions of the <code>GDSetGenMode</code> function are provided. One changes the most common settings, and the other changes a greater range of settings.</P> 62 63<H2>See Also</H2> 64<P class="reference"> 65<A href="../gx/TexCoordGen/GXSetNumTexGens.html">GXSetNumTexGens</A>, 66<A href="../gx/Lighting/GXSetNumChans.html">GXSetNumChans</A>, 67<A href="../gx/Tev/GXSetNumTevStages.html">GXSetNumTevStages</A>, 68<A href="../gx/Indirect/GXSetNumIndStages.html">GXSetNumIndStages</A>, 69<A href="../gx/Culling/GXSetCullMode.html">GXSetCullMode</A>, 70<A href="../gx/Culling/GXSetCoPlanar.html">GXSetCoPlanar</A>, 71<A href="../gx/PixelProc/GXSetPixelFmt.html">GXSetPixelFmt</A> 72</P> 73 74<H2>Revision History</H2> 75<P> 762006/03/01 Initial version.<BR> 77</P> 78 79<hr><p>CONFIDENTIAL</p></body> 80</HTML>