Skip to content

Instantly share code, notes, and snippets.

Created May 28, 2013 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5660695 to your computer and use it in GitHub Desktop.
Save anonymous/5660695 to your computer and use it in GitHub Desktop.
CEGUI::WindowManager::setDefaultResourceGroup("CEGUI");
CEGUI::Font::setDefaultResourceGroup("CEGUI");
CEGUI::ImageManager::setImagesetDefaultResourceGroup("CEGUI");
CEGUI::Scheme::setDefaultResourceGroup("CEGUI");
CEGUI::WidgetLookManager::setDefaultResourceGroup("CEGUI");
CEGUI::AnimationManager::setDefaultResourceGroup("CEGUI");
CEGUI::OgreRenderer::bootstrapSystem( *mRenderWindow );
CEGUI::Window* pWindowRoot = CEGUI::WindowManager::getSingleton().createWindow( "DefaultWindow", "Root" );
CEGUI::System::getSingleton().getDefaultGUIContext().setRootWindow( pWindowRoot );
CEGUI::SchemeManager::getSingleton().createFromFile( "AlfiskoSkin.scheme" );
CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().setImage( "AlfiskoSkin/MouseArrow" );
CEGUI::System::getSingleton().getDefaultGUIContext().getMouseCursor().setPosition( CEGUI::Vector2f( mRenderWindow->getWidth() / 2, mRenderWindow->getHeight() / 2 ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment