I'm using allegro 5.0.7 and I have one big problem.
I was trying make a bitmap exactly .bmp (24-bit) transparent with specific color, but it didn't work. Can you give me a hint how to do this?
This is my code:
I was searching in Internet but I didn't find a answer.
color.r, .g, .b are floats. So it should be:
al_convert_mask_to_alpha(picture, al_map_rgb_f(color.r, color.g, color.b)).
However, you can simply do:
al_convert_mask_to_alpha(picture, color).
Nevermind.
Now it's work.
Thank you very much Matthew Leverton.