1al_draw_bitmap(3)                                            al_draw_bitmap(3)
2
3
4

NAME

6       al_draw_bitmap - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              void al_draw_bitmap(ALLEGRO_BITMAP *bitmap, float dx, float dy, int flags)
12

DESCRIPTION

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
25         sub-bitmap to its parent (or another sub-bitmap of  its  parent)  are
26         not currently supported.  To copy part of a bitmap into the same bit‐
27         map 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 ig‐
33         nored.  This does not apply when drawing into a memory bitmap.
34

SEE ALSO

36       al_draw_bitmap_region(3),   al_draw_scaled_bitmap(3),    al_draw_rotat‐
37       ed_bitmap(3), al_draw_scaled_rotated_bitmap(3)
38
39
40
41Allegro reference manual                                     al_draw_bitmap(3)
Impressum