Mercurial > hg > movesynth
diff of/testApp.h @ 31:e71aad40a068
slight modification oif how the update is done. Sending osc as per tim's specification.
Have added example anubis image that we can adapt.
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 18 Feb 2011 10:17:45 +0000 |
parents | 803b8f3b70b4 |
children | f7caff1c2fa6 |
line wrap: on
line diff
--- a/of/testApp.h Thu Feb 17 17:04:47 2011 +0000 +++ b/of/testApp.h Fri Feb 18 10:17:45 2011 +0000 @@ -6,6 +6,10 @@ #include "ofMain.h" #include "ofxOpenNI.h" +#include "ofxOsc.h" + +#define HOST "localhost" +#define PORT 12346 class testApp : public ofBaseApp{ @@ -14,7 +18,8 @@ void update(); void draw(); - void getCoordinates(ofxTrackedUser* tracked, int userID); + void getCoordinates(int userID); + void sendDataViaOSC(int userID); void keyPressed (int key); void keyReleased(int key); @@ -28,15 +33,22 @@ ofxUserGenerator user; ofxImageGenerator image; //ofImage Davy; + + ofImage anubis; bool drawIt; - int head[6][3];//x,y,and z of the head - + float torso[6][3];//x,y,and z of the head + bool userPresent[6]; + ofTrueTypeFont franklinBook; string outputString; + ofxOscSender sender; + + }; + #endif