9 #ifndef TurtleBrains_SpriteManager_hpp
10 #define TurtleBrains_SpriteManager_hpp
12 #include <turtle_brains/graphics/tb_sprite.hpp>
13 #include <turtle_brains/graphics/tb_animated_sprite.hpp>
14 #include <turtle_brains/graphics/tb_sprite_sheet.hpp>
15 #include <turtle_brains/core/tb_noncopyable.hpp>
16 #include <turtle_brains/core/tb_string.hpp>
24 namespace Core {
class DynamicStructure; }
189 bool LoadAnimationSequence(
SpriteSheet& spriteSheet, std::vector<tbCore::tbString>& globalAnimationNames,
191 bool LoadAllSpriteMaps(
const tbCore::DynamicStructure& spriteSheetData, std::map<tbCore::tbString, SpriteMap>& spriteMaps,
192 const tbImplementation::LoadingSheetInformation& loadingInfo);
195 typedef std::map<tbCore::tbString, SpriteSheet> SpriteSheetContainer;
196 SpriteSheetContainer mSpriteSheets;
TextureHandle GetSpriteSheetTextureHandle(const tbCore::tbString &spriteSheetName) const
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
Definition: tb_sprite.hpp:29
Definition: tb_sprite_manager.hpp:33
AnimatedSprite GetAnimatedSprite(const tbCore::tbString &spriteSheetName, const tbCore::tbString &spriteName) const
Definition: tb_noncopyable.hpp:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
SpriteFrame GetSpriteFrame(const tbCore::tbString &spriteSheetName, const tbCore::tbString &spriteName) const
bool AddSpriteSheet(const tbCore::tbString &spriteSheetName, const SpriteSheet &spriteSheet)
Sprite GetSprite(const tbCore::tbString &spriteSheetName, const tbCore::tbString &spriteName) const
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.hpp:36
Definition: tb_dynamic_structure.hpp:37
void AddAnimationSequences(const tbCore::tbString &spriteSheetName, const tbCore::tbString &spriteName, AnimatedSprite &animatedSprite) const
Definition: tb_sprite_sheet.hpp:33
bool LoadSpriteSheetFromFile(const tbCore::tbString &spriteSheetName, const tbCore::tbString &spriteSheetFile)
std::string tbString
Definition: tb_string.hpp:335
SpriteManager theSpriteManager
Definition: tb_application_dialog.hpp:19
Definition: tb_animated_sprite.hpp:119
Definition: tb_sprite.hpp:136
Sprite GetSpriteFromFile(const tbCore::tbString &textureFile, const PixelSpace &frameX=0, const PixelSpace &frameY=0, const PixelSpace &frameWidth=0, const PixelSpace &frameHeight=0) const