Mercurial > hg > movesynth
annotate of/testApp.h.orig @ 50:f4c6999ecfe9 tip
added the files on my computer that aren't aiff s> these shoudl be everything for the big bang fair 2011 - heresy, and tim's file's also here
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sat, 08 Oct 2011 22:12:49 +0100 |
parents | |
children |
rev | line source |
---|---|
andrew@50 | 1 #ifndef _TEST_APP |
andrew@50 | 2 #define _TEST_APP |
andrew@50 | 3 |
andrew@50 | 4 // uncomment this for OF 007 compatibility |
andrew@50 | 5 //#define OFX_OPENNI_BETA |
andrew@50 | 6 |
andrew@50 | 7 #include "ofMain.h" |
andrew@50 | 8 #include "ofxOpenNI.h" |
andrew@50 | 9 #include "ofxOsc.h" |
andrew@50 | 10 |
andrew@50 | 11 #define HOST "localhost" |
andrew@50 | 12 #define PORT 12346 |
andrew@50 | 13 |
andrew@50 | 14 class testApp : public ofBaseApp{ |
andrew@50 | 15 |
andrew@50 | 16 public: |
andrew@50 | 17 void setup(); |
andrew@50 | 18 void update(); |
andrew@50 | 19 void draw(); |
andrew@50 | 20 |
andrew@50 | 21 void getCoordinates(int userID); |
andrew@50 | 22 void sendDataViaOSC(int userID); |
andrew@50 | 23 |
andrew@50 | 24 void keyPressed (int key); |
andrew@50 | 25 void keyReleased(int key); |
andrew@50 | 26 void mouseMoved(int x, int y ); |
andrew@50 | 27 void mouseDragged(int x, int y, int button); |
andrew@50 | 28 void mousePressed(int x, int y, int button); |
andrew@50 | 29 void mouseReleased(int x, int y, int button); |
andrew@50 | 30 void windowResized(int w, int h); |
andrew@50 | 31 ofxOpenNIContext context; |
andrew@50 | 32 ofxDepthGenerator depth; |
andrew@50 | 33 ofxUserGenerator user; |
andrew@50 | 34 ofxImageGenerator image; |
andrew@50 | 35 //ofImage Davy; |
andrew@50 | 36 |
andrew@50 | 37 ofImage anubis; |
andrew@50 | 38 bool drawIt; |
andrew@50 | 39 |
andrew@50 | 40 |
andrew@50 | 41 float torso[6][3];//x,y,and z of the head |
andrew@50 | 42 bool userPresent[6]; |
andrew@50 | 43 |
andrew@50 | 44 ofTrueTypeFont franklinBook; |
andrew@50 | 45 string outputString; |
andrew@50 | 46 ofxOscSender sender; |
andrew@50 | 47 |
andrew@50 | 48 }; |
andrew@50 | 49 #endif |