summaryrefslogtreecommitdiff
path: root/pattern.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-27 23:48:41 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-27 23:48:41 +0100
commit77361abc13c02469d41af5d937adf517ac5326b9 (patch)
tree2d2fa8316867349413764dee21eade239fe8d8ce /pattern.h
parentb353185ff989e2dd058284dc5b1a6d5d6197bcbd (diff)
Added SDL_image based texture loader.
Diffstat (limited to 'pattern.h')
-rw-r--r--pattern.h14
1 files changed, 9 insertions, 5 deletions
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