diff options
| author | Tim Redfern <tim@eclectronics.org> | 2015-03-29 22:33:39 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2015-03-29 22:33:39 +0100 |
| commit | a28770084787abd086c30b0ed4483fe22c19dca4 (patch) | |
| tree | ee798bc2a464181ddf37999118420164d207f131 /sunkenEngine/src/viewport.h | |
| parent | 1aef8df9feeff8c76411bb4f4faa2e51d3ee252e (diff) | |
working for parlour OSX
Diffstat (limited to 'sunkenEngine/src/viewport.h')
| -rwxr-xr-x | sunkenEngine/src/viewport.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sunkenEngine/src/viewport.h b/sunkenEngine/src/viewport.h new file mode 100755 index 0000000..310a7c2 --- /dev/null +++ b/sunkenEngine/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
|
