MCPcopy Create free account
hub / github.com/MethanePowered/MethaneKit / Pause

Method Pause

Modules/Data/Animation/Sources/Methane/Data/Animation.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void Animation::Pause()
58{
59 META_FUNCTION_TASK();
60 META_CHECK_EQUAL_DESCR(m_state, State::Running, "only running animation can be paused");
61
62 m_state = State::Paused;
63 m_paused_duration = GetElapsedDuration();
64}
65
66void Animation::Resume()
67{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected