| 636 | } |
| 637 | |
| 638 | void 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 | |
| 667 | void PhysXSampleApplication::onRender() |
| 668 | { |