Just started to use the iirlicht engine.
I'm trying to add some text in my little game.
Here is what i do:
Code: Select all
driver->draw2DRectangle(SColor(128,128,128,255),rect<s32>(0, 0, screen_w, 30));
swprintf(fpsbuf, 128, L"%d fps @ %d triangles", fps, driver->getPrimitiveCountDrawn());
gamefont->draw(fpsbuf, rect<s32>(5,5,screen_w-5,15), SColor(255,255,255,255));
But in my game i get black text on black 50% transparent rectangle.
I have looked in the tutorials, in the API documentation and have searched the forum. but cant find any help or solution.
I used the IrrFontTool from 0.4.0 to convert a Arial font, and it is in 24bpp.
Using Irrlicht 0.4.2 and OpenGL.
compiling with mingw.
Thankful for any help.