summaryrefslogtreecommitdiff
path: root/nextus/src/ofApp.h
diff options
context:
space:
mode:
authorTim Redfern <tim@getdrop.com>2023-04-23 23:22:38 +0100
committerTim Redfern <tim@getdrop.com>2023-04-23 23:22:38 +0100
commit9e0236016f5d6afd3a73edad183dfb2b02387e98 (patch)
tree5589b5010a1de6eed1650493e812179b84e6e3c6 /nextus/src/ofApp.h
parentcdb92d8c8532a287b752a92f1cf0cbf88d52c117 (diff)
many fixes for Nextus show at the complex April 22 2023
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;
};