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:
- Cannot get the math right (1)
- Box2d & Allegro : Circles and rotating questions (1)
- Degrees to Radians (1)
- Shooting Ball From Rotating Bitmap
- Saving Bitmaps
- Mouse Click Inside Timer Function
- al_load_bitmap question
- My second game, space invader simplified
- ALLEGRO_LOCKED_REGION confusion
- git format-patch: troubles with white space trailing
Other recent discussions: