3#include <animation/SAlphaAnimation.h>
15 mFromAlpha = fromAlpha;
26 float alpha = mFromAlpha;
27 t->SetAlpha((BYTE)((alpha + ((mToAlpha - alpha) * interpolatedTime)) * 255));
36 mFromAlpha = src2->mFromAlpha;
37 mToAlpha = src2->mToAlpha;
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.
void copy(const IAnimation *src) OVERRIDE
Copies the properties of another animation to this animation.