PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Avoiding real time rotation.

I have been trying to think of a way to avoid real time rotation. The best (and only) way that I have heard is to blit the rotated bitmap on a temporary surface and then display that surface. Could someone would lend some code that works for them so I can learn the best way to do this? 8O
I am not sure I understand your question ....

But, generally, you have three choices…

1 ) Load bunch pf prerotated images and display different image depending on some game specific criteria ( this is your basic 2d animation.)

2) Load a single image and , during setup, create bunch of prerotated images. The same as 1 except you only have to distribute a single image ( on the other hand prerotating images using 3rd party software will result in better quality.)

3) Load a single image and use GapiDraw rotating blit to rotate it in the real time.

So what you have here is basically a tradeoff between runtime performance and memory/disk space usage.
Take a look on the pocketpcStudio website in the developer section. I wrote a short tutorial on how to handle sprite rotations there. It may help you in what you're trying to achieve.

http://www.ppcstudios.com

--GR