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

Function releaseShapes

physx/source/physx/src/PvdMetaDataPvdBinding.cpp:1111–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1109}
1110
1111static void releaseShapes(PvdMetaDataBinding& binding, PvdDataStream& inStream, const PxRigidActor& inObj)
1112{
1113 InlineArray<PxShape*, 5> shapeData;
1114 PxU32 nbShapes = inObj.getNbShapes();
1115 shapeData.resize(nbShapes);
1116 inObj.getShapes(shapeData.begin(), nbShapes);
1117 for(PxU32 idx = 0; idx < nbShapes; ++idx)
1118 binding.destroyInstance(inStream, *shapeData[idx], inObj);
1119}
1120
1121void PvdMetaDataBinding::createInstance(PvdDataStream& inStream, const PxRigidStatic& inObj, const PxScene& ownerScene, const PxPhysics& ownerPhysics, PsPvd* pvd)
1122{

Callers 1

destroyInstanceMethod · 0.85

Calls 5

getNbShapesMethod · 0.45
resizeMethod · 0.45
getShapesMethod · 0.45
beginMethod · 0.45
destroyInstanceMethod · 0.45

Tested by

no test coverage detected