9 #ifndef TurtleBrains_SpriteMap_hpp
10 #define TurtleBrains_SpriteMap_hpp
12 #include <turtle_brains/graphics/tb_sprite.hpp>
Definition: tb_vector.hpp:48
PixelSpace GetFrameHeight(void) const
SpriteFrame GetSpriteFrameAtIndex(const size_t &frameIndex) const
Give the GameScene and Entities something to display, Text, Sprites and AnimatedSprites help bring th...
TextureHandle GetTextureHandle(void) const
size_t GetIndexCount(void) const
Definition: tb_sprite.hpp:29
uint16_t uint16
Unsigned integer with a size of 16 bits. Supports values from 0 to 65535.
Definition: tb_types.hpp:26
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
static Vector2 Zero(void)
Definition: tb_vector.hpp:54
PixelSpace GetFrameWidth(void) const
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.hpp:36
void RenderSpritesByIndex(const tbCore::uint16 *const spriteArray, const size_t &columnCount, const size_t &rowCount, const tbMath::Vector2 &position=tbMath::Vector2::Zero()) const
Definition: tb_sprite_map.hpp:23
SpriteMap(const TextureHandle &textureHandle, const PixelSpace &frameWidth, const PixelSpace &frameHeight, const PixelSpace &spacingX=0, const PixelSpace &spacingY=0, const PixelSpace &offsetX=0, const PixelSpace &offsetY=0)
SpriteFrame GetSpriteFrameAtLocation(const size_t &frameColumn, const size_t &frameRow) const
size_t GetColumnCount(void) const
size_t GetRowCount(void) const