Rotates a texture based on the direction the player is currently facing.
- Widget - any Texture widget, although
Interface\Minimap\MinimapArrowis the intended texture.
- This function applies a Texture:SetTexCoord transformation rotating the texture.
- The transformation ensures that the visible portion of the original texture remains of a consistent size. This size is slightly smaller than the original (unrotated) texture.
Patch 5.2.0 (2013-03-05): Added.