Page 1 of 1

Setting Cegui up with ogre

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

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("","Zip", "GUI");

than initialize them with

Code: Select all


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 file is in the same directory as the .exe of the file)

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

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" );



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