aboutsummaryrefslogtreecommitdiffstats
path: root/yage/base/spritesheet.h
diff options
context:
space:
mode:
Diffstat (limited to 'yage/base/spritesheet.h')
-rw-r--r--yage/base/spritesheet.h3
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_;