MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / NvFlexExtMapShapeData

Function NvFlexExtMapShapeData

extensions/flexExtContainer.cpp:597–611  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597NvFlexExtShapeData NvFlexExtMapShapeData(NvFlexExtContainer* c)
598{
599 NvFlexExtShapeData data;
600
601 c->mShapeRotations.map();
602 c->mShapeTranslations.map();
603
604 if (c->mShapeRotations.size())
605 data.rotations = (float*)&c->mShapeRotations[0];
606
607 if (c->mShapeTranslations.size())
608 data.positions = (float*)&c->mShapeTranslations[0];
609
610 return data;
611}
612
613void NvFlexExtUnmapShapeData(NvFlexExtContainer* c)
614{

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected