I'm a beginner in CEGUI and I just wanted to try to create a FrameWindow, using Falagard.
So, here is my C++ code :
Code: Select all
CEGUI::OpenGLRenderer* myRenderer = NULL;
myRenderer = new CEGUI::OpenGLRenderer( 0 );
new CEGUI::System( myRenderer );
CEGUI::SchemeManager::getSingleton().loadScheme( "datafiles/schemes/VanillaSkin.scheme" );
CEGUI::System::getSingleton().setDefaultMouseCursor( "Vanilla-Images", "MouseArrow" );
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
CEGUI::Window* myRoot = wmgr.createWindow( "DefaultWindow", "root" );
CEGUI::System::getSingleton().setGUISheet( myRoot );
CEGUI::FrameWindow* fWnd = (CEGUI::FrameWindow*)wmgr.createWindow( "Vanilla/FrameWindow", "FrameWindow" );
But the program crashes when I launch it!!!
Here is the end of CEGUI.log :
Code: Select all
Creating falagard mapping for type 'Vanilla/StaticImage' using base type 'Falagard/StaticImage' and LookN'Feel 'Vanilla/StaticImage'.
19/07/2006 15:14:59 (InfL1) Creating falagard mapping for type 'Vanilla/StaticText' using base type 'Falagard/StaticText' and LookN'Feel 'Vanilla/StaticText'.
19/07/2006 15:14:59 (InfL1) Creating falagard mapping for type 'Vanilla/Listbox' using base type 'Falagard/Listbox' and LookN'Feel 'Vanilla/Listbox'.
19/07/2006 15:14:59 (InfL1) Creating falagard mapping for type 'Vanilla/MultiLineEditbox' using base type 'Falagard/MultiLineEditbox' and LookN'Feel 'Vanilla/MultiLineEditbox'.
19/07/2006 15:14:59 (Error) Exception: WindowManager::getWindow - A Window object with the name 'rameWindow
Everything before is fine, and OpenGL is initialized.
So, if I understand well, it can't create a window of name FrameWindow, because this Window doesn't exist?
Can anyone help me?
PS : I'm pretty sure this problem is really a stupid thing, don't hit me!
