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

Model animation. More...

#include <ModelAnimation.hpp>

Public Member Functions

 ModelAnimation (const ::ModelAnimation &model)
 
 ModelAnimation (const ModelAnimation &)=delete
 
 ModelAnimation (ModelAnimation &&other) noexcept
 
ModelAnimationBlend (const ::Model &model, float frameA, const ::ModelAnimation &animB, float frameB, float blend)
 Blend two animation poses.
 
int GetBoneCount () const
 Retrieves the boneCount value for the object.
 
int GetKeyframeCount () const
 Retrieves the keyframeCount value for the object.
 
::Transform ** GetKeyframePoses () const
 Retrieves the keyframePoses value for the object.
 
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.
 
void SetKeyframeCount (int value)
 Sets the keyframeCount value for the object.
 
void SetKeyframePoses (::Transform **value)
 Sets the keyframePoses value for the object.
 
void Unload ()
 Unload animation data.
 
ModelAnimationUpdate (const ::Model &model, float frame)
 Update model animation pose.
 

Static Public Member Functions

static std::vector< ModelAnimationLoad (const std::string &fileName)
 Load model animations from file.
 
static void Unload (ModelAnimation *modelAnimation, int count)
 

Protected Member Functions

void set (const ::ModelAnimation &model)
 

Detailed Description

Model animation.

Definition at line 15 of file ModelAnimation.hpp.

Constructor & Destructor Documentation

◆ ModelAnimation() [1/2]

raylib::ModelAnimation::ModelAnimation ( const ::ModelAnimation &  model)
inline

Definition at line 17 of file ModelAnimation.hpp.

◆ ModelAnimation() [2/2]

raylib::ModelAnimation::ModelAnimation ( ModelAnimation &&  other)
inlinenoexcept

Definition at line 21 of file ModelAnimation.hpp.

◆ ~ModelAnimation()

raylib::ModelAnimation::~ModelAnimation ( )
inline

Definition at line 30 of file ModelAnimation.hpp.

Member Function Documentation

◆ Blend()

ModelAnimation & raylib::ModelAnimation::Blend ( const ::Model &  model,
float  frameA,
const ::ModelAnimation &  animB,
float  frameB,
float  blend 
)
inline

Blend two animation poses.

Definition at line 94 of file ModelAnimation.hpp.

◆ GetBoneCount()

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

Retrieves the boneCount value for the object.

Returns
The boneCount value of the object.

Definition at line 46 of file ModelAnimation.hpp.

◆ GetKeyframeCount()

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

Retrieves the keyframeCount value for the object.

Returns
The keyframeCount value of the object.

Definition at line 47 of file ModelAnimation.hpp.

◆ GetKeyframePoses()

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

Retrieves the keyframePoses value for the object.

Returns
The keyframePoses value of the object.

Definition at line 48 of file ModelAnimation.hpp.

◆ IsValid()

bool raylib::ModelAnimation::IsValid ( const ::Model &  model) const
inline

Check model animation skeleton match.

Definition at line 103 of file ModelAnimation.hpp.

◆ Load()

static std::vector< ModelAnimation > raylib::ModelAnimation::Load ( const std::string &  fileName)
inlinestatic

Load model animations from file.

Definition at line 35 of file ModelAnimation.hpp.

◆ operator=() [1/2]

ModelAnimation & raylib::ModelAnimation::operator= ( const ::ModelAnimation &  model)
inline

Definition at line 50 of file ModelAnimation.hpp.

◆ operator=() [2/2]

ModelAnimation & raylib::ModelAnimation::operator= ( ModelAnimation &&  other)
inlinenoexcept

Definition at line 57 of file ModelAnimation.hpp.

◆ set()

void raylib::ModelAnimation::set ( const ::ModelAnimation &  model)
inlineprotected

Definition at line 105 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 46 of file ModelAnimation.hpp.

◆ SetKeyframeCount()

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

Sets the keyframeCount value for the object.

Parameters
valueThe value of which to set keyframeCount to.

Definition at line 47 of file ModelAnimation.hpp.

◆ SetKeyframePoses()

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

Sets the keyframePoses value for the object.

Parameters
valueThe value of which to set keyframePoses to.

Definition at line 48 of file ModelAnimation.hpp.

◆ Unload() [1/2]

void raylib::ModelAnimation::Unload ( )
inline

Unload animation data.

Definition at line 75 of file ModelAnimation.hpp.

◆ Unload() [2/2]

static void raylib::ModelAnimation::Unload ( ModelAnimation modelAnimation,
int  count 
)
inlinestatic

Definition at line 79 of file ModelAnimation.hpp.

◆ Update()

ModelAnimation & raylib::ModelAnimation::Update ( const ::Model &  model,
float  frame 
)
inline

Update model animation pose.

Definition at line 86 of file ModelAnimation.hpp.