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.
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.