Drawing text results in a filled rectangle?

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
izhbq412
Posts: 11
Joined: Fri Sep 28, 2007 9:31 am

Drawing text results in a filled rectangle?

Post by izhbq412 »

Hi everyone,
I'm trying to show some text in my 3D world but instead only a filled rectangle appears at the given position (filled with the color I'm passing to the function). Here's how I add the text scene node:

Code: Select all

gui::IGUIFont* font = m_pSceneManager->getGUIEnvironment()->getBuiltInFont();
SColor color( 255, 255, 255, 255 );
m_pSceneManager->addTextSceneNode( font, L"This is a test", color, someParent, somePosition );
Is there something else I must do first? Initialize the built-in font somehow?
izhbq412
Posts: 11
Joined: Fri Sep 28, 2007 9:31 am

Post by izhbq412 »

It turned out my version of OpenGL was too old. Updating the drivers for my video card solved the problem.
Post Reply