MCPcopy Create free account
hub / github.com/MyGUI/mygui / destroyRender

Method destroyRender

Common/Base/Ogre/BaseManager.cpp:80–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void BaseManager::destroyRender()
81 {
82 if (mSceneManager)
83 {
84 mSceneManager->clearScene();
85 mSceneManager->destroyAllCameras();
86 mSceneManager = nullptr;
87 mCamera = nullptr;
88 }
89
90 if (mWindow)
91 {
92 mWindow->destroy();
93 mWindow = nullptr;
94 }
95
96 if (mRoot)
97 {
98 Ogre::RenderWindow* window = mRoot->getAutoCreatedWindow();
99 if (window)
100 window->removeAllViewports();
101 delete mRoot;
102 mRoot = nullptr;
103 }
104 }
105
106 void BaseManager::createGuiPlatform()
107 {

Callers

nothing calls this directly

Calls 2

clearSceneMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected