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)
 
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. More...
 
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. More...
 
ModelAnimationUpdate (const ::Model &model, int frame)
 Update model animation pose. More...
 

Static Public Member Functions

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

Protected Member Functions

void set (const ::ModelAnimation &model)
 

Detailed Description

Model animation.

Definition at line 16 of file ModelAnimation.hpp.

Constructor & Destructor Documentation

◆ ModelAnimation() [1/2]

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

Definition at line 18 of file ModelAnimation.hpp.

◆ ModelAnimation() [2/2]

raylib::ModelAnimation::ModelAnimation ( ModelAnimation &&  other)
inline

Definition at line 24 of file ModelAnimation.hpp.

◆ ~ModelAnimation()

raylib::ModelAnimation::~ModelAnimation ( )
inline

Definition at line 33 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 50 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 51 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 52 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 53 of file ModelAnimation.hpp.

◆ IsValid()

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

Check model animation skeleton match.

Definition at line 96 of file ModelAnimation.hpp.

◆ Load()

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

Load model animations from file.

Definition at line 40 of file ModelAnimation.hpp.

◆ operator=() [1/2]

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

Definition at line 55 of file ModelAnimation.hpp.

◆ operator=() [2/2]

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

Definition at line 62 of file ModelAnimation.hpp.

◆ set()

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

Definition at line 101 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 50 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 51 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 52 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 53 of file ModelAnimation.hpp.

◆ Unload()

void raylib::ModelAnimation::Unload ( )
inline

Unload animation data.

Definition at line 81 of file ModelAnimation.hpp.

◆ Update()

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

Update model animation pose.

Definition at line 88 of file ModelAnimation.hpp.