9 #ifndef TurtleBrains_SpriteSheet_hpp
10 #define TurtleBrains_SpriteSheet_hpp
12 #include <turtle_brains/graphics/tb_sprite.hpp>
13 #include <turtle_brains/graphics/tb_animated_sprite.hpp>
14 #include <turtle_brains/graphics/tb_texture_manager.hpp>
15 #include <turtle_brains/core/tb_string.hpp>
36 typedef std::map<tbCore::tbString, AnimationSequence> AnimationSequenceContainer;
107 typedef std::map<tbCore::tbString, SpriteFrame> SpriteFrameContainer;
108 typedef std::map<tbCore::tbString, AnimationSequenceContainer> SpriteAnimationSequences;
117 SpriteFrameContainer mSpriteFrames;
118 AnimationSequenceContainer mGlobalAnimationSequences;
119 SpriteAnimationSequences mSpriteAnimationSequences;
const AnimationSequenceContainer & GetAnimationSequencesForSprite(const tbCore::tbString &spriteName) const
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
const SpriteFrame & GetSpriteFrame(const tbCore::tbString &spriteName) const
Definition: tb_sprite.hpp:29
const TextureHandle & GetTextureHandle(void) const
void AddAnimationSequence(const tbCore::tbString &spriteName, const tbCore::tbString &animationName, const AnimationSequence &animationSequence)
void AddSpriteFrame(const tbCore::tbString &spriteName, const SpriteFrame &spriteFrame)
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
const AnimationSequence & GetAnimationSequence(const tbCore::tbString &animationName) const
TextureHandle InvalidTexture(void)
Definition: tb_animated_sprite.hpp:29
Definition: tb_sprite_sheet.hpp:33
void SetTextureHandle(const TextureHandle &textureHandle)
SpriteSheet(const TextureHandle &textureHandle=InvalidTexture())
std::string tbString
Definition: tb_string.hpp:335
bool AddGlobalAnimationSequencesToSprite(const tbCore::tbString &spriteName, const std::vector< tbCore::tbString > &animationNames)