summaryrefslogtreecommitdiff
path: root/pattern.h
blob: 75c91e3fa16e96b46ee87f63bae335da60a70cdb (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
#ifndef PATTERN_H
#define PATTERN_H

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

class Pattern {
	private:
		int patt_id;
	protected:
			double patt_width;
			double patt_center[2];
		double patt_trans_kake[3][4];
		
	public:
		Pattern(std::string filename);
		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