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

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

class Pattern {
	private:
		double patt_width;
		double patt_center[2];
		int patt_id;
	protected:
		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 KakePattern : public Pattern {
	private:
		
		Texture* tex;
		
	public:
		KakePattern();
		
	protected:
		virtual void draw();
};

#endif