From 9466244a852d6620edf671a89e1a7188248d5482 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Thu, 25 Feb 2010 23:31:04 +0100 Subject: Seperated Application and Pattern classes. --- pattern.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pattern.h (limited to 'pattern.h') 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 +#include "texture.h" +#include + +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 -- cgit v1.2.3