I'm new on this forum and with programming with using graphics engines. So, i want to say hello to everyone, and please forgive me my english.
Ok.
I modify HelloWorld tutorial with drawing an extern fonts, but, even if they are loaded, they aren't displayed. I trying with built in fonts and this is the same.
Code:
Code: Select all
device->setWindowCaption(L"Hello World! - Irrlicht Engine Demo");
IVideoDriver* driver = device->getVideoDriver();
ISceneManager* smgr = device->getSceneManager();
IGUIEnvironment* guienv = device->getGUIEnvironment();
/*guienv->addStaticText(L"Hello World! This is the Irrlicht Software renderer!",
rect<s32>(10,10,260,52), true);*/
IGUIFont *nFont = guienv->getBuiltInFont(); /* guienv->getFont("myfont.xml");*/
if(nFont) nFont->draw(L"Testuje sobie bal bla", core::rect<s32>(10,10,260,52), video::SColor(0,0,0,0));
IAnimatedMesh* mesh = smgr->getMesh("sydney.md2");
if (!mesh)
{
device->drop();
return 1;
}