http://irrlicht.sourceforge.net/docu/cl ... or.html#a7void irr::video::SColor::setAlpha( s32 a ) [inline]
Sets the alpha comonent of the Color. The alpha component defines how transparent a color should be.
Parameters:
a: Has to be a value between 0 and 255. 0 means not transparent, 255 means fully transparent.
and I've been using this line of code: video::SColor bar_color = video::SColor(255,0,0,0) and when the code is as shown, the rectangle I'm drawing comes up. But when I replace the alpha value of 255 with 0, the I can't see the rectangle.
So, is the setAlpha function a bit different from when I create a color with SColor() or is this a mistake??