summaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/sprite.h b/sprite.h
index b5d9e7d..a40b641 100644
--- a/sprite.h
+++ b/sprite.h
@@ -4,11 +4,13 @@
class Sprite{
-public:
- const unsigned char *image;
- unsigned int image_len;
sf::Texture sf_texture;
+
+public:
sf::Sprite sf_sprite;
Sprite(const unsigned char *image,unsigned int image_len);
+
+ int width() const;
+ int height() const;
};