From 6cf8d516486c0b1eb8824f6f391d7191126f768f Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 17 Apr 2023 20:48:05 +0100 Subject: WIP --- nextus/src/ofApp.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'nextus') 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 "<