diff options
Diffstat (limited to 'pattern.h')
-rw-r--r-- | pattern.h | 36 |
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 |