Code: Select all
this->mSystem = new CEGUI::System(mRenderer);
here is the code:
Code: Select all
SceneManager *mgr = Ogre::Root::getSingletonPtr()->getSceneManager("Default SceneManager");
RenderWindow * win = ApplicationWindow::GetInstance().getRenderWindow();
LPDIRECT3DDEVICE9 pD3DDevice;
win->getCustomAttribute("D3DDEVICE", &pD3DDevice);
// CEGUI setup
this->mRenderer = new CEGUI::DirectX9Renderer(pD3DDevice, 0);
this->mSystem = new CEGUI::System(mRenderer);
i have been using CEGUI 0.5 stable release with both Ogre 1.4.7 and 1.4.8 stable releases. No matter what I've tried... It throws a CEGUI::GenericException while creating the CEGUI subsystem.
I don't think it depends on ogre since I tried first using the OgreCEGUIRenderer and then DirectX9Renderer. Pointers are not NULL.
I am using Windows XP Sp2, Ogre 1.4.8, CEGUI 0.5 stable , DirectX9 April 2007 ( working ), Visual Studio .net 2005 Professional with Service Pack 1.
I have been around this problem for a month right now...
Any suggestion? Thanx