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

Method fileDrop

samples/Geometry/src/GeometryApp.cpp:338–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void GeometryApp::fileDrop( FileDropEvent event )
339{
340 try {
341 gl::Texture::Format fmt;
342 fmt.setAutoInternalFormat();
343 fmt.setWrap( GL_REPEAT, GL_REPEAT );
344
345 mTexture = gl::Texture2d::create( loadImage( event.getFile( 0 ) ), fmt );
346 }
347 catch( const std::exception &exc ) {
348 }
349}
350
351void GeometryApp::updateGui()
352{

Callers 1

emitFileDropMethod · 0.45

Calls 4

loadImageFunction · 0.85
setWrapMethod · 0.80
getFileMethod · 0.80
createFunction · 0.50

Tested by

no test coverage detected