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

Method release

deps/physx/physx/source/physx/src/NpPvdSceneQueryCollector.cpp:60–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void PvdSceneQueryCollector::release()
61{
62 physx::pvdsdk::PvdDataStream* stream = mScene.getScenePvdClient().getDataStream();
63 if(stream && stream->isConnected())
64 {
65 const Ps::Array<PxGeometryHolder>& geoms = getPrevFrameGeometries();
66 for(PxU32 k=0; k<geoms.size(); ++k)
67 stream->destroyInstance(&geoms[k]);
68
69 clearGeometryArrays();
70 }
71}
72
73template<class QueryResultT, class PvdHitType>
74static void collectBatchedHits(const QueryResultT* results, Ps::Array<PvdHitType>& accumulated, Ps::Array<PvdSqHit>& pvdSqHits, PxU32 nb, PxU32 startIdx, const char* arrayName)

Callers

nothing calls this directly

Calls 5

getScenePvdClientMethod · 0.80
getDataStreamMethod · 0.45
isConnectedMethod · 0.45
sizeMethod · 0.45
destroyInstanceMethod · 0.45

Tested by

no test coverage detected