summaryrefslogtreecommitdiff
path: root/le_new/src/viewport.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-04-26 18:20:21 +0100
committerTim Redfern <tim@eclectronics.org>2014-04-26 18:20:21 +0100
commit6f74f80e4c116c61b4734ffbae86aff881daaf5b (patch)
treec0044aa2efefd53711cba63ed91860e265831703 /le_new/src/viewport.h
parentba9af7648a79b54836019ca792e40e81ca863c86 (diff)
started GLFW version
Diffstat (limited to 'le_new/src/viewport.h')
-rwxr-xr-xle_new/src/viewport.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/le_new/src/viewport.h b/le_new/src/viewport.h
new file mode 100755
index 0000000..310a7c2
--- /dev/null
+++ b/le_new/src/viewport.h
@@ -0,0 +1,34 @@
+#ifndef VIEWPORT_H
+#define VIEWPORT_H
+
+#include "ofMain.h"
+#include "playlist.h"
+
+#define NUM_NOTES 64
+#define START_NOTE 36
+#define NUM_CONTROLLERS 26
+#define START_CONTROLLER 102
+
+#define NOTHING 0
+#define BLOCKS 1
+#define LIST 2
+
+
+
+class viewport
+{
+ public:
+ viewport();
+ viewport(int _w,int _h,int _x,int _y,float _r,int _ox,int _oy);
+ 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,float colShift,int fadeBG);
+ virtual ~viewport();
+ ofFbo rb1,rb2;
+ float r;
+ protected:
+ private:
+ int x, y,w,h,ox,oy;
+
+};
+
+#endif // VIEWPORT_H