void OgreApp::shutdown()
{
    if(oisEnabled) shutdownOIS();

    if(sceneMgr)
    {
        sceneMgr->getRootSceneNode()->detachAllObjects();
        sceneMgr->destroyAllEntities();
        sceneMgr->destroyAllCameras();
    }
    if(root)
    {
        if(sceneMgr)root->destroySceneManager(sceneMgr);
        sceneMgr = NULL;
        if(frameListener) root->removeFrameListener(frameListener);
        delete root;
        root = NULL;
    }


}
Esempio n. 2
0
bool Game::shutdown() {
	shutdownOgre();
	shutdownCEGUI();
	shutdownOIS();
	shutdownBullet();
}//Game::shutdown