Animation class using multiple models.
More...
#include <RlAnimation.hpp>
Animation class using multiple models.
◆ RlAnimation() [1/2]
| raylib::model::RlAnimation::RlAnimation |
( |
| ) |
|
|
inline |
◆ RlAnimation() [2/2]
| raylib::model::RlAnimation::RlAnimation |
( |
const std::string & |
animationDir, |
|
|
const std::string & |
extension |
|
) |
| |
|
explicit |
Construct a new RlAnimation object.
- Parameters
-
| animationDir | the animation dir path |
| extension | the extension of animation files |
- Exceptions
-
| RlAnimationException | if the animation dir is not found |
◆ getAnimationModels()
get models of the animation
- Returns
- a vector of models
◆ getAnimationsSize()
| std::size_t raylib::model::RlAnimation::getAnimationsSize |
( |
| ) |
const |
Get the number of frames of the animation It's just a call to getAnimationModels().size()
- Returns
- the number of frames
◆ getFrame()
| const unsigned int & raylib::model::RlAnimation::getFrame |
( |
| ) |
const |
Get the frame.
- Returns
- the frame
◆ isLoaded()
| const bool & raylib::model::RlAnimation::isLoaded |
( |
| ) |
const |
Check if the animations has been loaded.
- Returns
- true if the animations has been loaded
◆ update()
| void raylib::model::RlAnimation::update |
( |
| ) |
|
The documentation for this class was generated from the following files: