/* * 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(int ln,float w, float h, float x, float y); void begin(); void end(); void keyPressed(int key); void keyReleased(int key); void setLight(); ofFbo renderFBO; float distortFactor; private: ofRectangle window; double fov,aspect,near,far; ofCamera camera; ofNode target; keyVar* vars; int lightNum; GLfloat lightColour[]; GLfloat* getLightPosition; ofLight light; };