summaryrefslogtreecommitdiff
path: root/liveengine/src/viewport.h
diff options
context:
space:
mode:
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