I use masked_blit()
in my program to display a .bmp with transparency (using perfect pink). But when I build, it says :
error: ‘masked_blit’ was not declared in this scope
I included Allegro's .h, and of course I didn't forgot all of these:
-lallegro -lallegro_font -lallegro_ttf -lallegro_image
here is an excerpt of the code I wrote :
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
[...]
head = al_load_bitmap("head.bmp");
masked_blit(head, display, 0,0,0,0,10,10);
al_clear_to_color(al_map_rgb(0,0,0));
al_draw_bitmap(head, screen_w / 2, screen_h / 2, 0);
[..]