diff options
Diffstat (limited to 'src/viewport.h')
| -rwxr-xr-x | src/viewport.h | 38 |
1 files changed, 38 insertions, 0 deletions
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
|
