summaryrefslogtreecommitdiff
path: root/liveengine/src/viewport.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-09-15 17:38:00 +0100
committerTim Redfern <tim@eclectronics.org>2012-09-15 17:38:00 +0100
commit530bf6501e6f13ed3e91d4d0e2763613146774a2 (patch)
tree3bf4f0ba78842c4e6cb74dc0a62b154b64b890cf /liveengine/src/viewport.h
parent4fda3af17e55c0afff35b3f3ebbe5b4fd1ffad7e (diff)
performance 2.0
Diffstat (limited to 'liveengine/src/viewport.h')
-rwxr-xr-xliveengine/src/viewport.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/liveengine/src/viewport.h b/liveengine/src/viewport.h
new file mode 100755
index 0000000..5d990a0
--- /dev/null
+++ b/liveengine/src/viewport.h
@@ -0,0 +1,33 @@
+#ifndef VIEWPORT_H
+#define VIEWPORT_H
+
+#include "ofMain.h"
+#include "playlist.h"
+
+#define NUM_NOTES 64
+#define START_NOTE 36
+#define NUM_CONTROLLERS 6
+#define START_CONTROLLER 102
+
+#define NOTHING 0
+#define BLOCKS 1
+#define LIST 2
+
+
+
+class viewport
+{
+ public:
+ viewport();
+ void setup(int w,int h,int x, int y,float r,int _ox,int _oy);
+ void draw(float a,unsigned char* controllers,int xshift,int yshift,playlist &list,bool transparentBlack,int note,int mode,ofColor* controller_colours,bool controlColours,float scale,float fscale);
+ virtual ~viewport();
+ ofFbo rb1,rb2;
+ float r;
+ protected:
+ private:
+ int x, y,w,h,ox,oy;
+
+};
+
+#endif // VIEWPORT_H