From 040eaa3babb648bea889f8c152b522a86e8c39d5 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 28 May 2013 01:36:25 +0100 Subject: initial commit --- src/viewport.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 src/viewport.h (limited to 'src/viewport.h') diff --git a/src/viewport.h b/src/viewport.h new file mode 100755 index 0000000..9d2b72c --- /dev/null +++ b/src/viewport.h @@ -0,0 +1,38 @@ +#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 -- cgit v1.2.3