diff options
| author | Tim Redfern <tim@gray.(none)> | 2012-10-28 17:40:19 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@gray.(none)> | 2012-10-28 17:40:19 +0000 |
| commit | 796d647fd38f7cf01cb70bbb0700b75427e42d55 (patch) | |
| tree | 9022fe609a3db0e8f5d92bc179155a6f785707e0 /liveengineUnmapped/src/viewport.h | |
| parent | 1584507071a2aa4cb27801e980dce0e1843069a4 (diff) | |
starting to build kinect addition
Diffstat (limited to 'liveengineUnmapped/src/viewport.h')
| -rwxr-xr-x | liveengineUnmapped/src/viewport.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/liveengineUnmapped/src/viewport.h b/liveengineUnmapped/src/viewport.h new file mode 100755 index 0000000..6d8f4bb --- /dev/null +++ b/liveengineUnmapped/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 6
+#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);
+ virtual ~viewport();
+ ofFbo rb1,rb2;
+ float r;
+ protected:
+ private:
+ int x, y,w,h,ox,oy;
+
+};
+
+#endif // VIEWPORT_H
|
