supertux
Public Member Functions | List of all members
FadeHelper Class Reference

Public Member Functions

 FadeHelper (float time, float target_value, float start_value=0.f, easing ease=LinearInterpolation)
 Initialize FadeHelper without binding to a value.
 
 FadeHelper (float *value, float time, float target_value, easing ease=LinearInterpolation)
 Initialize FadeHelper, binding to value.
 
float update (float dt_sec)
 Increases the internal timer of the FadeHelper. More...
 
bool completed () const
 
float get_value () const
 

Member Function Documentation

◆ completed()

bool FadeHelper::completed ( ) const
Returns
true if the FadeHelper has completed fading.

◆ update()

float FadeHelper::update ( float  dt_sec)

Increases the internal timer of the FadeHelper.

Parameters
dt_secThe increase in time since last call to update().
Returns
The new value for the internal value.

The documentation for this class was generated from the following files: