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

Method importRAWFile

physx/samples/samplebase/PhysXSample.cpp:2573–2593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2571}
2572
2573void PhysXSample::importRAWFile(const char* relativePath, PxReal scale, bool recook)
2574{
2575 mMeshTag = 0;
2576 mFilename = relativePath;
2577 mScale = scale;
2578
2579 const bool saved = gRecook;
2580 if(!gRecook && recook)
2581 gRecook = true;
2582
2583 bool status = loadRAWfile(getSampleMediaFilename(mFilename), *this, scale);
2584 if (!status)
2585 {
2586 std::string msg = "Sample can not load file ";
2587 msg += getSampleMediaFilename(mFilename);
2588 msg += "\n";
2589 fatalError(msg.c_str());
2590 }
2591
2592 gRecook = saved;
2593}
2594
2595

Callers

nothing calls this directly

Calls 2

getSampleMediaFilenameFunction · 0.85
loadRAWfileFunction · 0.70

Tested by

no test coverage detected