gah! How to clip rotated rectangles.

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

The rotation is added (multiplied I think) to the xyzuv array which is used when drawing images.
However, I still don't know exactly what you want to do.
From the picture it seems you want to draw a viewport but, because you don't trust Bmax's viewport command, you want to clip the images yourself.
Is that right?
If so, why not 'frame' your images in a fullscreen image with the viewport defined as a masked rectangle? If you want a changeable viewport then draw 4 rectangles on each side of your game screen over the top of your images?
As I don't know what it is you really want to do I don't really want to follow and work on any suggested solution.