Raylib C++  1.0.0
Encapsulates the raylib library
Public Member Functions | List of all members
raylib::model::RlAnimation Class Reference

Animation class using multiple models. More...

#include <RlAnimation.hpp>

Collaboration diagram for raylib::model::RlAnimation:
Collaboration graph

Public Member Functions

 RlAnimation ()
 Default constructor. More...
 
 RlAnimation (const std::string &animationDir, const std::string &extension)
 Construct a new RlAnimation object. More...
 
void update ()
 Update the animation. More...
 
const std::vector< RlModel > & getAnimationModels () const
 get models of the animation More...
 
std::size_t getAnimationsSize () const
 Get the number of frames of the animation It's just a call to getAnimationModels().size() More...
 
const unsigned int & getFrame () const
 Get the frame. More...
 
const bool & isLoaded () const
 Check if the animations has been loaded. More...
 

Detailed Description

Animation class using multiple models.

Constructor & Destructor Documentation

◆ RlAnimation() [1/2]

raylib::model::RlAnimation::RlAnimation ( )
inline

Default constructor.

◆ RlAnimation() [2/2]

raylib::model::RlAnimation::RlAnimation ( const std::string &  animationDir,
const std::string &  extension 
)
explicit

Construct a new RlAnimation object.

Parameters
animationDirthe animation dir path
extensionthe extension of animation files
Exceptions
RlAnimationExceptionif the animation dir is not found
Here is the call graph for this function:

Member Function Documentation

◆ getAnimationModels()

const std::vector< raylib::model::RlModel > & raylib::model::RlAnimation::getAnimationModels ( ) const

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 ( )

Update the animation.


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