diff options
| author | Tim Redfern <tim@eclectronics.org> | 2015-04-12 22:20:30 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2015-04-12 22:20:30 +0100 |
| commit | 8c86c8e56d5948f44ba7524284824bbc6eff952b (patch) | |
| tree | 704dc88be2f22c69b4d16838092bc83cf692a75b /sunkenEngine/src/viewport.h | |
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..e28a347 --- /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 120
+#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
|
