andrew@50: #ifndef _TEST_APP andrew@50: #define _TEST_APP andrew@50: andrew@50: // uncomment this for OF 007 compatibility andrew@50: //#define OFX_OPENNI_BETA andrew@50: andrew@50: #include "ofMain.h" andrew@50: #include "ofxOpenNI.h" andrew@50: #include "ofxOsc.h" andrew@50: andrew@50: #define HOST "localhost" andrew@50: #define PORT 12346 andrew@50: andrew@50: class testApp : public ofBaseApp{ andrew@50: andrew@50: public: andrew@50: void setup(); andrew@50: void update(); andrew@50: void draw(); andrew@50: andrew@50: void getCoordinates(int userID); andrew@50: void sendDataViaOSC(int userID); andrew@50: andrew@50: void keyPressed (int key); andrew@50: void keyReleased(int key); andrew@50: void mouseMoved(int x, int y ); andrew@50: void mouseDragged(int x, int y, int button); andrew@50: void mousePressed(int x, int y, int button); andrew@50: void mouseReleased(int x, int y, int button); andrew@50: void windowResized(int w, int h); andrew@50: ofxOpenNIContext context; andrew@50: ofxDepthGenerator depth; andrew@50: ofxUserGenerator user; andrew@50: ofxImageGenerator image; andrew@50: //ofImage Davy; andrew@50: andrew@50: ofImage anubis; andrew@50: bool drawIt; andrew@50: andrew@50: andrew@50: float torso[6][3];//x,y,and z of the head andrew@50: bool userPresent[6]; andrew@50: andrew@50: ofTrueTypeFont franklinBook; andrew@50: string outputString; andrew@50: ofxOscSender sender; andrew@50: andrew@50: }; andrew@50: #endif