Encapsulation of the raylib ModelAnimation (iqm)
More...
#include <RlModelAnimation.hpp>
Encapsulation of the raylib ModelAnimation (iqm)
◆ RlModelAnimation()
| raylib::model::RlModelAnimation::RlModelAnimation |
( |
const RlModel & |
model, |
|
|
const std::string & |
fileName |
|
) |
| |
|
explicit |
Create a new RlModelAnimation (support only iqm)
- Parameters
-
| model | the model to animate |
| fileName | the file name of the animation |
◆ ~RlModelAnimation()
| raylib::model::RlModelAnimation::~RlModelAnimation |
( |
| ) |
|
Unload the model animation.
◆ animationIndexIsValid()
| bool raylib::model::RlModelAnimation::animationIndexIsValid |
( |
const unsigned int & |
animIndex | ) |
|
Check if the animation index is a valid index. Check model animation skeleton match.
- Parameters
-
| animIndex | the index to check |
- Returns
- true if the index is valid
◆ getCount()
| unsigned int raylib::model::RlModelAnimation::getCount |
( |
| ) |
const |
Get the number of animation.
- Returns
- the number of animation
◆ incrementFrameCount()
| void raylib::model::RlModelAnimation::incrementFrameCount |
( |
const int & |
value = 1 | ) |
|
Increment the frame counter of a specific value.
◆ unload()
| void raylib::model::RlModelAnimation::unload |
( |
const unsigned int & |
animIndex | ) |
|
Draw the animation.
- Parameters
-
| animIndex | the index of the animation to draw |
◆ update()
| void raylib::model::RlModelAnimation::update |
( |
const unsigned int & |
animIndex | ) |
|
The documentation for this class was generated from the following files: