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

Function sendShapes

physx/source/physx/src/PvdMetaDataPvdBinding.cpp:1101–1109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101static void sendShapes(PvdMetaDataBinding& binding, PvdDataStream& inStream, const PxRigidActor& inObj, const PxPhysics& ownerPhysics, PsPvd* pvd)
1102{
1103 InlineArray<PxShape*, 5> shapeData;
1104 PxU32 nbShapes = inObj.getNbShapes();
1105 shapeData.resize(nbShapes);
1106 inObj.getShapes(shapeData.begin(), nbShapes);
1107 for(PxU32 idx = 0; idx < nbShapes; ++idx)
1108 binding.createInstance(inStream, *shapeData[idx], inObj, ownerPhysics, pvd);
1109}
1110
1111static void releaseShapes(PvdMetaDataBinding& binding, PvdDataStream& inStream, const PxRigidActor& inObj)
1112{

Callers 1

createInstanceMethod · 0.85

Calls 5

getNbShapesMethod · 0.45
resizeMethod · 0.45
getShapesMethod · 0.45
beginMethod · 0.45
createInstanceMethod · 0.45

Tested by

no test coverage detected