|
Box2d & Allegro : Circles and rotating questions |
chelneru
Member #15,378
November 2013
|
Hi 1. When I make a body in Box2D I draw it using bitmaps in Allegro. My question here is , Can I draw the bodies like primitives ? If not how can I rotate the image ? Also when I draw with bitmaps , I only get boxes because I draw the bitmaps with al_set_target_bitmap() and color it with al_clear_to_color. How can I get circles ? Because I will need mostly circles for my pool balls and holes. |
Arthur Kalliokoski
Second in Command
February 2005
|
They all watch too much MSNBC... they get ideas. |
l j
Member #10,584
January 2009
|
chelneru said: Can I draw the bodies like primitives ? Yes, see https://www.allegro.cc/manual/5/primitives.html Quote: If not how can I rotate the image ? Also when I draw with bitmaps , I only get boxes because I draw the bitmaps with al_set_target_bitmap() and color it with al_clear_to_color. How can I get circles ? al_load_bitmap to load bitmaps from a file. You might possibly want to use: https://www.allegro.cc/manual/5/transformations.html
|
|