MCPcopy Create free account
hub / github.com/cinder/Cinder / load

Method load

samples/_svg/SimpleViewer/src/SimpleViewerApp.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void 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
73void SimpleViewerApp::draw()
74{

Callers

nothing calls this directly

Calls 5

loadFileFunction · 0.85
renderCairoToTextureFunction · 0.85
extensionMethod · 0.80
createFunction · 0.50
whatMethod · 0.45

Tested by

no test coverage detected