GXSetNumTexGens

Syntax

#include <revolution/gx.h>

void GXSetNumTexGens( u8 nTexGens );

Arguments

nTexGens Number of texture coordinates to generate. The minimum value is 0; 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 texture environment (TEV) stages. Texture coordinates are generated from the input data specified with the GXSetTexCoordGen function. The generated texture coordinates are linked to specific textures and specific TEV stages using the GXSetTevOrder function.

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 the GXSetNumChans function.

See Also

GXSetTexCoordGen, GXSetTexCoordGen2, GXSetTevOrder

Revision History

2006/03/01 Initial version.


CONFIDENTIAL