|
Rotating a bitmap |
chelneru
Member #15,378
November 2013
|
Hi I want to view on the screen a box2D body. I put the cx and cy equal to dx and dy because I don't want to appear the rotated version somewhere else . |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Look at the docs for al_draw_rotated_bitmap. It says cx and cy are on the source bitmap, and that point will be drawn at dx,dy with the rest rotating around it. cx and cy are typically the center of your source bitmap. And I don't know why you're multiplying by scale there. Look into using Allegro's transformations. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|