Rendu
A lightweight rendering engine for experimentations
|
Wraps an animated property so that the initial value is preserved. More...
#include <Animated.hpp>
Public Member Functions | |
Animated (const T &value) | |
const T & | initial () const |
void | reset (const T &value) |
T & | operator= (const T &value) |
const T & | get () const |
operator T& () | |
operator const T & () const | |
Private Attributes | |
T | _initial = T() |
Initial value. | |
T | _current = T() |
Current value. | |
Wraps an animated property so that the initial value is preserved.
|
inlineexplicit |
Constructor.
value | the initial value |
|
inline |
Get the current value.
|
inline |
Get the initial value.
|
inline |
Conversion operator for the current value.
|
inline |
Conversion operator for the current value.
|
inline |
Copy assignment operator for the current value.
value | the new current value |
|
inline |
Set the initial value.
value | the initial value |