C4 Engine Terathon Software C4 Engine API Documentation

• Graphics Manager

API Links
Developer Links

MaterialObject::SetTexcoordScale

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

void SetTexcoordScale(long index, const Vector2D& scale);

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

MaterialObject::GetTexcoordScale

MaterialObject::GetTexcoordOffset

MaterialObject::SetTexcoordOffset