diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-09-20 08:35:26 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-09-20 08:35:26 +0100 |
| commit | 5c59ea6a5797bb44a46846008ddc235c8a5537af (patch) | |
| tree | 2bfeb2af3c016bd51ce35ac1e606b4f6ed0769ac /futuregael/src/ofApp.cpp | |
| parent | c02378a381cbb23ba56099a33fab38686c8d2b5b (diff) | |
basic playback
Diffstat (limited to 'futuregael/src/ofApp.cpp')
| -rw-r--r-- | futuregael/src/ofApp.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/futuregael/src/ofApp.cpp b/futuregael/src/ofApp.cpp index 2393618..676b480 100644 --- a/futuregael/src/ofApp.cpp +++ b/futuregael/src/ofApp.cpp @@ -22,6 +22,25 @@ void ofApp::update(){ void ofApp::draw(){ ofBackground(0); + + + if (show.isPlaying()){ + vector<colourPolyline>& outlines=show.getOutlines(); + + ofPushMatrix(); + ofTranslate(ofGetWidth()/2,ofGetHeight()/2); + for (auto o:outlines){ + o.draw(); + } + ofPopMatrix(); + + ofSetWindowTitle(ofToString(ofGetFrameRate(), 2)+"fps, shapes: "+ofToString(outlines.size())); + } + else { + ofSetWindowTitle("idle"); + } + + } @@ -52,7 +71,7 @@ void ofApp::keyReleased(int key){ break; } case ' ':{ - if (show.isPlaying){ + if (show.isPlaying()){ show.stop(); } else show.play(); |
