1#ifndef __SALPHAANIMATION__H__
2#define __SALPHAANIMATION__H__
4#include <animation/SAnimation.h>
26 ATTR_FLOAT(L
"fromAlpha", mFromAlpha, FALSE)
27 ATTR_FLOAT(L
"toAlpha", mToAlpha, FALSE)
40 void init(
float fromAlpha = 0.0f,
float toAlpha = 0.0f);
49 (THIS_
float interpolatedTime, ITransformation *t) OVERRIDE;
55 STDMETHOD_(
void,
copy)(THIS_ const IAnimation *src) OVERRIDE;
63 STDMETHOD_(BOOL,
hasAlpha)(THIS) SCONST OVERRIDE;
void copy(const IAnimation *src)
Copies the properties of another animation to this animation.
void init(float fromAlpha=0.0f, float toAlpha=0.0f)
Initializes the alpha animation with specified start and end alpha values.
BOOL hasAlpha()
Checks if the animation affects the alpha property.
SAlphaAnimation()
Default constructor.
void applyTransformation(float interpolatedTime, ITransformation *t)
Changes the alpha property of the supplied STransformation.
SAnimation()
Default constructor for SAnimation.