I have tried changing the alpha value of the scolor variable with no luck. I tried this with both a 24 and 32 bit tga image with alpha channel (and also tried using a black and a white alpha). I cannot make the image transparent:
Code: Select all
my_driver->draw2DImage(p_magic_book, core::position2d<s32>(screensize.Width/2-256, 25),
core::rect<s32>(0,0, 512,700),0,video::SColor(255,255,255,changing_this_value_doesnt_do_anything), true);
So, how to make an image transparent dynamically? (for fading in and out)
This might be a bug, because from the manual:
I am using version 1.0color,: Color with wich the image is colored. If the color equals Color(255,255,255,255), the color is ignored. Note that the alpha component is used: If alpha is other than 255, the image will be transparent.