Athena IO Library
athena::Sakura::SpriteFile Class Reference
Collaboration diagram for athena::Sakura::SpriteFile:
Collaboration graph

Public Member Functions

 SpriteFile ()
 SSprite.
 
 SpriteFile (atUint32 width, atUint32 height, float originX, float originY)
 SSpriteFile. More...
 
 SpriteFile (const Vector2Di &size, const Vector2Df &origin)
 SSpriteFile. More...
 
void setSize (atUint32 width, atUint32 height)
 setSize More...
 
void setSize (const Vector2Di &size)
 setSize More...
 
Vector2Di size () const
 size More...
 
atUint32 width () const
 width More...
 
atUint32 height () const
 height More...
 
void setOrigin (const float x, const float y)
 setOrigin More...
 
void setOrigin (const Vector2Df &origin)
 setOrigin More...
 
Vector2Df origin () const
 origin More...
 
float originX () const
 originX More...
 
float originY () const
 originY More...
 
bool addTexture (STexture *texture)
 addTexture More...
 
void removeTexture (int id)
 removeTexture More...
 
STexturetexture (atUint32 id)
 texture More...
 
std::vector< STexture * > textures () const
 
atUint32 textureCount () const
 
void setTextures (std::vector< STexture * > textures)
 setTextures More...
 
void addSprite (Sprite *sprite)
 
void removeSprite (const std::string &name)
 
void removeSprite (Sprite *sprite)
 
void setSprites (std::unordered_map< std::string, Sprite * > sprites)
 
Spritesprite (const std::string &name)
 
std::unordered_map< std::string, Sprite * > sprites () const
 
atUint32 spriteCount () const
 

Static Public Attributes

static const atUint32 Major
 Major.
 
static const atUint32 Minor
 Minor.
 
static const atUint32 Revision
 Revision.
 
static const atUint32 Build
 Patch.
 
static const atUint32 Version
 Version.
 
static const atUint32 Magic
 Magic.
 

Detailed Description

Definition at line 30 of file SpriteFile.hpp.

Constructor & Destructor Documentation

athena::Sakura::SpriteFile::SpriteFile ( atUint32  width,
atUint32  height,
float  originX,
float  originY 
)

SSpriteFile.

Parameters
width
height
originX
originY
athena::Sakura::SpriteFile::SpriteFile ( const Vector2Di size,
const Vector2Df origin 
)

SSpriteFile.

Parameters
size
origin

Member Function Documentation

bool athena::Sakura::SpriteFile::addTexture ( STexture texture)

addTexture

Parameters
texture
atUint32 athena::Sakura::SpriteFile::height ( ) const

height

Returns
Vector2Df athena::Sakura::SpriteFile::origin ( ) const

origin

Returns
float athena::Sakura::SpriteFile::originX ( ) const

originX

Returns
float athena::Sakura::SpriteFile::originY ( ) const

originY

Returns
void athena::Sakura::SpriteFile::removeTexture ( int  id)

removeTexture

Parameters
id
void athena::Sakura::SpriteFile::setOrigin ( const float  x,
const float  y 
)

setOrigin

Parameters
x
y
void athena::Sakura::SpriteFile::setOrigin ( const Vector2Df origin)

setOrigin

Parameters
origin
void athena::Sakura::SpriteFile::setSize ( atUint32  width,
atUint32  height 
)

setSize

Parameters
width
height
void athena::Sakura::SpriteFile::setSize ( const Vector2Di size)

setSize

Parameters
size
void athena::Sakura::SpriteFile::setTextures ( std::vector< STexture * >  textures)

setTextures

Parameters
textures
Vector2Di athena::Sakura::SpriteFile::size ( ) const

size

Returns
STexture* athena::Sakura::SpriteFile::texture ( atUint32  id)

texture

Parameters
id
Returns
atUint32 athena::Sakura::SpriteFile::width ( ) const

width

Returns

The documentation for this class was generated from the following file: