1al_draw_bitmap(3) Library Functions Manual al_draw_bitmap(3)
2
3
4
6 al_draw_bitmap
7
9 #include <allegro5/allegro.h>
10
11 void al_draw_bitmap(ALLEGRO_BITMAP *bitmap, float dx, float dy, int flags)
12
14 Draws an unscaled, unrotated bitmap at the given position to the cur‐
15 rent target bitmap (see al_set_target_bitmap(3)).
16
17 flags can be a combination of:
18
19 · ALLEGRO_FLIP_HORIZONTAL - flip the bitmap about the y-axis
20
21 · ALLEGRO_FLIP_VERTICAL - flip the bitmap about the x-axis
22
23 Note: The current target bitmap must be a different bitmap. Drawing
24 a bitmap to itself (or to a sub-bitmap of itself) or drawing a sub-
25 bitmap to its parent (or another sub-bitmap of its parent) are not
26 currently supported. To copy part of a bitmap into the same bitmap
27 simply use a temporary bitmap instead.
28
29 Note: The backbuffer (or a sub-bitmap thereof) can not be trans‐
30 formed, blended or tinted. If you need to draw the backbuffer draw
31 it to a temporary bitmap first with no active transformation (except
32 translation). Blending and tinting settings/parameters will be
33 ignored. This does not apply when drawing into a memory bitmap.
34
36 al_draw_bitmap_region(3), al_draw_scaled_bitmap(3),
37 al_draw_rotated_bitmap(3), al_draw_scaled_rotated_bitmap(3)
38
39
40
41Allegro reference manual al_draw_bitmap(3)