diff options
| author | Tim Redfern <tim@getdrop.com> | 2023-04-17 20:48:05 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2023-04-17 20:48:05 +0100 |
| commit | 6cf8d516486c0b1eb8824f6f391d7191126f768f (patch) | |
| tree | c6543c77cb467d729bb63ebb02fc89c147b57e11 /nextus/src | |
| parent | 6bc87ce4acd393071a4c8a43499be7978528e3eb (diff) | |
WIP
Diffstat (limited to 'nextus/src')
| -rw-r--r-- | nextus/src/ofApp.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/nextus/src/ofApp.h b/nextus/src/ofApp.h index 6312cfb..dd7b57d 100644 --- a/nextus/src/ofApp.h +++ b/nextus/src/ofApp.h @@ -34,8 +34,13 @@ class vectorPanel { ofNoFill(); ofDrawRectangle(0,0,size.x,size.y); panel.draw(); + ofPushMatrix(); + ofTranslate(size/2); + drawcontent(); + ofPopMatrix(); ofPopMatrix(); } + virtual void drawcontent(); private: ofVec2f size; @@ -52,9 +57,16 @@ class svgPanel: public vectorPanel{ ) : vectorPanel(_title,_size,_pos){} void load(string filename){ ofLog()<<"loading SVG "<<filename; + svg.load(filename); + + //gui code contains segmenters + } + void drawcontent(){ + svg.draw(); } private: + ofxSVG svg; }; class ofApp: public ofBaseApp, public ofxMidiListener { @@ -99,8 +111,8 @@ class ofApp: public ofBaseApp, public ofxMidiListener { //======================================= //inputs - vectorPanel networkinput; + svgPanel networkinput; svgPanel svginput; - vectorPanel textinput; + svgPanel textinput; }; |
