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

Method imageLoaded

samples/Kaleidoscope/src/InstascopeApp.cpp:297–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void InstascopeApp::imageLoaded()
298{
299 mPhaseChangeCalled = true;
300
301 // we don't want to wait on the first go around
302 int delayOffset = STILL_DUR;
303 if( mFirstRun ) {
304 mFirstRun = false;
305 delayOffset = 0;
306 }
307
308 // This defines the length of time that we're in each phase
309 timeline().add( [&] { changePhase(0); }, timeline().getCurrentTime() + delayOffset);
310 timeline().add( [&] { changePhase(1); }, timeline().getCurrentTime() + delayOffset + MIRROR_DUR);
311}
312
313void InstascopeApp::resetSample()
314{

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
getCurrentTimeMethod · 0.45

Tested by

no test coverage detected