annotate of/testApp.h @ 17:803b8f3b70b4
have added printing of the head data - you will NEED TO PUT the franklin font into ->bin->data for this to work - this is also include here in of
author |
Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
date |
Thu, 17 Feb 2011 17:03:39 +0000 |
parents |
36e3faa5e9d4 |
children |
7b6dfc67d51e e71aad40a068 |
rev |
line source |
rebecca@13
|
1 #ifndef _TEST_APP
|
rebecca@13
|
2 #define _TEST_APP
|
rebecca@13
|
3
|
rebecca@13
|
4 // uncomment this for OF 007 compatibility
|
rebecca@13
|
5 //#define OFX_OPENNI_BETA
|
rebecca@13
|
6
|
rebecca@13
|
7 #include "ofMain.h"
|
rebecca@13
|
8 #include "ofxOpenNI.h"
|
rebecca@13
|
9
|
rebecca@13
|
10 class testApp : public ofBaseApp{
|
rebecca@13
|
11
|
rebecca@13
|
12 public:
|
rebecca@13
|
13 void setup();
|
rebecca@13
|
14 void update();
|
rebecca@13
|
15 void draw();
|
rebecca@13
|
16
|
andrew@17
|
17 void getCoordinates(ofxTrackedUser* tracked, int userID);
|
andrew@17
|
18
|
rebecca@13
|
19 void keyPressed (int key);
|
rebecca@13
|
20 void keyReleased(int key);
|
rebecca@13
|
21 void mouseMoved(int x, int y );
|
rebecca@13
|
22 void mouseDragged(int x, int y, int button);
|
rebecca@13
|
23 void mousePressed(int x, int y, int button);
|
rebecca@13
|
24 void mouseReleased(int x, int y, int button);
|
rebecca@13
|
25 void windowResized(int w, int h);
|
rebecca@13
|
26 ofxOpenNIContext context;
|
rebecca@13
|
27 ofxDepthGenerator depth;
|
rebecca@13
|
28 ofxUserGenerator user;
|
rebecca@13
|
29 ofxImageGenerator image;
|
rebecca@13
|
30 //ofImage Davy;
|
rebecca@13
|
31 bool drawIt;
|
andrew@17
|
32
|
andrew@17
|
33 int head[6][3];//x,y,and z of the head
|
andrew@17
|
34
|
andrew@17
|
35 ofTrueTypeFont franklinBook;
|
andrew@17
|
36 string outputString;
|
rebecca@13
|
37 };
|
rebecca@13
|
38
|
andrew@17
|
39
|
andrew@17
|
40
|
andrew@17
|
41
|
rebecca@13
|
42 #endif
|