Ejemplo n.º 1
0
	MapPresenter::~MapPresenter(void)
	{
		if (camera_man_)
		{
			delete camera_man_;
			camera_man_ = 0;
		}

		//remove listener
		OgreContext* pOgreContext = WorkspaceRoot::instance()->ogreContext();
		Ogre::Root* root = pOgreContext->root();
		root->removeFrameListener(event_listener_);

		delete event_listener_;

		if (scene_)
		{
			WorkspaceRoot::instance()->ogreContext()->root()->destroySceneManager(scene_);
		}
	}
Ejemplo n.º 2
0
void AnimationManager::shutdown()
{
    Ogre::Root *root = Ogre::Root::getSingletonPtr();
    root->removeFrameListener( this );
}