Manages a (usually smooth) transition between two states (typically ON/OFF) in function of a counter It used for various purpose like smooth transitions.
#include <StelFader.hpp>
|
|
| StelFader (bool initialState) |
| |
|
virtual void | update (int deltaMs)=0 |
| | Increments the internal counter of deltaMs milliseconds.
|
| |
|
virtual float | getInterstate () const =0 |
| | Gets current value (between 0 and 1)
|
| |
|
virtual StelFader & | operator= (bool s)=0 |
| |
|
bool | operator== (bool s) const |
| |
|
| operator bool () const |
| |
|
virtual void | setDuration (int) |
| |
|
virtual float | getDuration () const =0 |
| |
|
|
float | getTargetValue () const |
| |
|
float | getStartValue () const |
| |