Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ClassRoom::MotionClipPlayer Class Reference
Collaboration diagram for ClassRoom::MotionClipPlayer:

Public Member Functions

void Init (gef::SkeletonPose const &bind_pose)
 Initialise the clip player with the bind pose. More...
 
bool Update (float delta_time, gef::SkeletonPose const &bind_pose)
 Update the pose by sampling current animation clip. More...
 
float const anim_time () const
 
void set_anim_time (float const anim_time)
 
float const playback_speed () const
 
void set_playback_speed (float const playback_speed)
 
bool const looping () const
 
void set_looping (bool const looping)
 
gef::Animation const * clip () const
 
void set_clip (gef::Animation const *clip)
 
gef::SkeletonPose const & pose () const
 

Member Function Documentation

◆ Init()

void ClassRoom::MotionClipPlayer::Init ( gef::SkeletonPose const &  bind_pose)

Initialise the clip player with the bind pose.

Parameters
[in]bind_poseThe bind pose for the skeleton being animated.

◆ Update()

bool ClassRoom::MotionClipPlayer::Update ( float  delta_time,
gef::SkeletonPose const &  bind_pose 
)

Update the pose by sampling current animation clip.

Parameters
[in]delta_timeThe amount of time to update the playback time by.
[in]bind_poseThe bind pose for the skeleton being animated.

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