C4 Engine
C4 Engine API Documentation

MaterialObject::SetTexcoordOffset

Defined in:  C4MaterialObjects.h
Sets the offset for a texcoord.
Prototype

void SetTexcoordOffset(int32 index, const Vector2D& offset);

Parameters
index The texcoord index. This must be 0 or 1.
offset The new texcoord offset.
Description
The SetTexcoordOffset function sets the offset that is applied to the texcoord specified by the index parameter. The x coordinate of the offset parameter is added to the s texture coordinate, and the y coordinate of the offset parameter is added to the t texture coordinate. The default offset is (0,0).
See Also

MaterialObject::GetTexcoordOffset

MaterialObject::GetTexcoordScale

MaterialObject::SetTexcoordScale