summaryrefslogtreecommitdiff
path: root/futuregael/src/ofApp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'futuregael/src/ofApp.cpp')
-rw-r--r--futuregael/src/ofApp.cpp21
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();