gah! How to clip rotated rectangles.

BlitzMax Forums/BlitzMax Programming/gah! How to clip rotated rectangles.

AHA, now we are getting somewhere. So, uh how do I do that?

Here's a picture just to ensure we are singing from the same hymnsheet.



The code I pasted at the top uses UV coords but doesn't do what I want at the moment. If I use SetRotation 45 for example before I call the code, then it applies rotated clipping to the rotated image. I want rectangular clipping applied to the rotated image. Make sense?