From e9e12efa3333f0f9e1b7baa84e8a8802733b13ac Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 21 Mar 2012 15:57:14 +0000 Subject: ofxRay confusion --- rayhit/src/testApp.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 rayhit/src/testApp.h (limited to 'rayhit/src/testApp.h') 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; + +}; + -- cgit v1.2.3