17 #ifndef HEADER_SUPERTUX_UTIL_FADE_HELPER_HPP 18 #define HEADER_SUPERTUX_UTIL_FADE_HELPER_HPP 20 #include "math/easing.hpp" 27 float start_value = 0.f, easing ease = LinearInterpolation);
31 float target_value, easing ease = LinearInterpolation);
40 float update(
float dt_sec);
45 float get_value()
const;
50 float m_start, m_target,
float update(float dt_sec)
Increases the internal timer of the FadeHelper.
Definition: fade_helper.cpp:44
Definition: fade_helper.hpp:22
bool completed() const
Definition: fade_helper.cpp:71
FadeHelper(float time, float target_value, float start_value=0.f, easing ease=LinearInterpolation)
Initialize FadeHelper without binding to a value.
Definition: fade_helper.cpp:19