| 347 | } |
| 348 | |
| 349 | void Animation::update() |
| 350 | { |
| 351 | if (!m_over) |
| 352 | { |
| 353 | const Time::TimeUnit delay = (m_sleep) ? m_sleep : m_delay; |
| 354 | Debug::Log->trace("<Animation> Delay is {} seconds", delay); |
| 355 | if (Time::epoch() - m_clock > delay) |
| 356 | { |
| 357 | m_clock = Time::epoch(); |
| 358 | m_sleep = 0; |
| 359 | Debug::Log->trace("<Animation> Updating Animation '{0}'", m_name); |
| 360 | |
| 361 | if (m_feedInstructions) |
| 362 | { |
| 363 | this->executeInstruction(); |
| 364 | } |
| 365 | if (!m_currentGroupName.empty()) |
| 366 | { |
| 367 | this->updateCurrentGroup(); |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | void Animation::setAntiAliasing(bool antiAliasing) noexcept |
| 374 | { |
nothing calls this directly
no test coverage detected