summaryrefslogtreecommitdiff
path: root/src/viewpoint.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2011-12-20 18:31:56 +0000
committerTim Redfern <tim@eclectronics.org>2011-12-20 18:31:56 +0000
commit084c8a9b85b853fa630d5a102cd102b45d543abf (patch)
tree7268fe74717c5140ca22649b9694e8591276a917 /src/viewpoint.h
parent5523988d1729fe5c2757e046636d219639ee6724 (diff)
building multiple views
Diffstat (limited to 'src/viewpoint.h')
-rw-r--r--src/viewpoint.h39
1 files changed, 39 insertions, 0 deletions
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;
+
+};