summaryrefslogtreecommitdiff
path: root/rayhit/src/testApp.h
diff options
context:
space:
mode:
Diffstat (limited to 'rayhit/src/testApp.h')
-rw-r--r--rayhit/src/testApp.h37
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;
+
+};
+