本文整理汇总了C++中ogre::SceneManager::destroyCamera方法的典型用法代码示例。如果您正苦于以下问题:C++ SceneManager::destroyCamera方法的具体用法?C++ SceneManager::destroyCamera怎么用?C++ SceneManager::destroyCamera使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ogre::SceneManager
的用法示例。
在下文中一共展示了SceneManager::destroyCamera方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Exit
void EditorFrameHandler::Exit()
{
CommonDeclarations::GetApplication()->SetCurrentCamera(CommonDeclarations::GetCamera()->GetOgreCamera());
Ogre::SceneManager *SceneMgr = CommonDeclarations::GetSceneManager();
SceneMgr->destroyCamera(EditorCamera);
EditorCamera = NULL;
ExitGUI();
MyGUI::Gui *gui = GUISystem::GetInstance()->GetGui();
gui->hidePointer();
}
示例2: destroy
void Camera::destroy ()
{
Ogre::SceneManager *mSceneMgr = RadXML::getSingletonPtr ()->getSceneManager ();
destroySceneNode ();
if (camCamera != 0)
{
mSceneMgr->destroyCamera (camCamera);
camCamera = 0;
}
}
示例3: cleanupContent
void OgreSample::cleanupContent()
{
if(m_pSim != NULL)
{
m_pSim->release();
delete m_pSim;
m_pSim = NULL;
}
Ogre::SceneManager *mgr = mRoot->getSceneManager(mInfo["Title"]);
if(mgr != NULL)
{
mgr->destroyCamera(mInfo["Title"] + "Camera");
mRoot->destroySceneManager(mgr);
}
}
示例4:
Camera::~Camera()
{
Ogre::Root& root = Ogre::Root::getSingleton();
Ogre::SceneManager* sceneMgr = root.getSceneManager(BFG_SCENEMANAGER);
mSubLane.reset();
if (mRenderTargetCreated)
{
Ogre::TextureManager::getSingleton().remove(stringify(mHandle));
Ogre::MaterialManager::getSingleton().remove(stringify(mHandle));
mRenderTarget = NULL;
}
sceneMgr->destroyCamera(stringify(mHandle));
if (mNodeCreated)
{
sceneMgr->destroySceneNode(mCameraNode);
}
}
示例5:
Camera::~Camera()
{
Ogre::Root& root = Ogre::Root::getSingleton();
Ogre::SceneManager* sceneMgr = root.getSceneManager(BFG_SCENEMANAGER);
Main::eventLoop()->disconnect(ID::VE_UPDATE_POSITION, this);
Main::eventLoop()->disconnect(ID::VE_UPDATE_ORIENTATION, this);
if (mRenderTargetCreated)
{
Ogre::TextureManager::getSingleton().remove(stringify(mHandle));
Ogre::MaterialManager::getSingleton().remove(stringify(mHandle));
mRenderTarget = NULL;
}
sceneMgr->destroyCamera(stringify(mHandle));
if (mNodeCreated)
{
sceneMgr->destroySceneNode(mCameraNode);
}
}