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