diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-03-28 00:43:07 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-03-28 00:43:07 +0100 |
| commit | 11850d1ded455e135cfa42aa1598b89be9544807 (patch) | |
| tree | 7ee41d76618c4843c659c42ca2620d6ae1974689 /src/testApp.h | |
| parent | ec078a99e2924c1709242f981651409f7ae9e940 (diff) | |
for strongbow demo
Diffstat (limited to 'src/testApp.h')
| -rw-r--r-- | src/testApp.h | 28 |
1 files changed, 28 insertions, 0 deletions
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(); }; |
