MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / apply

Method apply

OgreMain/src/OgreAnimation.cpp:352–383  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

350 const String &Animation::getName() const { return mName; }
351 //---------------------------------------------------------------------
352 void Animation::apply( Real timePos, Real weight, Real scale )
353 {
354 _applyBaseKeyFrame();
355
356 // Calculate time index for fast keyframe search
357 TimeIndex timeIndex = _getTimeIndex( timePos );
358
359 {
360 NodeTrackList::iterator i;
361 for( i = mNodeTrackList.begin(); i != mNodeTrackList.end(); ++i )
362 {
363 ( *i )->apply( timeIndex, weight, scale );
364 }
365 }
366 {
367 OldNodeTrackList::iterator i;
368 for( i = mOldNodeTrackList.begin(); i != mOldNodeTrackList.end(); ++i )
369 {
370 i->second->apply( timeIndex, weight, scale );
371 }
372 }
373 NumericTrackList::iterator j;
374 for( j = mNumericTrackList.begin(); j != mNumericTrackList.end(); ++j )
375 {
376 j->second->apply( timeIndex, weight, scale );
377 }
378 VertexTrackList::iterator k;
379 for( k = mVertexTrackList.begin(); k != mVertexTrackList.end(); ++k )
380 {
381 k->second->apply( timeIndex, weight, scale );
382 }
383 }
384 //---------------------------------------------------------------------
385 void Animation::applyToNode( OldNode *node, Real timePos, Real weight, Real scale )
386 {

Callers 3

_applySceneAnimationsMethod · 0.45
applyVertexAnimationMethod · 0.45
setAnimationStateMethod · 0.45

Calls 11

getSubEntityMethod · 0.80
getPoseListMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
getBoneMethod · 0.45
applyToNodeMethod · 0.45
getHandleMethod · 0.45
applyToVertexDataMethod · 0.45

Tested by

no test coverage detected