GXEnableTexOffsets

C Specification

#include <revolution/gx.h>
void GXEnableTexOffsets ( GXTexCoordID  coord,
			  GXBool        line_enable, 
			  GXBool        point_enable );

Arguments

coord Specifies the texture coordinate
line_enable Enables the texture offset calculation for lines.
point_enable Enables the texture offset calculation for points

Return Values

None.

Description

This function enables a special texture offset feature for points and lines. When a point's size is defined using GXSetPointSize or a line's width is described using GXSetLineWidth, you can also specify a parameter texOffsets. The parameter tex_offsets is added to the texture coordinate(s), if any, to obtain texture coordinates at the other corners of a point or line. The tex_offsets are added after the texture coordinate generation operation, see GXSetTexCoordGen. GXEnableTexOffsets enables this operation for a particular texture coordinate. Offset operations for points and lines are enabled separately. If the enables are false, the same texture coordinate is used for every vertex of the line or point.

See Also

Revision History

03/01/2006 Initial version.