| 56 | } |
| 57 | |
| 58 | void SimpleViewerApp::load( fs::path path ) |
| 59 | { |
| 60 | try { |
| 61 | if( path.extension() != ".svgz" ) |
| 62 | mDoc = svg::Doc::create( path ); |
| 63 | else // compressed |
| 64 | mDoc = svg::Doc::createFromSvgz( loadFile( path ) ); |
| 65 | |
| 66 | mTex = renderCairoToTexture( mDoc ); |
| 67 | } |
| 68 | catch( ci::Exception &exc ) { |
| 69 | console() << "exception caught parsing svg doc, what: " << exc.what() << endl; |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | void SimpleViewerApp::draw() |
| 74 | { |
nothing calls this directly
no test coverage detected