From 11850d1ded455e135cfa42aa1598b89be9544807 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 28 Mar 2012 00:43:07 +0100 Subject: for strongbow demo --- src/testApp.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/testApp.h') diff --git a/src/testApp.h b/src/testApp.h index 293b6fd..1bf2d7b 100644 --- a/src/testApp.h +++ b/src/testApp.h @@ -34,6 +34,14 @@ have to track how many frames each key has been pressed for #include "mapUtils.h" #include "viewpoint.h" +#define OF_ADDON_USING_OFXAVAHI + +//#include "ofxAvahiCoreBrowser.h" +#include "ofxAvahiClient.h" + +#include "ofxOsc.h" +#include "ofxNetwork.h" + class testApp : public ofBaseApp{ public: @@ -57,6 +65,9 @@ class testApp : public ofBaseApp{ void doTransition(); float transTime; bool transition; + + void prevMovie(); + void nextMovie(); string model_name; float model_x; @@ -95,5 +106,22 @@ class testApp : public ofBaseApp{ ofArduino ard; bool bSetupArduino; // flag variable for setting up arduino once int bSwitchArduino; + + //----------------avahi stuff + + ofxAvahiClientService avahiService; + + ofxTCPClient tcpClient; + ofxOscReceiver oscReceiver; + + void SendInterface(std::string targetIP, std::string interfaceString); + + bool hasWaitingMessages(){ + return oscReceiver.hasWaitingMessages(); + } + void getNextMessage(ofxOscMessage* m){ + oscReceiver.getNextMessage(m); + } + void ProcessMessages(); }; -- cgit v1.2.3