From 77361abc13c02469d41af5d937adf517ac5326b9 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 27 Feb 2010 23:48:41 +0100 Subject: Added SDL_image based texture loader. --- pattern.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'pattern.h') diff --git a/pattern.h b/pattern.h index 3e28d97..75c91e3 100644 --- a/pattern.h +++ b/pattern.h @@ -7,10 +7,10 @@ class Pattern { private: - double patt_width; - double patt_center[2]; int patt_id; protected: + double patt_width; + double patt_center[2]; double patt_trans_kake[3][4]; public: @@ -21,16 +21,20 @@ class Pattern { virtual void draw() = 0; }; -class KakePattern : public Pattern { +class SpritePattern : public Pattern { private: - Texture* tex; public: - KakePattern(); + SpritePattern(Texture* _tex); protected: virtual void draw(); }; +class KakePattern : public SpritePattern { + public: + KakePattern(); +}; + #endif -- cgit v1.2.3