9TEST(TestAnimation, Test1) {
13 auto timeline = std::make_unique<Timeline>();
14 auto property = std::make_unique<Scalar>(0);
16 std::make_unique<ScalerInterpolation>(property.get(), 0.0f, 100.0f);
17 timeline->add(animation.get(), 0, 1);
18 auto driver = std::make_unique<TimelineDriver>(timeline.get());
19 driver->set_frame_rate(60)->ready_to_play();
20 while (!driver->finished()) {
21 std::cout <<
"------------- start new frame -----------------"
24 if (property->is_changed()) {
25 std::cout <<
"property value: " <<
property->value() << std::endl;
26 property->reset_changed();
28 std::cout <<
"------------- end new frame -----------------"