Fonts not showing

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
kabutor
Posts: 3
Joined: Mon Jul 26, 2004 9:34 am

Fonts not showing

Post by kabutor »

Im having a hard time with fonts, Im trying tu use them to display the stats of on model, but I made a test before, and it did'tn work.

Code: Select all

gui::IGUIEnvironment* env = device->getGUIEnvironment();
	gui::IGUIFont* font = env->getBuiltInFont();
	//env->addStaticText(L"Hello World! This is the Irrlicht Software engine!", core::rect<int>(10,210,200,330), true);
	font->draw(L"TEST",core::rect<s32>(10,210,200,430),        video::SColor(255,255,255,255)); 

[...]

Main Loop:

env->drawAll();
If I remove the // in the addStaticText, it shows a box with that text in the window, but the font->draw looks like is not making nothing, I also try changing the colour, and using getFont inestead getBuildFont but is the same, it didnt show nothing in screen.

Im using Opengl + Linux just in case..

thx
Post Reply