YAGE  v0.3.1
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
yage::SpriteSheet Class Reference

#include <spritesheet.h>

Public Member Functions

 SpriteSheet (std::string pngFileName, std::string jsonFileName)
 
void sprite (std::string spriteName) const
 
std::string fileContent (std::string jsonFileName) const
 

Private Member Functions

details::SpriteMap parseJson (int &width, int &height, std::string jsonContent) const
 

Private Attributes

Texture texture_
 
details::SpriteMap fileLocations_
 

Constructor & Destructor Documentation

yage::SpriteSheet::SpriteSheet ( std::string  pngFileName,
std::string  jsonFileName 
)

Member Function Documentation

string yage::SpriteSheet::fileContent ( std::string  jsonFileName) const
SpriteMap yage::SpriteSheet::parseJson ( int &  width,
int &  height,
std::string  jsonContent 
) const
private
void yage::SpriteSheet::sprite ( std::string  spriteName) const

Member Data Documentation

details::SpriteMap yage::SpriteSheet::fileLocations_
private
Texture yage::SpriteSheet::texture_
private

The documentation for this class was generated from the following files: