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

Method onShutdown

physx/samples/samplevehicle/SampleVehicle.cpp:552–573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552void SampleVehicle::onShutdown()
553{
554 {
555 PxSceneWriteLock scopedLock(*mScene);
556 for(PxU32 i=0;i<mNbIB;i++)
557 SAMPLE_FREE(mIB[i]);
558 SAMPLE_FREE(mTerrainVB);
559
560#if PX_DEBUG_VEHICLE_ON
561 mTelemetryData4W->free();
562 mTelemetryData6W->free();
563#endif
564 mVehicleManager.shutdown();
565 }
566
567 PhysXSample::onShutdown();
568
569#if defined(SERIALIZE_VEHICLE_BINARY)
570 if(mMemory)
571 SAMPLE_FREE(mMemory);
572#endif
573}
574
575
576void SampleVehicle::onTickPreRender(PxF32 dtime)

Callers

nothing calls this directly

Calls 2

freeMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected