From 084c8a9b85b853fa630d5a102cd102b45d543abf Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Tue, 20 Dec 2011 18:31:56 +0000 Subject: building multiple views --- src/viewpoint.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/viewpoint.h (limited to 'src/viewpoint.h') diff --git a/src/viewpoint.h b/src/viewpoint.h new file mode 100644 index 0000000..c1a0985 --- /dev/null +++ b/src/viewpoint.h @@ -0,0 +1,39 @@ +/* + * viewpoint.h + * 3dnav + * + * Created by Tim Redfern on 20/12/2011. + * one projector's viewpoint + * + */ + +#include "ofMain.h" + +#include "mapUtils.h" +#include "keyVar.h" + +class viewpoint { + + public: + + void setup(float w, float h, float x, float y); + void begin(); + void end(); + void keyPressed(int key); + void keyReleased(int key); + + private: + + ofRectangle window; + + float distortFactor; + ofFbo renderFBO; + + double fov,aspect,near,far; + + ofCamera camera; + ofNode target; + + keyVar* vars; + +}; -- cgit v1.2.3