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

Method setPvdParams

physx/samples/samplebase/PhysXSampleApplication.cpp:638–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void PhysXSampleApplication::setPvdParams(const SampleCommandLine& cmdLine)
639{
640 if (cmdLine.hasSwitch("nonVizPvd"))
641 {
642 mPvdParams.useFullPvdConnection = false;
643 }
644
645 if (cmdLine.hasSwitch("pvdhost"))
646 {
647 const char* ipStr = cmdLine.getValue("pvdhost");
648 if (ipStr)
649 Ps::strlcpy(mPvdParams.ip, 256, ipStr);
650 }
651
652 if (cmdLine.hasSwitch("pvdport"))
653 {
654 const char* portStr = cmdLine.getValue("pvdport");
655 if (portStr)
656 mPvdParams.port = atoi(portStr);
657 }
658
659 if (cmdLine.hasSwitch("pvdtimeout"))
660 {
661 const char* timeoutStr = cmdLine.getValue("pvdtimeout");
662 if (timeoutStr)
663 mPvdParams.timeout = atoi(timeoutStr);
664 }
665}
666
667void PhysXSampleApplication::onRender()
668{

Callers

nothing calls this directly

Calls 3

strlcpyFunction · 0.85
hasSwitchMethod · 0.80
getValueMethod · 0.45

Tested by

no test coverage detected