diff options
Diffstat (limited to 'imgtest')
| -rw-r--r-- | imgtest/src/ofApp.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/imgtest/src/ofApp.cpp b/imgtest/src/ofApp.cpp index 3f33d8d..411c5c2 100644 --- a/imgtest/src/ofApp.cpp +++ b/imgtest/src/ofApp.cpp @@ -61,17 +61,19 @@ void ofApp::update(){ strm << "fps: " << ofGetFrameRate(); ofSetWindowTitle(strm.str()); + if (currentImage){ + if (currentImage->update()){ //if returns true, switch images + currentImage=currentImage->link; + currentImage->start(); + ofLogNotice() << "Switched images"; + currentFrame=0; + //viewpoint.resetTransform(); //or we get a glitch for no apparent reason, or not + currentImage->update(); + } + } + - if (currentImage->update()){ //if returns true, switch images - currentImage=currentImage->link; - currentImage->start(); - ofLogNotice() << "Switched images"; - currentFrame=0; - //viewpoint.resetTransform(); //or we get a glitch for no apparent reason, or not - currentImage->update(); - } - - //viewpoint misbehaves the first frame it is moved. + //viewpoint misbehaves the first frame it is moved? } |
