Displaying text

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
pin3
Posts: 108
Joined: Fri Oct 06, 2006 8:50 pm
Contact:

Displaying text

Post by pin3 »

What is the best way to display simple text? I tried
font = device->getGUIEnvironment()->getBuiltInFont(); font->draw() however it is slow and I don't know how to set the text size.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Irrlicht's fonts are bitmap fonts, which means you have to generate a new font for each size that you use.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Ein
Posts: 33
Joined: Thu Feb 12, 2009 11:39 pm
Location: UK - Matrix
Contact:

Post by Ein »

Not sure if this helps but this is from the 2d tutorial (Cliky)

Code: Select all

gui::IGUIFont* font = device->getGUIEnvironment()->getBuiltInFont();

font->draw(L"This demo shows that Irrlicht is also capable of drawing 2D graphics.", core::rect<s32>(130,10,300,50), video::SColor(255,255,255,255));
HTH,
Pete

EDIT, This is what you have >_< sorry no help at all.
Ein knowledge seeker
pin3
Posts: 108
Joined: Fri Oct 06, 2006 8:50 pm
Contact:

Post by pin3 »

ok,
thanks for posting, I'll figure out something
Post Reply