Transparent image GUI button
Transparent image GUI button
I am looking for any pointers can help me create transparent image buttons with IRRLICHT engine, any help will be appreciated. thanks in advance.
Hey
From the MeshViewer tut:
for (s32 i=0; i<gui::EGDC_COUNT ; ++i)
{
video::SColor col = env->getSkin()->getColor((gui::EGUI_DEFAULT_COLOR)i);
col.setAlpha(255);
env->getSkin()->setColor((gui::EGUI_DEFAULT_COLOR)i, col);
}
This sets ths alpha of the skin. I haven't looked into it but this makes the whole gui transparent.
From the MeshViewer tut:
for (s32 i=0; i<gui::EGDC_COUNT ; ++i)
{
video::SColor col = env->getSkin()->getColor((gui::EGUI_DEFAULT_COLOR)i);
col.setAlpha(255);
env->getSkin()->setColor((gui::EGUI_DEFAULT_COLOR)i, col);
}
This sets ths alpha of the skin. I haven't looked into it but this makes the whole gui transparent.
Hi, thanks for the reply.
My question is..when i create a gui button i can use:
IGUIButton (IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
then I can use the setImage method to get an image into this button:
setImage (video::ITexture *image)
But I can not find any method in ITexture to set the background color to transparent...anyone got this figured out? thanks in advance.
My question is..when i create a gui button i can use:
IGUIButton (IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
then I can use the setImage method to get an image into this button:
setImage (video::ITexture *image)
But I can not find any method in ITexture to set the background color to transparent...anyone got this figured out? thanks in advance.