![]() |
Lysa
0.0
Lysa 3D Engine
|
Base class for time-based animations (tweens). Tweens encapsulate a small, focused animation task that progresses with time.
Inheritance diagram for Tween:Public Typedefs | |
| using | Callback = std::function< void ()> |
Public Member Functions | |
| virtual bool | update (double deltaTime) = 0 |
| virtual double | getOverflow () const |
| virtual bool | isRunning () const |
| virtual void | kill () |
| virtual | ~Tween () = default |
Protected Member Functions | |
| Tween (const TransitionType type, const Callback &callback) | |
Static Protected Member Functions | |
| static double | applyEase (TransitionType type, double t) |
Protected Attributes | |
| bool | running {false} |
| Callback | callback |
| TransitionType | interpolationType |
|
virtualdefault |
|
inlineprotected |
|
staticprotected |
Applies the easing curve to a normalized time value t in [0,1].
|
inlinevirtual |
Returns the time that overflowed past the end of this Tween (>= 0).
Reimplemented in lysa::PropertyTween::getOverflow()
|
inlinevirtual |
Returns true while the Tween is still animating.
Reimplemented in lysa::TweenSequence::isRunning()
|
inlinevirtual |
Immediately stops the Tween without firing the completion callback.
Reimplemented in lysa::TweenSequence::kill()
|
pure virtual |
Advances the Tween by delta time.
| deltaTime | Time elapsed since the previous update (seconds). |
Implemented in lysa::TweenSequence::update(), lysa::PropertyTween::update()
|
protected |
|
protected |
|
protected |