21 lines
		
	
	
		
			367 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			367 B
		
	
	
	
		
			C++
		
	
	
	
| #include "..\e2daction.h"
 | |
| #include "..\e2dobject.h"
 | |
| 
 | |
| 
 | |
| e2d::OpacityTo::OpacityTo(float duration, float opacity)
 | |
| 	: OpacityBy(duration, 0)
 | |
| {
 | |
| 	end_val_ = opacity;
 | |
| }
 | |
| 
 | |
| e2d::OpacityTo * e2d::OpacityTo::Clone() const
 | |
| {
 | |
| 	return new (e2d::autorelease) OpacityTo(duration_, end_val_);
 | |
| }
 | |
| 
 | |
| void e2d::OpacityTo::Init()
 | |
| {
 | |
| 	OpacityBy::Init();
 | |
| 	delta_val_ = end_val_ - start_val_;
 | |
| }
 |