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

Function resizeMapping

physx/source/lowlevelaabb/src/BpBroadPhaseABP.cpp:888–895  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886///////////////////////////////////////////////////////////////////////////////
887
888static ABP_Index* resizeMapping(PxU32 oldNbBoxes, PxU32 newNbBoxes, ABP_Index* mapping)
889{
890 ABP_Index* newMapping = reinterpret_cast<ABP_Index*>(MBP_ALLOC(sizeof(ABP_Index)*newNbBoxes));
891 if(oldNbBoxes)
892 PxMemCopy(newMapping, mapping, oldNbBoxes*sizeof(ABP_Index));
893 MBP_FREE(mapping);
894 return newMapping;
895}
896
897 struct ABP_Object;
898

Callers 1

addObjectsMethod · 0.70

Calls 1

PxMemCopyFunction · 0.85

Tested by

no test coverage detected