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

Encapsulation of the raylib ModelAnimation (iqm) More...

#include <RlModelAnimation.hpp>

Collaboration diagram for raylib::model::RlModelAnimation:
Collaboration graph

Public Member Functions

 RlModelAnimation (const RlModel &model, const std::string &fileName)
 Create a new RlModelAnimation (support only iqm) More...
 
 ~RlModelAnimation ()
 Unload the model animation. More...
 
void update (const unsigned int &animIndex)
 Update the animation. More...
 
void unload (const unsigned int &animIndex)
 Draw the animation. More...
 
bool animationIndexIsValid (const unsigned int &animIndex)
 Check if the animation index is a valid index. Check model animation skeleton match. More...
 
unsigned int getCount () const
 Get the number of animation. More...
 
void incrementFrameCount (const int &value=1)
 Increment the frame counter of a specific value. More...
 

Detailed Description

Encapsulation of the raylib ModelAnimation (iqm)

Constructor & Destructor Documentation

◆ RlModelAnimation()

raylib::model::RlModelAnimation::RlModelAnimation ( const RlModel model,
const std::string &  fileName 
)
explicit

Create a new RlModelAnimation (support only iqm)

Parameters
modelthe model to animate
fileNamethe file name of the animation

◆ ~RlModelAnimation()

raylib::model::RlModelAnimation::~RlModelAnimation ( )

Unload the model animation.

Member Function Documentation

◆ 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
animIndexthe 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
animIndexthe index of the animation to draw

◆ update()

void raylib::model::RlModelAnimation::update ( const unsigned int &  animIndex)

Update the animation.

Parameters
animIndexthe index of the animation to update
Warning
the frameCount need to be incremented manually using incrementFrameCount()
See also
incrementFrameCount()

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