1al_draw_scaled_rotated_bitmap(3) al_draw_scaled_rotated_bitmap(3)
2
3
4
6 al_draw_scaled_rotated_bitmap - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 void al_draw_scaled_rotated_bitmap(ALLEGRO_BITMAP *bitmap,
12 float cx, float cy, float dx, float dy, float xscale, float yscale,
13 float angle, int flags)
14
16 Like al_draw_rotated_bitmap(3), but can also scale the bitmap.
17
18 The point at cx/cy in the bitmap will be drawn at dx/dy and the bitmap
19 is rotated and scaled around this point.
20
21 • cx - center x
22
23 • cy - center y
24
25 • dx - destination x
26
27 • dy - destination y
28
29 • xscale - how much to scale on the x-axis (e.g. 2 for twice the size)
30
31 • yscale - how much to scale on the y-axis
32
33 • angle - angle by which to rotate (radians)
34
35 • flags - same as for al_draw_bitmap(3)
36
37 See al_draw_bitmap(3) for a note on restrictions on which bitmaps can
38 be drawn where.
39
41 al_draw_bitmap(3), al_draw_bitmap_region(3), al_draw_scaled_bitmap(3),
42 al_draw_rotated_bitmap(3)
43
44
45
46Allegro reference manual al_draw_scaled_rotated_bitmap(3)