MCPcopy Create free account
hub / github.com/comaps/comaps / Advance

Method Advance

libs/drape_frontend/animation_system.cpp:349–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void AnimationSystem::Advance(double elapsedSeconds)
350{
351 if (!HasAnimations())
352 return;
353
354 TAnimationList finishedAnimations;
355 TAnimationList & frontList = *(m_animationChain.front());
356 for (auto it = frontList.begin(); it != frontList.end();)
357 {
358 auto & anim = *it;
359 anim->Advance(elapsedSeconds);
360 if (anim->IsFinished())
361 finishedAnimations.splice(finishedAnimations.end(), frontList, it++);
362 else
363 ++it;
364 }
365 for (auto & anim : finishedAnimations)
366 {
367 anim->OnFinish();
368 SaveAnimationResult(*anim);
369 }
370 if (frontList.empty())
371 StartNextAnimations();
372}
373
374#ifdef DEBUG_ANIMATIONS
375void AnimationSystem::Print()

Callers 4

DrawMethod · 0.45
CacheDynamicGeometryMethod · 0.45
RenderFrameMethod · 0.45
RenderTrackMethod · 0.45

Calls 6

frontMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
IsFinishedMethod · 0.45
OnFinishMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected