virtual void GetUVGenMatrix(Matrix2F* mat, TextureManager* manager);
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 |
Description |
Matrix2F* mat |
A transformation matrix of type Matrix2F. |
TextureManager* manager |
The texture manager for handling texture changes. |