summaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-28 01:36:25 +0100
committerComment <tim@gray.(none)>2013-05-28 01:36:25 +0100
commit040eaa3babb648bea889f8c152b522a86e8c39d5 (patch)
treede9209f404b899828b3dda819152e307f3d09907 /src/viewport.h
initial commit
Diffstat (limited to 'src/viewport.h')
-rwxr-xr-xsrc/viewport.h38
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