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

Function sendGeometry

physx/source/physx/src/PvdMetaDataPvdBinding.cpp:904–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902
903template <typename TGeneratedValuesType, typename TGeomType>
904static void sendGeometry(PvdMetaDataBinding& metaBind, PvdDataStream& inStream, const PxShape& inShape, const TGeomType& geom, PsPvd* pvd)
905{
906 const void* geomInst = (reinterpret_cast<const PxU8*>(&inShape)) + 4;
907 inStream.createInstance(getPvdNamespacedNameForType<TGeomType>(), geomInst);
908 metaBind.registrarPhysicsObject<TGeomType>(inStream, geom, pvd);
909 TGeneratedValuesType values(&geom);
910 inStream.setPropertyMessage(geomInst, values);
911 inStream.setPropertyValue(&inShape, "Geometry", geomInst);
912 inStream.setPropertyValue(geomInst, "Shape", reinterpret_cast<const void*>(&inShape));
913}
914
915static void setGeometry(PvdMetaDataBinding& metaBind, PvdDataStream& inStream, const PxShape& inObj, PsPvd* pvd)
916{

Callers

nothing calls this directly

Calls 3

createInstanceMethod · 0.45
setPropertyMessageMethod · 0.45
setPropertyValueMethod · 0.45

Tested by

no test coverage detected