Originally Posted by semlar
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:
function Transform(texture, angle, left, right, top, bottom)
...
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?