Hello,
I’m blitting a 24bits RGB bitmap image with glDrawPixel and I want a certain color of the image (let’s say 1.0f,0.0f,1.0f) not to be displayed. Is there anyway I can achieve it???
I’ve tried blending but it seems to work well only for textures and primitives, not for images. Maybe I’m wrong???
Is there anyway to get transparency for a particular color when drawing pictures to the screen???
Thanks to everyone for the masking technique it is really usefull.
However I did my own function that converts my BMP from RGB to RGBA (not really hard, you add a byte after each RGB bytes while reading the file to load it and set it between 0x00 and 0xFF).
This way I now have the full control over each pixel opacity of my new RGBA bitmap and if I want transparency I easily achieve it with a simple ALPHA TEST.
Thanks a lot to everyone anyway.
I’ve appreciated learning about Masking I’m sure it will be usefull soon!!!