Everything works excellent, but fonts not showing up.
I managed to have statictext showing a couple of times , but now it is off ..
Do you spot any error in this initialization procedure ?
Code: Select all
irr::SIrrlichtCreationParameters createParams;
createParams.DriverType = m_DriverType;
createParams.WindowSize = irr::core::dimension2d<irr::u32>( size().width(), size().height() );
createParams.EventReceiver = 0;
createParams.Stencilbuffer = true;
createParams.IgnoreInput = true;
// Window ID for creating the native rendering context
createParams.WindowId = ( void * ) winId();
qDebug() << " render size = " << createParams.WindowSize.Width << " x " << createParams.WindowSize.Height;
qDebug() << " native window ID = " << ( irr::u32 ) createParams.WindowId;
if(( m_IrrDevice = irr::createDeviceEx( createParams )) == 0 )
throw( "failed to create Irrlicht device" );
guienv = getIrrlichtDevice()->getGUIEnvironment();
guienv->addStaticText(L"Hello World! This is the Irrlicht Software renderer!", irr::core::rect<irr::s32>(10,10,10,10),true);
skin = guienv->getSkin();
font = guienv->getFont("media/fonthaettenschweiler.bmp");
skin->setFont(font);
skin->setColor(gui::EGDC_BUTTON_TEXT,SColor(255,255,255,255));