summaryrefslogtreecommitdiff
path: root/pattern.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-25 23:31:04 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-25 23:31:04 +0100
commit9466244a852d6620edf671a89e1a7188248d5482 (patch)
treebe430891aab9d34e0949397100cba8e7e428e621 /pattern.h
parent640407faa55a6cc1e071d5a09424c8a6ab4d6507 (diff)
Seperated Application and Pattern classes.
Diffstat (limited to 'pattern.h')
-rw-r--r--pattern.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/pattern.h b/pattern.h
new file mode 100644
index 0000000..3e28d97
--- /dev/null
+++ b/pattern.h
@@ -0,0 +1,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