I wrote this code into the CreateScene() of my game.
Code: Select all
WindowManager& winMgr = WindowManager::getSingleton();
Window* myRoot = winMgr.createWindow( "DefaultWindow", "root" );
System::getSingleton().getDefaultGUIContext().setRootWindow( myRoot );
FrameWindow* fWnd = static_cast<FrameWindow*>(
winMgr.createWindow( "TaharezLook/FrameWindow", "testWindow" ));
myRoot->addChild( fWnd );
position a quarter of the way in from the top-left of parent.
fWnd->setPosition( UVector2( UDim( 0.25f, 0.0f ), UDim( 0.25f, 0.0f ) ) );
set size to be half the size of the parent
fWnd->setSize( USize( UDim( 0.5f, 0.0f ), UDim( 0.5f, 0.0f ) ) );
fWnd->setText( "Hello World!" );
This error message pops up during early runtime of my ogre application.
Assertion Failed!
Program: ...dio 2012\Projects\game2014\Debug\CEGUIBase-0_d.dll
File:C:\Users\john\Desktop\New Folder (5)\cegui.../Singleton.h
Line:79
Expression: ms_Singleton
For more information on how you program can cause an assertion
failure,see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
there are no errors reported in my debugger.
does anyone know the cause of this? thanks