summaryrefslogtreecommitdiff
path: root/offsetProject/src/ofApp.h
blob: 67e1b71faf1b94f94d1d63b97e892c39c1c1a521 (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
#pragma once

#include "ofMain.h"
#include "ofxOpenCv.h"
#include "ofxKinect.h"

#define MIN_TILE_SIZE 4 //has to be a divisor of 320 and 240 as the tiles are centred
#define MAX_TILE_SIZE 32 //has to be a power of 2 * MIN_TILE_SIZE

#define MODE_COLOURTILES 0
#define MODE_DEPTH 1
#define MODE_COMPONENTS 2

#define NUM_MODES 3

#define IMAGE_STORE_SIZE 256


class ofApp : public ofBaseApp {
public:
	
	void setup();
	void update();
	void draw();
	void exit();
	
	void keyPressed(int key);
	void mouseDragged(int x, int y, int button);
	void mousePressed(int x, int y, int button);
	void mouseReleased(int x, int y, int button);
	void windowResized(int w, int h);


	int mode;

	bool fullscreen;
};