MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / deinitialize

Method deinitialize

Samples/2.0/Tutorials/Tutorial_OpenVR/Tutorial_OpenVR.cpp:223–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 void Tutorial_OpenVRGraphicsSystem::deinitialize()
224 {
225 delete mOvrCompositorListener;
226 mOvrCompositorListener = 0;
227
228 delete mNullCompositorListener;
229 mNullCompositorListener = 0;
230
231 if( mVrTexture )
232 {
233 Ogre::TextureGpuManager *textureManager = mRoot->getRenderSystem()->getTextureGpuManager();
234 textureManager->destroyTexture( mVrTexture );
235 mVrTexture = 0;
236 }
237
238 if( mVrCullCamera )
239 {
240 mSceneManager->destroyCamera( mVrCullCamera );
241 mVrCullCamera = 0;
242 }
243
244 if( mHMD )
245 {
246 vr::VR_Shutdown();
247 mHMD = NULL;
248 }
249
250 GraphicsSystem::deinitialize();
251 }
252
253 void MainEntryPoints::createSystems( GameState **outGraphicsGameState,
254 GraphicsSystem **outGraphicsSystem,

Callers 8

mainAppFunction · 0.45
renderThreadAppFunction · 0.45
logicThreadFunction · 0.45
renderThreadAppFunction · 0.45
logicThreadFunction · 0.45
mainAppFunction · 0.45

Calls 4

getTextureGpuManagerMethod · 0.80
destroyCameraMethod · 0.80
getRenderSystemMethod · 0.45
destroyTextureMethod · 0.45

Tested by

no test coverage detected