Displaying bitmap with alpha
I'm trying to draw bitmap with alpha channel.
If there is no alpha channel everything looks good, but once I add some alpha to the image gray rectangle is displayed
Should I set some blender flags or wha ? If so, which ?
ALLEGRO_FILE *file = al_fopen("gfx/something.bmp", "r");
bitmap = al_load_bitmap_f(file, ".bmp");
al_draw_bitmap(bitmap, 10, 10, 0);
Allegro can't load alpha from .bmps. Use .png.
oh yee I know it can be done in a shorter way, I had some issues with loading .bmps and I tried different solutions
By the way, allegro5 seems not to cope with .tga files, manual says it should ?
Thread #608239. Printed from Allegro.cc
It probably doesn't support every type of TGA, but it does work.