9 #ifndef _TurtleBrains_SpriteSheet_h_
10 #define _TurtleBrains_SpriteSheet_h_
12 #include "tb_sprite.h"
13 #include "tb_animated_sprite.h"
14 #include "tb_texture_manager.h"
15 #include "../core/tb_string.h"
36 typedef std::map<tbCore::tbString, AnimationSequence> AnimationSequenceContainer;
109 typedef std::map<tbCore::tbString, SpriteFrame> SpriteFrameContainer;
110 typedef std::map<tbCore::tbString, AnimationSequenceContainer> SpriteAnimationSequences;
119 SpriteFrameContainer mSpriteFrames;
120 AnimationSequenceContainer mGlobalAnimationSequences;
121 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...
SpriteSheet(const TextureHandle &textureHandle=kInvalidTexture)
const SpriteFrame & GetSpriteFrame(const tbCore::tbString &spriteName) const
Definition: tb_sprite.h:29
void AddAnimationSequence(const tbCore::tbString &animationName, const AnimationSequence &animationSequence)
const TextureHandle & GetTextureHandle(void) const
void AddSpriteFrame(const tbCore::tbString &spriteName, const SpriteFrame &spriteFrame)
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
const AnimationSequence & GetAnimationSequence(const tbCore::tbString &animationName) const
Definition: tb_animated_sprite.h:29
tbCore::uint32 TextureHandle
Definition: tb_texture_manager.h:43
const TextureHandle kInvalidTexture
Definition: tb_sprite_sheet.h:33
void SetTextureHandle(const TextureHandle &textureHandle)
std::string tbString
Definition: tb_string.h:335
bool AddGlobalAnimationSequencesToSprite(const tbCore::tbString &spriteName, const std::vector< tbCore::tbString > &animationNames)