24 #ifndef GUI_ANIMATION_ALPHA_ANIMATION_H 25 #define GUI_ANIMATION_ALPHA_ANIMATION_H 27 #include "gui/animation/Animation.h" 35 float getEndAlpha()
const {
return _endAlpha; }
36 void setEndAlpha(
float endAlpha) { _endAlpha = endAlpha; }
37 float getStartAlpha()
const {
return _startAlpha; }
38 void setStartAlpha(
float startAlpha) { _startAlpha = startAlpha; }
41 virtual void updateInternal(
Drawable* drawable,
float interpolation) {
43 drawable->setAlpha(_startAlpha * (1 - interpolation) + _endAlpha * interpolation);
Definition: Animation.h:33
Definition: AlphaAnimation.h:31
Definition: Drawable.h:37