I am currently working on a project using Ogre3D. For the GUI I wanted to use CEGUI. But I always get an error in the following lines (/last line):
Code: Select all
void CGui::init(Ogre::RenderTarget &target)
{
g_pLogfile->fNewLine("Initializing CEGUI...");
pRenderer = &CEGUI::OgreRenderer::bootstrapSystem(target);
which is called via
Code: Select all
CGui* pGUI = new CGui();
pGUI->init(*g_pEngine->getViewport()->getTarget());
Constructor is empty so far...
Since Ogre automatically creates the windows, I have also tried this:
Code: Select all
void CGui::init(void)
{
g_pLogfile->fNewLine("Initializing CEGUI...");
pRenderer = &CEGUI::OgreRenderer::bootstrapSystem();
But I always get the following error message:
Unhandled exception at 0x76fbb9bc in Project1.exe: Microsoft C++ exception: CEGUI::GenericException at memory location 0x0036cf38..
Before those lines I have not used CEGUI. Ogre already has initialized and there is a Window for rendering (still everything black of course).
What could be the problem? What should I try next? Thanks in advance for your help!