Image::GetUVGenMatrix

Image::GetUVGenMatrix
virtual void GetUVGenMatrix(Matrix2F* mat, TextureManager* manager);
Description

GetUVGenMatrix fills in a matrix that converts image pixel coordinate space (0, 0, Width, Height) into UV coordinate space expected by Render::HAL. This considers all of the following: 

- Texture::GetUVGenMatrix, for HAL padding/scale adjustment. 

- GetRect() for sub-images, including an offset as needed for packing. 

- Local transformation matrix (used by gfxexport).

Parameters
Parameters 
Description 
Matrix2F* mat 
A transformation matrix of type Matrix2F
TextureManager* manager 
The texture manager for handling texture changes.