GXSetTevColorS10

Syntax

#include <revolution/gx.h>

void GXSetTevColorS10( GXTevRegID id, GXColorS10 color );

Arguments

id Color register ID. Accepted values are: GX_TEVREG0, GX_TEVREG1 and GX_TEVREG2.
color Constant color value. Each color component can fall in the following range: -1024 to +1023.

Return Values

None.

Description

This function sets one of the primary color registers in the Texture Environment (TEV) unit. These registers are available to all TEV stages. At least one of these registers is used to pass the output of one TEV stage to the next in a multi-texture configuration. The application is responsible for allocating these registers, so no collisions occur in usage.

This function enables the color components to be signed 10-bit numbers (1 bit sign + 10 bits = 11 bits total). To set 8-bit unsigned colors (the most common), use the GXSetTevColor function.

See Also

GXSetTevColorIn, GXSetTevAlphaIn, GXSetTevColor

Revision History

2008/05/22 Corrected errors.
2006/03/01 Initial version.


CONFIDENTIAL