al_draw_rotated_bitmap
void al_draw_rotated_bitmap(ALLEGRO_BITMAP *bitmap,
float cx, float cy, float dx, float dy, float angle, int flags)
Introduced in 5.0.0
Draws a rotated version of the given bitmap to the target bitmap. The bitmap is rotated by 'angle' radians clockwise.
The point at cx/cy inside the bitmap will be drawn at dx/dy and the bitmap is rotated around this point.
- cx - center x
- cy - center y
- dx - destination x
- dy - destination y
- angle - angle by which to rotate
- flags - same as for al_draw_bitmap
See also: al_draw_bitmap, al_draw_bitmap_region, al_draw_scaled_bitmap, al_draw_scaled_rotated_bitmap
Examples: ex_blend2
Most helpful discussions:
- Box2d & Allegro : Circles and rotating questions (1)
- Degrees to Radians (1)
- Getting artefact when loading image
- Rotate text with transformations
- [A5] Masked drawing?
- Acceleration & Deceleration
- Can't make bitmap tinted
- Choppy graphics
- al_get_backbuffer does not work
- Game slow down from drawing player
Other recent discussions: