MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / releaseSceneInternal

Method releaseSceneInternal

physx/source/physx/src/NpPhysics.cpp:298–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void NpPhysics::releaseSceneInternal(PxScene& scene)
299{
300 NpScene* pScene = static_cast<NpScene*>(&scene);
301
302 Ps::Mutex::ScopedLock lock(mSceneAndMaterialMutex);
303 for(PxU32 i=0;i<mSceneArray.size();i++)
304 {
305 if(mSceneArray[i]==pScene)
306 {
307 mSceneArray.replaceWithLast(i);
308 PX_DELETE_AND_RESET(pScene);
309 return;
310 }
311 }
312}
313
314PxU32 NpPhysics::getNbScenes() const
315{

Callers 1

releaseMethod · 0.80

Calls 2

sizeMethod · 0.45
replaceWithLastMethod · 0.45

Tested by

no test coverage detected