diff options
Diffstat (limited to 'src/viewpoint.h')
| -rw-r--r-- | src/viewpoint.h | 39 |
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; + +}; |
