raylib-cpp
C++ object-oriented wrapper library for raylib.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
raylib::ModelAnimation Class Reference

Model animation. More...

Public Member Functions

 ModelAnimation (const ::ModelAnimation &model)
 
 ModelAnimation (const ModelAnimation &)=delete
 
 ModelAnimation (ModelAnimation &&other)
 
int GetBoneCount () const
 Retrieves the boneCount value for the object. More...
 
::BoneInfo * GetBones () const
 Retrieves the bones value for the object. More...
 
int GetFrameCount () const
 Retrieves the frameCount value for the object. More...
 
::Transform ** GetFramePoses () const
 Retrieves the framePoses value for the object. More...
 
bool IsValid (const ::Model &model) const
 Check model animation skeleton match.
 
ModelAnimationoperator= (const ::ModelAnimation &model)
 
ModelAnimationoperator= (const ModelAnimation &)=delete
 
ModelAnimationoperator= (ModelAnimation &&other) noexcept
 
void SetBoneCount (int value)
 Sets the boneCount value for the object. More...
 
void SetBones (::BoneInfo *value)
 Sets the bones value for the object. More...
 
void SetFrameCount (int value)
 Sets the frameCount value for the object. More...
 
void SetFramePoses (::Transform **value)
 Sets the framePoses value for the object. More...
 
void Unload ()
 Unload animation data.
 
ModelAnimationUpdate (const ::Model &model, int frame)
 Update model animation pose.
 
ModelAnimationUpdateBones (const ::Model &model, int frame)
 Update model animation mesh bone matrices (GPU skinning)
 

Static Public Member Functions

static std::vector< ModelAnimationLoad (const std::string &fileName)
 Load model animations from file.
 

Protected Member Functions

void set (const ::ModelAnimation &model)
 

Detailed Description

Model animation.

Definition at line 15 of file ModelAnimation.hpp.

Member Function Documentation

◆ GetBoneCount()

int raylib::ModelAnimation::GetBoneCount ( ) const
inline

Retrieves the boneCount value for the object.

Returns
The boneCount value of the object.

Definition at line 45 of file ModelAnimation.hpp.

◆ GetBones()

::BoneInfo* raylib::ModelAnimation::GetBones ( ) const
inline

Retrieves the bones value for the object.

Returns
The bones value of the object.

Definition at line 46 of file ModelAnimation.hpp.

◆ GetFrameCount()

int raylib::ModelAnimation::GetFrameCount ( ) const
inline

Retrieves the frameCount value for the object.

Returns
The frameCount value of the object.

Definition at line 47 of file ModelAnimation.hpp.

◆ GetFramePoses()

::Transform** raylib::ModelAnimation::GetFramePoses ( ) const
inline

Retrieves the framePoses value for the object.

Returns
The framePoses value of the object.

Definition at line 48 of file ModelAnimation.hpp.

◆ SetBoneCount()

void raylib::ModelAnimation::SetBoneCount ( int  value)
inline

Sets the boneCount value for the object.

Parameters
valueThe value of which to set boneCount to.

Definition at line 45 of file ModelAnimation.hpp.

◆ SetBones()

void raylib::ModelAnimation::SetBones ( ::BoneInfo *  value)
inline

Sets the bones value for the object.

Parameters
valueThe value of which to set bones to.

Definition at line 46 of file ModelAnimation.hpp.

◆ SetFrameCount()

void raylib::ModelAnimation::SetFrameCount ( int  value)
inline

Sets the frameCount value for the object.

Parameters
valueThe value of which to set frameCount to.

Definition at line 47 of file ModelAnimation.hpp.

◆ SetFramePoses()

void raylib::ModelAnimation::SetFramePoses ( ::Transform **  value)
inline

Sets the framePoses value for the object.

Parameters
valueThe value of which to set framePoses to.

Definition at line 48 of file ModelAnimation.hpp.