From 1369877fa5dfa46f54cc3ffc3d231e661505105c Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 12 Dec 2018 21:57:21 +0000 Subject: update oF --- oscReceiveExample/src/ofApp.cpp | 8 ++++++++ oscReceiveExample/src/ofApp.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'oscReceiveExample') 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; }; -- cgit v1.2.3