i've a strange problem:

you seee, the top part is normal, it has an alpha channel and it is transparent... but the buttom-part has an error.. the non-alpha colors are transparent and the alpha-color is non-transparent...
Thats the simple code:
Code: Select all
video::ITexture* HUD = 0; //global variable
[...]
HUD = driver->getTexture("hud.bmp"); //load the image
driver->makeColorKeyTexture(HUD, core::position2d<s32>(0,0)); //make it transparent
[...]
while(foo->bar)
{
[...]
if (HUD) driver->draw2DImage(HUD,core::position2d<s32>(0,screensize.Height-200),core::rect<s32>(0,0,480,200),0,video::SColor(255,255,255,255),true); //draw it
[...]
}to get it, click here and click hud.bmp
btw, i'm 0.4-user