diff options
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; }; |
