GDSetGenMode / GDSetGenMode2

Syntax

#include <revolution/gd.h>

void GDSetGenMode( u8 nTexGens, u8 nChans, u8 nTevs );

void GDSetGenMode2( u8 nTexGens, u8 nChans, u8 nTevs, u8 nInds, GXCullMode cm );

Arguments

nTexGens Specifies the number of texture coordinates being generated.
nChans Specifies the number of active lighting channels.
nTevs Specifies the number of active TEV stages.
nInds Specifies the number of active indirect texture stages.
cm Specifies the front and back face culling mode.

Return Values

None.

Description

The functions listed below set various parameters that control the entire graphics pipeline.

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.

For flexibility, two different versions of the GDSetGenMode function are provided. One changes the most common settings, and the other changes a greater range of settings.

See Also

GXSetNumTexGens, GXSetNumChans, GXSetNumTevStages, GXSetNumIndStages, GXSetCullMode, GXSetCoPlanar, GXSetPixelFmt

Revision History

2006/03/01 Initial version.


CONFIDENTIAL