diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-04-01 23:07:39 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-04-01 23:07:39 +0100 |
| commit | 0363ee4f188c735a43c6624a2b10a191f74c3029 (patch) | |
| tree | b24e56926c4d7055767f98230b9a8da5b70baccf /gaunt01/src/testApp.h | |
| parent | 1b9e8ee051740c4b7f35ffc72648364192e35f59 (diff) | |
nearly working trap door
Diffstat (limited to 'gaunt01/src/testApp.h')
| -rw-r--r-- | gaunt01/src/testApp.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/gaunt01/src/testApp.h b/gaunt01/src/testApp.h index b08682c..2870008 100644 --- a/gaunt01/src/testApp.h +++ b/gaunt01/src/testApp.h @@ -12,6 +12,10 @@ //#define _USE_LIVE_VIDEO // uncomment this to use a live camera // otherwise, we'll use a movie file +#define PLAY 0 +#define CALIBRATE 1 + + class testApp : public ofBaseApp{ public: @@ -29,15 +33,20 @@ class testApp : public ofBaseApp{ void dragEvent(ofDragInfo dragInfo); void gotMessage(ofMessage msg); + int mode; + + ofVec2f screen2plane(ofVec2f screenpos); + ofVec3f plane2world(ofVec2f planepos); + void updatePlane(); + ofxXmlSettings XML; void loadSettings(string filename); void saveSettings(string filename); - #ifdef _USE_LIVE_VIDEO - ofVideoGrabber vidGrabber; - #else - ofVideoPlayer vidPlayer; - #endif + bool useCamera; + bool hasCamera; + ofVideoGrabber vidGrabber; + ofVideoPlayer vidPlayer; ofxCvColorImage colorImg; @@ -58,10 +67,11 @@ class testApp : public ofBaseApp{ ofPlane plane; ofProjector projector; - ofVec3f pos; + ofVec2f pos; vector<ofVec3f> players; trapdoor trapDoor; + ofMesh ground; }; |
