| 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 | { |
nothing calls this directly
no test coverage detected