| 16 | } |
| 17 | |
| 18 | void animate::TimeLine::frameLoop() { |
| 19 | if(this->playing_ == false) |
| 20 | return; |
| 21 | |
| 22 | func::Command *cmd = func::CreateCommand([this]() -> void { |
| 23 | if(playing_ == false) |
| 24 | return; |
| 25 | this->OnUpdate(); |
| 26 | this->frameLoop(); |
| 27 | }); |
| 28 | |
| 29 | chart_->RequestAnimationFrame(cmd); |
| 30 | } |
| 31 | |
| 32 | void animate::TimeLine::Stop() { this->playing_ = false; } |
| 33 |
no test coverage detected