1 #ifndef __al_included_allegro5_bitmap_draw_h 2 #define __al_included_allegro5_bitmap_draw_h 3 4 #include "allegro5/bitmap.h" 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 11 /* Flags for the blitting functions */ 12 enum { 13 ALLEGRO_FLIP_HORIZONTAL = 0x00001, 14 ALLEGRO_FLIP_VERTICAL = 0x00002 15 }; 16 17 /* Blitting */ 18 AL_FUNC(void, al_draw_bitmap, (ALLEGRO_BITMAP *bitmap, float dx, float dy, int flags)); 19 AL_FUNC(void, al_draw_bitmap_region, (ALLEGRO_BITMAP *bitmap, float sx, float sy, float sw, float sh, float dx, float dy, int flags)); 20 AL_FUNC(void, al_draw_scaled_bitmap, (ALLEGRO_BITMAP *bitmap, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh, int flags)); 21 AL_FUNC(void, al_draw_rotated_bitmap, (ALLEGRO_BITMAP *bitmap, float cx, float cy, float dx, float dy, float angle, int flags)); 22 AL_FUNC(void, al_draw_scaled_rotated_bitmap, (ALLEGRO_BITMAP *bitmap, float cx, float cy, float dx, float dy, float xscale, float yscale, float angle, int flags)); 23 24 /* Tinted blitting */ 25 AL_FUNC(void, al_draw_tinted_bitmap, (ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint, float dx, float dy, int flags)); 26 AL_FUNC(void, al_draw_tinted_bitmap_region, (ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint, float sx, float sy, float sw, float sh, float dx, float dy, int flags)); 27 AL_FUNC(void, al_draw_tinted_scaled_bitmap, (ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh, int flags)); 28 AL_FUNC(void, al_draw_tinted_rotated_bitmap, (ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint, float cx, float cy, float dx, float dy, float angle, int flags)); 29 AL_FUNC(void, al_draw_tinted_scaled_rotated_bitmap, (ALLEGRO_BITMAP *bitmap, ALLEGRO_COLOR tint, float cx, float cy, float dx, float dy, float xscale, float yscale, float angle, int flags)); 30 AL_FUNC(void, al_draw_tinted_scaled_rotated_bitmap_region, ( 31 ALLEGRO_BITMAP *bitmap, 32 float sx, float sy, float sw, float sh, 33 ALLEGRO_COLOR tint, 34 float cx, float cy, float dx, float dy, float xscale, float yscale, 35 float angle, int flags)); 36 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif 43