Code: Select all
hardguibuttontex[SET_RALLY_POINT] = driver->getTexture("UI/Rally Pointer.BMP");
driver->makeColorKeyTexture(hardguibuttontex[SET_RALLY_POINT], position2d<s32>(0,0));Could someone point me to a solution? thanks.
Code: Select all
hardguibuttontex[SET_RALLY_POINT] = driver->getTexture("UI/Rally Pointer.BMP");
driver->makeColorKeyTexture(hardguibuttontex[SET_RALLY_POINT], position2d<s32>(0,0));that's why you make a color key texture, so you have transparency with bmp files...Desconocido wrote:I want to say .bmp file formats dont support transparency.
Code: Select all
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, false);
hardguibuttontex[SET_RALLY_POINT] = driver->getTexture("UI/Rally Pointer.BMP");
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, true);
driver->makeColorKeyTexture(hardguibuttontex[SET_RALLY_POINT], position2d<s32>(0,0));Code: Select all
hardguibuttontex[SET_RALLY_POINT] = driver->getTexture("UI/Rally Pointer.BMP");
driver->makeColorKeyTexture(hardguibuttontex[SET_RALLY_POINT], position2d<s32>(0,0));
hardguibuttontex[SET_RALLY_POINT]->regenerateMipMapLevels();
Code: Select all
hardguibuttontex[SET_RALLY_POINT] = driver->getTexture("UI/Rally Pointer.BMP");
driver->makeColorKeyTexture(hardguibuttontex[SET_RALLY_POINT], position2d<s32>(0,0));
hardguibutton[SET_RALLY_POINT] = guienv->addButton(rect<s32>(10,100,50,140), hud[4],SET_RALLY_POINT);;
hardguibutton[SET_RALLY_POINT]->setImage(hardguibuttontex[SET_RALLY_POINT]);
hardguibutton[SET_RALLY_POINT]->setPressedImage(hardguibuttontex[SET_RALLY_POINT], rect<s32>(28,28,100,100));Code: Select all
hardguibutton[SET_RALLY_POINT]->setUseAlphaChannel(true);
Code: Select all
yourButton->setDrawBorder(false);