#ifndef VIEWPORT_H #define VIEWPORT_H #include "ofMain.h" class vpcontrol { public: vpcontrol(){ fillgrey=false; fillgreyfreq=1.0f; xshift=0; yshift=0; fscale=1.0f; } bool fillgrey; float fillgreyfreq; int xshift,yshift; float fscale,scale; }; class viewport { public: viewport(); viewport(int _w,int _h,int _ox,int _oy); virtual ~viewport(); void setup(int _w,int _h,int _ox,int _oy); void drawport(vpcontrol &control); void draw(uint8_t brightness); ofFbo rb1,rb2; protected: private: int x,y,w,h,ox,oy; float seed; }; #endif // VIEWPORT_H