Is there a way to specify color to use as a transparency mask for a bitmap in Allegro 5?
I'm creating some bitmaps at run-time and based on a previously acquired image with no alpha channel (these images are also acquired at run-time). So, I use magenta (255, 0, 255) as a key color and I'm trying to replace this for alpha == 0.
This gives me the expected effect, but it's very slow. Is it possible by any means to tell Allegro to always use magenta as transparency?
al_convert_mask_to_alpha(buffer, al_map_rgb(255, 0, 255));
Thanks in advance,