MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / NpDestroyAggregate

Function NpDestroyAggregate

deps/physx/physx/source/physx/src/NpFactory.cpp:797–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797static void NpDestroyAggregate(Scb::Aggregate& scb)
798{
799 NpAggregate* np = const_cast<NpAggregate*>(getNpAggregate(&scb));
800
801 if(np->getBaseFlags() & PxBaseFlag::eOWNS_MEMORY)
802 NpFactory::getInstance().releaseAggregateToPool(*np);
803 else
804 np->~NpAggregate();
805
806 NpPhysics::getInstance().notifyDeletionListenersMemRelease(np, NULL);
807}
808
809static void NpDestroyShape(Scb::Shape& scb)
810{

Callers 1

NpDestroyFunction · 0.85

Calls 4

getBaseFlagsMethod · 0.80
~NpAggregateMethod · 0.80

Tested by

no test coverage detected