| 525 | } |
| 526 | |
| 527 | void setResolution(MapGenerator* pGenerator, int res) |
| 528 | { |
| 529 | if (pGenerator == NULL) |
| 530 | { |
| 531 | displayMessage("Stream does not exist!"); |
| 532 | return; |
| 533 | } |
| 534 | |
| 535 | XnMapOutputMode Mode; |
| 536 | pGenerator->GetMapOutputMode(Mode); |
| 537 | Mode.nXRes = Resolution((XnResolution)res).GetXResolution(); |
| 538 | Mode.nYRes = Resolution((XnResolution)res).GetYResolution(); |
| 539 | XnStatus nRetVal = pGenerator->SetMapOutputMode(Mode); |
| 540 | if (nRetVal != XN_STATUS_OK) |
| 541 | { |
| 542 | displayMessage("Failed to set resolution: %s", xnGetStatusString(nRetVal)); |
| 543 | } |
| 544 | } |
| 545 | |
| 546 | void setFPS(MapGenerator* pGenerator, int fps) |
| 547 | { |
no test coverage detected