8template <
typename PayloadT,
typename SamplerT = SamplerFloor<PayloadT>>
20 m_animation = animation;
22 if (animation !=
nullptr) {
32 if (duration == 0s) {
return 0.0f; }
36 void tick(kvf::Seconds dt) {
Class template for Animation types.
Definition animation.hpp:12
bool repeat
Definition animation.hpp:26
auto get_timeline() const -> Timeline< Payload > const &
Definition animation.hpp:16
Class template for Animator types.
Definition animator.hpp:9
bool repeat
Definition animator.hpp:48
SamplerT Sampler
Definition animator.hpp:12
auto get_progress() const -> float
Definition animator.hpp:30
Animation< PayloadT > AnimationT
Definition animator.hpp:13
void tick(kvf::Seconds dt)
Definition animator.hpp:36
void set_animation(AnimationT const *animation)
Definition animator.hpp:19
auto get_duration() const -> kvf::Seconds
Definition animator.hpp:28
kvf::Seconds elapsed
Definition animator.hpp:47
PayloadT Payload
Definition animator.hpp:11
auto get_payload() const -> Payload const &
Definition animator.hpp:45
auto has_animation() const -> bool
Definition animator.hpp:15
auto get_animation() const -> AnimationT const *
Definition animator.hpp:17
Concept for Animation Sampler.
Definition sampler.hpp:12
Definition animation.hpp:8