| 575 | } |
| 576 | |
| 577 | void SampleApp::captureScreen(Texture* pTexture) |
| 578 | { |
| 579 | mCaptureScreen = false; |
| 580 | |
| 581 | std::string filename = getExecutableName(); |
| 582 | std::filesystem::path directory = getRuntimeDirectory(); |
| 583 | std::filesystem::path path = findAvailableFilename(filename, directory, "png"); |
| 584 | pTexture->captureToFile(0, 0, path); |
| 585 | } |
| 586 | |
| 587 | void SampleApp::shutdown(int returnCode) |
| 588 | { |
nothing calls this directly
no test coverage detected