Code: Select all
#define IRRLICHTPATH "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Libraries\\irrlicht-1.8.4\\"
irr::gui::IGUIEnvironment *gui = device->getGUIEnvironment();
irr::gui::IGUIFont *font = gui->getFont(IRRLICHTPATH"media\\fontlucida.png");
gui->getSkin()->setFont(font);
irr::gui::IGUIStaticText *text = gui->addStaticText(L"", irr::core::rect<irr::s32>(100, 60, 400, 160), true, true, 0, -1, true);
while(device->run()){
driver->beginScene(true, true, irr::video::SColor(255, 255, 255, 255));
sceneManager->drawAll();
text->setText(L"€");
gui->drawAll();
driver->endScene();
}
How can I use the Euro sign in Irrlicht?