View Single Post
05-27-16, 07:50 AM   #78
syncrow
A Flamescale Wyrmkin
 
syncrow's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 149
Originally Posted by semlar View Post
You'll have to apply your matrix transformation before calculating the rotated texture coordinates, that way you're rotating the transformed version of the image.
So I need to rotate and crop the texture within the transformation function that has this arguments?

Lua Code:
  1. function Transform(texture, angle, left, right, top, bottom)
  2.     ...
  3. end

How would this transformation function look like? (sry i'm bad at this math stuff)

Note:
I use a statusbar with a fake fill texture that is attached to the statusbar..
So if i rotate the statusbar inside the scrollframe, the fill would also rotate?
__________________

Last edited by syncrow : 05-27-16 at 07:55 AM.
  Reply With Quote