RigsofRods
Soft-body Physics Simulation
Public Member Functions
AngelOgre::AnimationStateSet Class Reference

A manager for skeletal animation tracks in the entity. More...

#include <AngelOgre_AnimationStateSet.h>

Public Member Functions

AnimationState createAnimationState (const string &animName, float timePos, float length, float weight=1.0, bool enabled=false)
 Create a new AnimationState instance. More...
 
AnimationState getAnimationState (const string &name) const
 Get an animation state by the name of the animation. More...
 
bool hasAnimationState (const string &name) const
 Tests if state for the named animation is present. More...
 
void removeAnimationState (const string &name)
 Remove animation state with the given name. More...
 
void removeAllAnimationStates (void)
 Remove all animation states. More...
 
AnimationStateArray getAnimationStates ()
 Get all the animation states in this set. More...
 

Detailed Description

A manager for skeletal animation tracks in the entity.

Definition at line 15 of file AngelOgre_AnimationStateSet.h.

Member Function Documentation

◆ createAnimationState()

AnimationState AngelOgre::AnimationStateSet::createAnimationState ( const string &  animName,
float  timePos,
float  length,
float  weight = 1.0,
bool  enabled = false 
)

Create a new AnimationState instance.

Parameters
animNameThe name of the animation
timePosStarting time position
lengthLength of the animation to play
weightWeight to apply the animation with
enabledWhether the animation is enabled

◆ getAnimationState()

AnimationState AngelOgre::AnimationStateSet::getAnimationState ( const string &  name) const

Get an animation state by the name of the animation.

◆ getAnimationStates()

AnimationStateArray AngelOgre::AnimationStateSet::getAnimationStates ( )

Get all the animation states in this set.

Returns
a readonly array view object.

◆ hasAnimationState()

bool AngelOgre::AnimationStateSet::hasAnimationState ( const string &  name) const

Tests if state for the named animation is present.

◆ removeAllAnimationStates()

void AngelOgre::AnimationStateSet::removeAllAnimationStates ( void  )

Remove all animation states.

◆ removeAnimationState()

void AngelOgre::AnimationStateSet::removeAnimationState ( const string &  name)

Remove animation state with the given name.


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