1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|