| 301 | } |
| 302 | |
| 303 | void D3d11ImageBasicApp::saveScreenshot() |
| 304 | { |
| 305 | fs::path savePath = getSaveFilePath(); |
| 306 | if( ! savePath.empty() ) { |
| 307 | try { |
| 308 | writeImage( savePath, copyWindowSurface() ); |
| 309 | } |
| 310 | catch( const std::exception& e ) { |
| 311 | console() << "Failed to save screenshot: " << e.what() << std::endl; |
| 312 | } |
| 313 | } |
| 314 | } |
| 315 | |
| 316 | void D3d11ImageBasicApp::createTextureFromSurface( const Surface8u &surface ) |
| 317 | { |
nothing calls this directly
no test coverage detected