| 20 | }; |
| 21 | |
| 22 | void ImageFileBasicApp::setup() |
| 23 | { |
| 24 | try { |
| 25 | fs::path path = getOpenFilePath( "", ImageIo::getLoadExtensions() ); |
| 26 | if( ! path.empty() ) { |
| 27 | mTexture = dx::Texture( loadImage( path ) ); |
| 28 | } |
| 29 | } |
| 30 | catch( ci::Exception &exc ) { |
| 31 | console() << "unable to load the texture file, what: " << exc.what() << endl; |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | void ImageFileBasicApp::keyDown( KeyEvent event ) |
| 36 | { |
nothing calls this directly
no test coverage detected