summaryrefslogtreecommitdiff
path: root/pattern.h
blob: cc32ebc1c3101cc026a4ede62f97599dadda9d8b (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
39
40
41
#ifndef PATTERN_H
#define PATTERN_H

#include <string>
#include "texture.h"
#include <AR/ar.h>

class Pattern {
	private:
	protected:
			int patt_id;
			
			double patt_width;
			double patt_center[2];
		double patt_trans_kake[4][4];
		
	public:
		Pattern(std::string filename);
		virtual void update(ARMarkerInfo* marker_info, int marker_num);
		
	protected:
		virtual void draw() = 0;
};

class SpritePattern : public Pattern {
	private:
		Texture* tex;
		
	public:
		SpritePattern(Texture* _tex);
		
	protected:
		virtual void draw();
};

class KakePattern : public SpritePattern {
	public:
		KakePattern();
};

#endif