29 #ifndef THOR_PLAYBACK_HPP
30 #define THOR_PLAYBACK_HPP
33 #include <Thor/Animations/Detail/PlaybackSchemes.hpp>
54 template <
typename Id>
55 AURORA_IMPL_DEF(
typename detail::DecayedScheme<detail::RepeatScheme, Id>::Type)
repeat(Id
id, std::
size_t times)
58 return detail::DecayedScheme<detail::RepeatScheme, Id>::Type(std::move(
id), times);
64 template <
typename Id>
65 AURORA_IMPL_DEF(
typename detail::DecayedScheme<detail::LoopScheme, Id>::Type)
loop(Id
id)
67 return detail::DecayedScheme<detail::LoopScheme, Id>(std::move(
id));
73 inline AURORA_IMPL_DEF(detail::NotifyScheme)
notify(std::function<
void()> callback)
75 return detail::NotifyScheme(std::move(callback));
84 #endif // THOR_PLAYBACK_HPP
ImplementationDefined loop(Id id)
Repeat animation an infinite number of times.
Definition: Playback.hpp:65
Definition: AnimationMap.hpp:42
Configuration header of the library.
ImplementationDefined notify(std::function< void()> callback)
Register a callback function in the queue.
Definition: Playback.hpp:73
ImplementationDefined repeat(Id id, std::size_t times)
Repeat animation a finite number of times.
Definition: Playback.hpp:55