diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-20 00:54:51 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-20 00:54:51 +0100 |
commit | 8a2b508eff6a9fc11c9e91316c8c3f8e9410848a (patch) | |
tree | 904eff225b63816a074e860008f139f4ab729934 /yage/base/spritesheet.h | |
parent | 8c5ea60da7f54b9ce574dfaca26bae67d775faa7 (diff) | |
download | YAGE-8a2b508eff6a9fc11c9e91316c8c3f8e9410848a.tar.gz YAGE-8a2b508eff6a9fc11c9e91316c8c3f8e9410848a.zip |
Working on SpriteSheet
Diffstat (limited to 'yage/base/spritesheet.h')
-rw-r--r-- | yage/base/spritesheet.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/yage/base/spritesheet.h b/yage/base/spritesheet.h index dbde07c0..763ad2d5 100644 --- a/yage/base/spritesheet.h +++ b/yage/base/spritesheet.h @@ -17,7 +17,7 @@ namespace yage { -namespace +namespace details { struct Coordinate { @@ -32,16 +32,18 @@ struct Coordinate { } }; -} // namespace +} // namespace details class SpriteSheet { public: SpriteSheet(std::string pngFileName, std::string jsonFileName); + void sprite(std::string spriteName) const; + private: Texture texture_; - std::map<std::string, Coordinate> fileLocations_; + std::map<std::string, details::Coordinate> fileLocations_; }; } // namespace yage |