Athena IO Library
|
Public Member Functions | |
SpritePart (SpriteFrame *root) | |
SpritePart (SpriteFrame *root, const std::string &name, bool hasCollision=false) | |
void | setName (const std::string &name) |
std::string | name () const |
void | setCollision (bool col) |
bool | hasCollision () const |
void | setOffset (float x, float y) |
setOffset More... | |
void | setOffset (const Vector2Df &offset) |
setOffset More... | |
Vector2Df | offset () const |
offset More... | |
void | setTextureOffset (float x, float y) |
setTextureOffset More... | |
void | setTextureOffset (const Vector2Df &offset) |
setTextureOffset More... | |
Vector2Df | textureOffset () const |
textureOffset More... | |
void | setSize (atUint32 width, atUint32 height) |
setSize More... | |
void | setSize (const Vector2Di &size) |
setSize More... | |
Vector2Di | size () const |
size More... | |
void | setFlippedHorizontally (const bool val) |
setFlippedHorizontally More... | |
bool | flippedHorizontally () const |
flippedHorizontally More... | |
void | setFlippedVertically (const bool val) |
setFlippedVertically More... | |
bool | flippedVertically () const |
flippedVertically More... | |
void | setRoot (SpriteFrame *root) |
SpriteFrame * | root () const |
Definition at line 23 of file SpritePart.hpp.
bool athena::Sakura::SpritePart::flippedHorizontally | ( | ) | const |
flippedHorizontally
bool athena::Sakura::SpritePart::flippedVertically | ( | ) | const |
flippedVertically
Vector2Df athena::Sakura::SpritePart::offset | ( | ) | const |
offset
void athena::Sakura::SpritePart::setFlippedHorizontally | ( | const bool | val | ) |
setFlippedHorizontally
val |
void athena::Sakura::SpritePart::setFlippedVertically | ( | const bool | val | ) |
setFlippedVertically
val |
void athena::Sakura::SpritePart::setOffset | ( | float | x, |
float | y | ||
) |
setOffset
x | |
y |
void athena::Sakura::SpritePart::setOffset | ( | const Vector2Df & | offset | ) |
setOffset
offset |
void athena::Sakura::SpritePart::setSize | ( | atUint32 | width, |
atUint32 | height | ||
) |
setSize
width | |
height |
void athena::Sakura::SpritePart::setSize | ( | const Vector2Di & | size | ) |
setSize
size |
void athena::Sakura::SpritePart::setTextureOffset | ( | float | x, |
float | y | ||
) |
setTextureOffset
x | |
y |
void athena::Sakura::SpritePart::setTextureOffset | ( | const Vector2Df & | offset | ) |
setTextureOffset
texOff |
Vector2Di athena::Sakura::SpritePart::size | ( | ) | const |
size
Vector2Df athena::Sakura::SpritePart::textureOffset | ( | ) | const |
textureOffset