diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-25 17:46:30 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-25 17:46:30 +0100 |
commit | 5e6067f74e7ac072656f11ead0f22ec7f8e9c525 (patch) | |
tree | ca9e3758832d68ea1d9cf531c48d1962532d8dfa /yage/base/spritesheet.h | |
parent | 619746d51e91f02e7c5327f0c65ebb5952632bc7 (diff) | |
download | YAGE-5e6067f74e7ac072656f11ead0f22ec7f8e9c525.tar.gz YAGE-5e6067f74e7ac072656f11ead0f22ec7f8e9c525.zip |
Testing spritesheet
Diffstat (limited to 'yage/base/spritesheet.h')
-rw-r--r-- | yage/base/spritesheet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yage/base/spritesheet.h b/yage/base/spritesheet.h index bc60f8b9..3dca6b57 100644 --- a/yage/base/spritesheet.h +++ b/yage/base/spritesheet.h @@ -58,6 +58,8 @@ public: bool EndArray(rapidjson::SizeType memberCount); SpriteMap spriteMap() const; + int imageWidth() const; + int imageHeight() const; private: std::string current_key_; @@ -79,6 +81,7 @@ public: SpriteSheet(std::string pngFileName, std::string jsonFileName); void sprite(std::string spriteName) const; + std::string fileContent(std::string jsonFileName) const; private: Texture texture_; |