Change font in MaterialViewer example as rendering of builtin font is messed up in GL on some systems (reported by randomMesh).
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2943 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
4a03580fc7
commit
741b0be9a4
|
@ -766,6 +766,12 @@ protected:
|
|||
video::IVideoDriver * driver = Device->getVideoDriver ();
|
||||
gui::IGUIEnvironment* guiEnv = Device->getGUIEnvironment();
|
||||
|
||||
// set a nicer font
|
||||
gui::IGUISkin* skin = guiEnv->getSkin();
|
||||
gui::IGUIFont* font = guiEnv->getFont("../../media/fonthaettenschweiler.bmp");
|
||||
if (font)
|
||||
skin->setFont(font);
|
||||
|
||||
createDefaultTextures(driver);
|
||||
|
||||
gui::IGUIContextMenu * menuBar = guiEnv->addMenu();
|
||||
|
|
Loading…
Reference in New Issue