diff options
| author | Tim Redfern <tim@eclectronics.org> | 2012-03-21 15:57:14 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2012-03-21 15:57:14 +0000 |
| commit | e9e12efa3333f0f9e1b7baa84e8a8802733b13ac (patch) | |
| tree | 65971ec2698184ca436807a80d860a6e9ac3e048 /rayhit/src/testApp.h | |
| parent | 4f0fe0e5dd669f1fe65d9c9c17b8a546054a8717 (diff) | |
ofxRay confusion
Diffstat (limited to 'rayhit/src/testApp.h')
| -rw-r--r-- | rayhit/src/testApp.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/rayhit/src/testApp.h b/rayhit/src/testApp.h new file mode 100644 index 0000000..e5a035d --- /dev/null +++ b/rayhit/src/testApp.h @@ -0,0 +1,37 @@ +#pragma once + +#include "ofMain.h" + +#include "ofxOpenCv.h" +#include "ofxRay.h" + +//#define _USE_LIVE_VIDEO // uncomment this to use a live camera + // otherwise, we'll use a movie file + +class testApp : public ofBaseApp{ + + public: + void setup(); + void update(); + void draw(); + + void keyPressed(int key); + void keyReleased(int key); + void mouseMoved(int x, int y ); + void mouseDragged(int x, int y, int button); + void mousePressed(int x, int y, int button); + void mouseReleased(int x, int y, int button); + void windowResized(int w, int h); + void dragEvent(ofDragInfo dragInfo); + void gotMessage(ofMessage msg); + + float cam_angle; + + ofRay ray; + ofPlane plane; + ofProjector projector; + + ofVec3f pos; + +}; + |
