irrLicht 1.7 introduced a 2D override material, to tweak the way GUI stuff is drawn (our main motivation with this, atm, is to use smooth scaling interpolation instead of the default blocky scaling)
For reference, the menu usually looks like:
http://3.bp.blogspot.com/_im4Yv1xoVXw/S ... h/STK2.jpg
The code I added to get the 2D override material running is :
Code: Select all
m_video_driver->enableMaterial2D();
video::SMaterial& material2D = m_video_driver->getMaterial2D();
material2D.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;
material2D.setFlag(video::EMF_BILINEAR_FILTER, true);
material2D.AmbientColor = SColor(255,255,255,255);
material2D.DiffuseColor = SColor(255,255,255,255);
material2D.EmissiveColor = SColor(255,0,0,0);
material2D.GouraudShading = false;
material2D.Shininess = 0.0f;
I tried a few variations, especially with colors, but nothing seems to have any impact on the outcome.
Any idea would be welcome!
Thanks