|
bool | loop = true |
| Should the Anim loop when it ends ?
|
|
Definition at line 35 of file Anim.hpp.
◆ Anim()
ns::Anim::Anim |
( |
std::string |
name, |
|
|
std::vector< AnimFrame > |
frames, |
|
|
bool |
loop = true |
|
) |
| |
Constructs an Anim object, describes one animation.
- Parameters
-
name | Animation name |
frames | Vector of AnimFrame objects |
loop | Should the Anim loop when it ends ? |
◆ add()
void ns::Anim::add |
( |
const AnimFrame & |
frame | ) |
|
◆ getFrame()
auto ns::Anim::getFrame |
( |
int |
index | ) |
const -> const AnimFrame & |
Get a specific frame in the Anim.
- Parameters
-
- Returns
- AnimFrame object at the given index
◆ getName()
auto ns::Anim::getName |
( |
| ) |
const -> const std::string & |
Get the name of the Anim.
- Returns
- Anim name
◆ size()
auto ns::Anim::size |
( |
| ) |
const -> int |
The documentation for this class was generated from the following file: