P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
RayAnimationSet Class Reference

Raylib AnimationSet class - owns the loaded clips, independent of any RayModel bound to it. More...

#include <RayAnimationSet.hpp>

Inheritance diagram for RayAnimationSet:
Collaboration diagram for RayAnimationSet:

Public Member Functions

 RayAnimationSet (std::string path)
 ~RayAnimationSet ()
bool isReady () const override
 notice if the animation set is ready
int getSize () const override
 Get the number of clips in this set.
std::string getName (int index) const override
 The clip name, as it appears in the file.
int getFrameCount (int index) const override
 How many frames this clip has.
raylib::ModelAnimation * handle () const
Public Member Functions inherited from graphic::IAnimationSet
virtual ~IAnimationSet ()=default

Detailed Description

Raylib AnimationSet class - owns the loaded clips, independent of any RayModel bound to it.

Constructor & Destructor Documentation

◆ RayAnimationSet()

RayAnimationSet::RayAnimationSet ( std::string path)
inline

◆ ~RayAnimationSet()

RayAnimationSet::~RayAnimationSet ( )
inline

Member Function Documentation

◆ getFrameCount()

int RayAnimationSet::getFrameCount ( int index) const
inlineoverridevirtual

How many frames this clip has.

Parameters
index
Returns
int

Implements graphic::IAnimationSet.

◆ getName()

std::string RayAnimationSet::getName ( int index) const
inlineoverridevirtual

The clip name, as it appears in the file.

A Mixamo export often bakes every move into a single clip : the clip count therefore does not tell you the number of moves, and sub-sequences are marked nowhere.

Parameters
index
Returns
std::string

Implements graphic::IAnimationSet.

◆ getSize()

int RayAnimationSet::getSize ( ) const
inlineoverridevirtual

Get the number of clips in this set.

Returns
int

Implements graphic::IAnimationSet.

◆ handle()

raylib::ModelAnimation * RayAnimationSet::handle ( ) const
inline

◆ isReady()

bool RayAnimationSet::isReady ( ) const
inlineoverridevirtual

notice if the animation set is ready

Returns
bool

Implements graphic::IAnimationSet.


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