summaryrefslogtreecommitdiff
path: root/nextus/src/ofApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'nextus/src/ofApp.h')
-rw-r--r--nextus/src/ofApp.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/nextus/src/ofApp.h b/nextus/src/ofApp.h
index e2c90dd..e2aedb0 100644
--- a/nextus/src/ofApp.h
+++ b/nextus/src/ofApp.h
@@ -14,6 +14,19 @@
#include "lineSegmenter.h"
#include "vectorPlugin.h"
+class switcherPanel: public ofxPanel{
+ public:
+ switcherPanel(int x,int y){
+ setup("switcher","",x,y);
+ add(network.set("network",false));
+ add(svg.set("svg",true));
+ add(text.set("text",false));
+ }
+ ofParameter<bool> network;
+ ofParameter<bool> svg;
+ ofParameter<bool> text;
+};
+
class ofApp: public ofBaseApp, public ofxMidiListener {
public:
@@ -21,7 +34,8 @@ class ofApp: public ofBaseApp, public ofxMidiListener {
ofApp() :
networkinput("network",DISPLAYSIZE,ofPoint(5,5)),
svginput("svg",DISPLAYSIZE,ofPoint(210,5)),
- textinput("text",DISPLAYSIZE,ofPoint(415,5)) {}
+ textinput("text",DISPLAYSIZE,ofPoint(415,5)),
+ switcher(620,5) {}
void setup();
void update();
@@ -62,6 +76,8 @@ class ofApp: public ofBaseApp, public ofxMidiListener {
//======================================= //output
+ switcherPanel switcher;
+
ofxPONKSenderPanel madlaser;
};