summaryrefslogtreecommitdiff
path: root/oscReceiveExample/src
diff options
context:
space:
mode:
Diffstat (limited to 'oscReceiveExample/src')
-rw-r--r--oscReceiveExample/src/ofApp.cpp8
-rw-r--r--oscReceiveExample/src/ofApp.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/oscReceiveExample/src/ofApp.cpp b/oscReceiveExample/src/ofApp.cpp
index b7dbc8f..cd76ce5 100644
--- a/oscReceiveExample/src/ofApp.cpp
+++ b/oscReceiveExample/src/ofApp.cpp
@@ -27,6 +27,8 @@ void ofApp::setup(){
copy_polys=1000;
create_polys=0;
+ debug_level=NODEBUG;
+
ofSetFrameRate(60);
}
@@ -228,6 +230,12 @@ void ofApp::keyPressed(int key){
case '>':
create_polys+=10;
break;
+ case '[':
+ debug_level=max(NODEBUG,debug_level-1);
+ break;
+ case ']':
+ debug_level=min(SHOWALL,debug_level+1);
+ break;
}
}
diff --git a/oscReceiveExample/src/ofApp.h b/oscReceiveExample/src/ofApp.h
index bc91852..9f914f7 100644
--- a/oscReceiveExample/src/ofApp.h
+++ b/oscReceiveExample/src/ofApp.h
@@ -47,4 +47,6 @@ class ofApp : public ofBaseApp {
int copy_polys;
int create_polys;
+
+ line_debug_level debug_level;
};