ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Animate a skeletal model's bones according to an animation. More...

#include <animhandler.h>

Collaboration diagram for Stark::AnimHandler:

List of all members.

Public Member Functions

 AnimHandler ()
 ~AnimHandler ()
void animate (uint32 time)
 Increment the animation timestamp, and apply bone animations if required.
void setModel (Model *model)
 Set the skeletal model to animate.
void setAnim (SkeletonAnim *anim)
 Set the skeletal animation to use.
void resetBlending ()
 Stop blending and forget about the previous animation.

Private Member Functions

void startBlending ()
void updateBlending (int32 deltaTime)
void stopBlending ()
void setNode (uint32 time, BoneNode *bone, const BoneNode *parent)

Private Attributes

SkeletonAnim_anim
int32 _animTime
SkeletonAnim_previousAnim
int32 _previousAnimTime
SkeletonAnim_blendAnim
int32 _blendAnimTime
int32 _blendTimeRemaining
Model_model

Static Private Attributes

static const uint32 _blendDuration = 300

Detailed Description

Animate a skeletal model's bones according to an animation.

Definition at line 37 of file animhandler.h.


Constructor & Destructor Documentation

Stark::AnimHandler::AnimHandler (  ) 

Definition at line 30 of file animhandler.cpp.

Stark::AnimHandler::~AnimHandler (  ) 

Definition at line 43 of file animhandler.cpp.


Member Function Documentation

void Stark::AnimHandler::animate ( uint32  time  ) 

Increment the animation timestamp, and apply bone animations if required.

Definition at line 100 of file animhandler.cpp.

void Stark::AnimHandler::resetBlending (  ) 

Stop blending and forget about the previous animation.

Definition at line 150 of file animhandler.cpp.

void Stark::AnimHandler::setAnim ( SkeletonAnim anim  ) 

Set the skeletal animation to use.

Definition at line 46 of file animhandler.cpp.

void Stark::AnimHandler::setModel ( Model model  ) 

Set the skeletal model to animate.

Definition at line 66 of file animhandler.cpp.

void Stark::AnimHandler::setNode ( uint32  time,
BoneNode bone,
const BoneNode parent 
) [private]

Definition at line 70 of file animhandler.cpp.

void Stark::AnimHandler::startBlending (  )  [private]

Definition at line 124 of file animhandler.cpp.

void Stark::AnimHandler::stopBlending (  )  [private]

Definition at line 144 of file animhandler.cpp.

void Stark::AnimHandler::updateBlending ( int32  deltaTime  )  [private]

Definition at line 130 of file animhandler.cpp.


Member Data Documentation

Definition at line 65 of file animhandler.h.

Definition at line 66 of file animhandler.h.

Definition at line 71 of file animhandler.h.

Definition at line 72 of file animhandler.h.

const uint32 Stark::AnimHandler::_blendDuration = 300 [static, private]

Definition at line 63 of file animhandler.h.

Definition at line 73 of file animhandler.h.

Definition at line 75 of file animhandler.h.

Definition at line 68 of file animhandler.h.

Definition at line 69 of file animhandler.h.


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


Generated on Sat Jan 12 2019 05:05:00 for ResidualVM by doxygen 1.7.1
curved edge   curved edge