SetObjectMeshUVOffset
Description
Modifies the mesh UVs to shift them by the specified offset. This may push the UV coordinates outside the range 0.0 to 1.0, in which case the image wrap mode will be used to either clamp or repeat the texture. Use SetImageWrapU and SetImageWrapV to set the wrap mode. Note that the image must be a power of 2 in size to use the repeat mode.
Definition
SetObjectMeshUVOffset( objID, meshIndex, textureStage, offsetU, offsetV )
void agk::SetObjectMeshUVOffset( UINT objID, UINT meshIndex, UINT textureStage, float offsetU, float offsetV )
Parameters
- objID - The ID of the object to modify.
- meshIndex - The index of the mesh to modify.
- textureStage - The texture stage of the UVs to modify, in the range 0 to 7
- offsetU - The offset to use in the U direction, the default is 0
- offsetV - The offset to use in the V direction, the default is 0