setAlpha Fuction Help

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

setAlpha Fuction Help

Post by DarkWhoppy »

I can't seem to get it to work. Could someone gimme a quick example? 8)
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

Code: Select all

irr::video::SColor  some_color(0,255,255,255);
some_color.setAlpha(255);
DarkWhoppy
Posts: 386
Joined: Thu Sep 25, 2003 12:43 pm
Contact:

Post by DarkWhoppy »

How about for images added as a GUI Element? (for setting their alpha)

_Img = guienv->addImage(rect<int>(0,0,320,180));
_Img->setImage(driver->getTexture("img.jpg"));
_Img->ALPHA_FUNCTION_IF_THERE_IS_ONE();

:D
Post Reply