Drawing a rotated region
GamerKid

Hi there!

I've been using Allegro 5 for a game project of mine. For this project, I have one image of all the bitmaps I will be using in the game. However, this has presented me with a problem: I want to rotate an already-drawn section of the bitmap, but I just don't know how to do it without drawing all the images I'd need seperately and then just use al_draw_rotated_bitmap(blah) for them all.

So, to make it clearer, I would like to have something which would really just do this:

al_draw_rotated_bitmap_region(blah blah)

Can anyone offer any insight as to how I could achieve this?

RPG Hacker

What about creating a SubBitmap?

SiegeLord
GamerKid

Exactly what I wanted, SiegeLord. Thanks! :)

Thread #610392. Printed from Allegro.cc