25 lines
449 B
C++
25 lines
449 B
C++
#include "..\e2daction.h"
|
|
|
|
|
|
e2d::OpacityTo::OpacityTo(double duration, double opacity)
|
|
: OpacityBy(duration, 0)
|
|
{
|
|
_endVal = opacity;
|
|
}
|
|
|
|
e2d::OpacityTo * e2d::OpacityTo::create(double duration, double opacity)
|
|
{
|
|
return Create<OpacityTo>(duration, opacity);
|
|
}
|
|
|
|
e2d::OpacityTo * e2d::OpacityTo::clone() const
|
|
{
|
|
return Create<OpacityTo>(_duration, _endVal);
|
|
}
|
|
|
|
void e2d::OpacityTo::_init()
|
|
{
|
|
OpacityBy::_init();
|
|
_deltaVal = _endVal - _startVal;
|
|
}
|