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

Method setup

samples/ImageFileBasic/src/ImageFileBasicAppDX.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20};
21
22void 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
35void ImageFileBasicApp::keyDown( KeyEvent event )
36{

Callers

nothing calls this directly

Calls 5

getOpenFilePathFunction · 0.85
TextureClass · 0.85
loadImageFunction · 0.85
emptyMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected