i am new to cegui, so I was trying to setup a very basic interface with irrlicht. Through searching and tutorials I got this far:
Code: Select all
IrrlichtDevice *device =createDevice(EDT_OPENGL, dimension2d<u32>(640, 480), 16,false, false, false, 0);
CEGUI::IrrlichtRenderer *myRenderer = &CEGUI::IrrlichtRenderer::bootstrapSystem(*device);
CEGUI::SchemeManager::getSingleton().create("TaharezLook.scheme");
CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();
CEGUI::Window* root = (CEGUI::Window*)winMgr.createWindow("DefaultWindow", "Root");
CEGUI::FrameWindow* wnd = (CEGUI::FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "Demo Window");
root->addChildWindow(wnd);
and of course
Code: Select all
smgr->drawAll();
CEGUI::System::getSingleton().renderGUI();
driver->endScene();
I had to find out why the programm crashed several times (exceptions) but now it kind of runs. Except it does not work.
When using this
Code: Select all
CEGUI::FrameWindow* wnd = (CEGUI::FrameWindow*)winMgr.createWindow("TaharezLook/FrameWindow", "Demo Window");I get two "unsupported texture format" messages in the console and no gui displayed, Irrlicht runs like it should. I just use the files that were included in the package. Not finding the files does not seem to be the problem anymore, because that caused exceptions.
I use irrlicht 1.7.1 and Code::Blocks with mingw on Win XP.
Do I have to link another specifig image loader or something?
greetings

