Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Drawing a rotated region

Credits go to SiegeLord for helping out!
This thread is locked; no one can reply to it. rss feed Print
Drawing a rotated region
GamerKid
Member #14,366
June 2012

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
Member #12,492
January 2011
avatar

What about creating a SubBitmap?

SiegeLord
Member #7,827
October 2006
avatar

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

GamerKid
Member #14,366
June 2012

Exactly what I wanted, SiegeLord. Thanks! :)

Go to: