Page 1 of 1

Setting Cegui up with ogre

Posted: Thu Dec 11, 2008 20:37
by kewur
Hello

Im trying to configure and initialize my ogre and cegui manually

im using this code to find the resources related to cegui

Code: Select all

Ogre::ResourceGroupManager::getSingleton().addResourceLocation("gui.zip","Zip", "GUI");


than initialize them with

Code: Select all

Ogre::ResourceGroupManager::getSingleton().initialiseResourceGroup("GUI");


this action gives no error but when i try to set up cegui with this line

Code: Select all

CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"TaharezLook.scheme", (CEGUI::utf8*)"GUI");


it gives an file not found exception . Well but the files are inside!! and i initialised them : /

i'm doing something wrong but where? (the gui.zip file is in the same directory as the .exe of the file)

Posted: Fri Dec 12, 2008 09:47
by CrazyEddie
Hi,

I believe you need to setup some default resource groups for the CEGUI components. If all your GUI files reside within the same resource group, this can be as simple as:

Code: Select all

CEGUI::System::getSingleton().getResourceProvider()->setDefaultResourceGroup( "GUI" );


HTH

CE.

Posted: Fri Dec 12, 2008 23:58
by kewur
yup , that solved my problem! thanks alot CE (: