GXSetTexCoordBias

C Specification

#include <revolution/gx.h>
void GXSetTexCoordBias(GXTexCoordID texcoord,
	GXBool s_enable,
	GXBool t_enable);

Arguments

texcoord Which texture coordinate ID is being changed.
Accepted values are: GX_TEXCOORD0, GX_TEXCOORD1, GX_TEXCOORD2 through GX_TEXCOORD7.
s_enable GX_TRUE = enable range bias; GX_FALSE = disable range bias.
t_enable GX_TRUE = enable range bias; GX_FALSE = disable range bias.

Return Values

None.

Description

Range bias is used for texture coordinates to which the wrap mode GX_REPEAT is applied in order to increase the precision of texture coordinates spread over a large area. Primitive texture coordinate values are biased in the zero direction (using equal integers) before entering the graphics pipeline. Bits necessary for calculations upon exiting the pipeline are maintained in this way. Since coordinates repeat, integer-based bias has no effect on the actual external appearance of a texture.

The texture coordinate range bias is usually set automatically by the GX API (inside GXBegin). However, the associated bias is not changed by the GX library if texture coordinates are being manually scaled (using GXSetTexCoordScaleManually). It's therefore possible to use GXSetTexCoordBias to change the bias while texture coordinates are being manually controlled.

See Also

GXSetTexCoordScaleManually

Revision History

03/01/2006 Initial version.