gah! How to clip rotated rectangles.

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

I found some rotation code which I will try and convert to bmax and pixmap. Not sure if I have time tomorrow, but I will try and get it done as soon as I can.

Edit: In BlitzPlus this code is rotating a 256x256 image at 61 fps on my computer with a small array used for some precalculated sin/cos values, and at 13 fps using sin/cos directly. I will probably make the converted code for both senarios so that the options are there to choose from.

In my old code the image is first read into an array buffer, which speeds up the code as well. I think that it would be best to do the same in a bmax version because it does speed up the process if doing a lot of rotations.

But we will have to wait and see what I can come up with, once I get some time available, hopefully soon.