I originally was going to make a program that could draw rotated 3-D prisms, but it turns out that somebody already made that, so because I didn't want to waste the code I already have, I turned it into something that can draw any polygon rotated at any angle. It's for the TI-89/Ti-92+/Voyage 200, and was written in C.
I didn't do much testing with it, but it should work. The only thing you have to worry about is you need to make sure you use it correctly, or else it can crash your calculator. Here is how to use it:
prism(row,column,angleInDegrees,mode,point1x,point1y,point2x,point2y,...)
It definitely should be fast enough. All of the parameters are integers. Here are the different mode settings:
0 - reverse
1 - normal
2 - xor
4 - replace
5 - or
To download this, see the attachment.
EDIT: I decided to do some additional testing and realized I made a dumb mistake. The latest attachment has this fixed.