51 std::ostringstream oss;
56 oss <<
"Node_" << index;
76 playback->
loop(looping);
88 "node animation with same name already exists!");
108 if (playback->parentAnimation()->name() == name)
113 SL_WARN_MSG(
"*** SLAnimManager::animPlaybackByName: animation not found ***");
122 skeleton->changed(
false);
147 updated |= skeleton->updateAnimations(elapsedTimeSec);
#define SL_WARN_MSG(message)
SLEasingCurve
Enumeration for animation easing curves.
SLAnimLooping
Enumeration for animation modes.
SLVSkeleton _skeletons
all skeleton instances
SLAnimPlayback * animPlaybackByName(const SLstring &name)
Returns the playback of a node animation or skeleton by name if it exists.
~SLAnimManager()
destructor
SLMAnimation _animationNamesMap
map name to animation
SLAnimation * createNodeAnimation(SLfloat duration)
void addSkeleton(SLAnimSkeleton *skel)
Add a skeleton to the skeleton vector.
void clear()
Clears and deletes all node animations and skeletons.
SLVstring _animationNames
vector with all animation names
SLMAnimPlayback _animPlaybackNamesMap
map name to animation playbacks
SLVAnimPlayback _animPlaybacks
vector with all animation playbacks
void drawVisuals(SLSceneView *sv)
Draws the animation visualizations.
SLbool update(SLfloat elapsedTimeSec)
Advances the time of all enabled animation plays.
Manages the playback of an SLAnimation.
SLfloat localTime() const
SLAnimLooping loop() const
SLEasingCurve easing() const
void advanceTime(SLfloat delta)
SLAnimation * parentAnimation()
SLAnimSkeleton keeps track of a skeletons joints and animations.
SLAnimation is the base container for all animation data.
void drawNodeVisuals(SLSceneView *sv)
void apply(SLfloat time, SLfloat weight=1.0f, SLfloat scale=1.0f)
SceneView class represents a dynamic real time 3D view onto the scene.