|
| SpriteSheet (const sf::Texture &texture) |
|
| SpriteSheet (const sf::Texture &texture, const std::vector< Anim *> &anims) |
| Constructs a Spritesheet object. More...
|
|
| ~SpriteSheet () |
| Delete all the Anim objects of this Spritesheet.
|
|
void | setTexture (const sf::Texture &texture) |
|
auto | getTexture () const -> const sf::Texture * |
|
void | setGrid (const sf::Vector2i &cell_size, int columns_nb, int margin=0, int spacing=0) |
|
void | addAnim (Anim *new_anim) |
|
void | addAnim (const std::string &anim_name, unsigned int first_frame, unsigned int nb_of_frames, int duration, const sf::Vector2i &origin={0, 0}) |
|
void | addAnim (const std::string &anim_name, unsigned int first_frame, unsigned int nb_of_frames, int duration, const std::vector< sf::Vector2i > &origins) |
|
void | addAnim (const std::string &anim_name, unsigned int first_frame, unsigned int nb_of_frames, const std::vector< int > &durations, const sf::Vector2i &origin={0, 0}) |
|
void | addAnim (const std::string &anim_name, unsigned int first_frame, unsigned int nb_of_frames, const std::vector< int > &durations, const std::vector< sf::Vector2i > &origins) |
|
void | addAnim (const std::string &anim_name, const std::vector< unsigned int > &frames, int duration, const sf::Vector2i &origin={0, 0}) |
|
void | addAnim (const std::string &anim_name, const std::vector< unsigned int > &frames, int duration, const std::vector< sf::Vector2i > &origins) |
|
void | addAnim (const std::string &anim_name, const std::vector< unsigned int > &frames, const std::vector< int > &durations, const sf::Vector2i &origin={0, 0}) |
|
void | addAnim (const std::string &anim_name, const std::vector< unsigned int > &frames, const std::vector< int > &durations, const std::vector< sf::Vector2i > &origins) |
|
auto | getAnimsMap () -> const std::unordered_map< std::string, Anim *> & |
| Get a map containing all the Anim objects. More...
|
|
auto | getAnim (const std::string &anim_name) -> const Anim & |
| Get an Anim by its name. More...
|
|
Definition at line 19 of file SpriteSheet.hpp.