| 108 | } |
| 109 | |
| 110 | void ObjLoaderApp::keyDown( KeyEvent event ) |
| 111 | { |
| 112 | if( event.getChar() == 'o' ) { |
| 113 | fs::path path = getOpenFilePath(); |
| 114 | if( ! path.empty() ) { |
| 115 | loadObj( loadFile( path ) ); |
| 116 | } |
| 117 | } |
| 118 | else if( event.getChar() == 'f' ) { |
| 119 | frameCurrentObject(); |
| 120 | } |
| 121 | else if( event.getChar() == 'w' ) { |
| 122 | writeObj(); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | void ObjLoaderApp::draw() |
| 127 | { |
nothing calls this directly
no test coverage detected