summaryrefslogtreecommitdiff
path: root/src/viewport.h
blob: 9d2b72c6c8ef9cb0e9b897876eac04a5def6def7 (plain)
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
34
35
36
37
38
#ifndef VIEWPORT_H
#define VIEWPORT_H

#include "ofMain.h"

class vpcontrol {
	public:
		vpcontrol(){
			fillgrey=false;
			fillgreyfreq=1.0f;
			xshift=0;
			yshift=0;
			fscale=1.0f;
		}
		bool fillgrey;
		float fillgreyfreq;
		int xshift,yshift;
		float fscale,scale;

};

class viewport
{
    public:
		viewport();
		viewport(int _w,int _h,int _ox,int _oy);
		virtual ~viewport();
	    void setup(int _w,int _h,int _ox,int _oy);
	    void drawport(vpcontrol &control);
		void draw(uint8_t brightness);
		ofFbo rb1,rb2;
    protected:
    private:
		int x,y,w,h,ox,oy;
		float seed;
};

#endif // VIEWPORT_H