diff options
| author | Tim Redfern <tim@getdrop.com> | 2023-04-17 19:44:00 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2023-04-17 19:44:00 +0100 |
| commit | 19be92e0aff674b95bdae72fe7a2e409fd1bf77a (patch) | |
| tree | 079acfc11ffbff8f11b120649f5cb3a623e354d6 /nextus/src/ofApp.cpp | |
| parent | 5309ef89393aa56083d1c2238c517c3d576907ec (diff) | |
add to archive
Diffstat (limited to 'nextus/src/ofApp.cpp')
| -rw-r--r-- | nextus/src/ofApp.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/nextus/src/ofApp.cpp b/nextus/src/ofApp.cpp index 71ece45..0db8149 100644 --- a/nextus/src/ofApp.cpp +++ b/nextus/src/ofApp.cpp @@ -58,8 +58,9 @@ void ofApp::update(){ void ofApp::draw(){ ofBackground(0); - ofSetColor(255); - ofNoFill(); + networkinput.draw(); + svginput.draw(); + textinput.draw(); } @@ -147,8 +148,13 @@ void ofApp::windowResized(int w, int h){ //-------------------------------------------------------------- void ofApp::dragEvent(ofDragInfo dragInfo){ - - + string filename= *dragInfo.files.begin(); + string extension= filename.substr(filename.find_last_of(".") + 1); + if (extension == "svg") { + ofLog()<<"loading SVG "<<filename; + } else { + ofLog()<<"cannot load "<<filename; + } } |
