#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofBackground(40, 100, 40); // open an outgoing connection to HOST:PORT sender.setup(HOST, PORT); imgAsBuffer = ofBufferFromFile("of-logo.png", true); } //-------------------------------------------------------------- void ofApp::update(){ } //-------------------------------------------------------------- void ofApp::draw(){ if(img.getWidth() > 0){ ofDrawBitmapString("Image:", 10, 160); img.draw(10, 180); } // display instructions string buf; buf = "sending osc messages to" + string(HOST) + ofToString(PORT); ofDrawBitmapString(buf, 10, 20); ofDrawBitmapString("move the mouse to send osc message [/mouse/position ]", 10, 50); ofDrawBitmapString("click to send osc message [/mouse/button