diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-27 23:48:41 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-27 23:48:41 +0100 |
commit | 77361abc13c02469d41af5d937adf517ac5326b9 (patch) | |
tree | 2d2fa8316867349413764dee21eade239fe8d8ce /pattern.h | |
parent | b353185ff989e2dd058284dc5b1a6d5d6197bcbd (diff) |
Added SDL_image based texture loader.
Diffstat (limited to 'pattern.h')
-rw-r--r-- | pattern.h | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -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 |