I've spotted another problem, but i don't know if it just depends on my programming skills or it is a bug.
Here's some code:
Code: Select all
/* CGameManager.h: */
#include <CEGUIIrrlichtResourceProvider.h>
...
using namespace CEGUI;
...
static IrrlichtResourceProvider* m_CEIrrResProvider;
...
/* CGameManager.cpp: */
IrrlichtResourceProvider* CGameManager::m_CEIrrResProvider = 0;
...
m_CEIrrRenderer = &IrrlichtRenderer::create( *m_IrrDevicePtr ); // IrrDevicePtr is valid
if ( !m_CEIrrRenderer )
{
Shutdown();
return 0;
}
m_CESystemPtr = &System::create( *m_CEIrrRenderer );
if ( !m_CESystemPtr )
{
Shutdown();
return 0;
}
m_CEIrrResProvider = static_cast<IrrlichtResourceProvider*>( &m_CEIrrRenderer->createIrrlichtResourceProvider( *m_IrrDevicePtr->getFileSystem() ));
m_CEIrrResProvider->setResourceGroupDirectory( "global", "data/gui/" );
CEGUI::Imageset::setDefaultResourceGroup( "global" );
CEGUI::Font::setDefaultResourceGroup( "global" );
CEGUI::Scheme::setDefaultResourceGroup( "global" );
CEGUI::WidgetLookManager::setDefaultResourceGroup( "global" );
CEGUI::WindowManager::setDefaultResourceGroup( "global" );
SchemeManager::getSingleton().create( "TaharezLook.scheme", "global" );
...
So far so good, but at the last line it doesn't find the scheme:
Code: Select all
CEGUI::InvalidRequestException in file d:\sdk\ceguitrunk_rev2156\cegui\src\ceguidefaultresourceprovider.cpp(63) : DefaultResourceProvider::load - TaharezLook.scheme does not exist
Tried to set the data path to "data/gui/" & "/data/gui" & "/data/gui/" but makes no difference.
I haven't found a function to set the IrrlichtResourceProvider as DefaultResourceProvider, is there one?
CEGUI-Version: v0.6.9999 - Rev 2156
Irrlicht-Version: 1.5.1