-
-
11 #ifndef YAGE_SPRITESHEET_H
-
12 #define YAGE_SPRITESHEET_H
-
-
-
-
20 #include <rapidjson/reader.h>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
45 typedef std::map<std::string, details::Coordinate>
SpriteMap;
-
-
-
-
-
-
-
52 SpriteSheet(std::string pngFileName, std::string jsonFileName);
-
-
54 void sprite(std::string spriteName)
const;
-
55 std::string
fileContent(std::string jsonFileName)
const;
-
-
-
-
-
-
-
62 std::string jsonContent)
const;
-
-
-
-
-
-
Definition: spritesheet.h:49
-
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:39
-
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:28
-
-
int x
Definition: spritesheet.h:32
-
-
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:45
-
Texture texture_
Definition: spritesheet.h:58
-
int width
Definition: spritesheet.h:34
-
void sprite(std::string spriteName) const
-
int height
Definition: spritesheet.h:35
-
-
Definition: spritesheet.h:31
-
int y
Definition: spritesheet.h:33
-
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:41
-
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:51
-
details::SpriteMap fileLocations_
Definition: spritesheet.h:59
-