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.

hmm, thanks, I'm still nt 100% clear though as this is above my knowledge of textures etc.

For example, you talk about 4 UV coords but is that coordinate pairs (i.e. a pair = x AND y)? I ask because the above code example sets the UV to an x,y and a width and height. That's only two coordinate pairs so it can only define a non-rotated rectangle, it can't defined a rotated rectangle or a rhomboid.

There's no help file for TQuad so I haven't got a clue where it is or what it does. AH, OK found it in max2d.bmx but it's totally uncommented (like most Blitz internal code) so I have no idea what it's doing :-(