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

Method clear

deps/physx/physx/source/common/src/CmPtrTable.cpp:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void PtrTable::clear(PtrTableStorageManager& sm)
56{
57 if(mOwnsMemory && mCount>1)
58 {
59 PxU32 implicitCapacity = Ps::nextPowerOfTwo(PxU32(mCount)-1);
60 sm.deallocate(mList, sizeof(void*)*implicitCapacity);
61 }
62
63 mList = NULL;
64 mOwnsMemory = true;
65 mCount = 0;
66}
67
68PxU32 PtrTable::find(const void* ptr) const
69{

Callers 15

renderCallbackFunction · 0.45
releaseMethod · 0.45
resetMethod · 0.45
broadPhaseMethod · 0.45
stepPhysicsFunction · 0.45
renderCallbackFunction · 0.45
releaseMethod · 0.45
updateContactPairsFunction · 0.45
renderCallbackFunction · 0.45
stepPhysicsFunction · 0.45
simulateMethod · 0.45

Calls 2

nextPowerOfTwoFunction · 0.50
deallocateMethod · 0.45

Tested by

no test coverage detected