GXSetNumTexGens

C Specification

#include <revolution/gx.h>
void GXSetNumTexGens( u8 nTexGens );

Arguments

nTexGens Number of texture coordinates to generate. The minimum value is 0 and the maximum value is 8.

Return Values

None.

Description

This function sets the number of texture coordinates that are generated and available for use in the Texture Environment (TEV) stages. Texture coordinates are generated from input data as described by GXSetTexCoordGen. The generated texture coordinates are linked to specific textures and specific Texture Environment (TEV) stages using GXSetTevOrder.

A consecutive number of texture coordinates may be generated, starting at GX_TEXCOORD0. A maximum of eight texture coordinates may be generated. If nTexGens is set to 0, no texture coordinates will be generated. In this case, at least one color channel must be output. For more information, see GXSetNumChans.

See Also

GXSetTexCoordGen
GXSetTexCoordGen2
GXSetTevOrder

Revision History

03/01/2006 Initial version.