24 lines
		
	
	
		
			465 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			465 B
		
	
	
	
		
			C++
		
	
	
	
| #include "..\e2dtransition.h"
 | |
| #include "..\e2dobject.h"
 | |
| 
 | |
| e2d::EmergeTransition::EmergeTransition(float duration)
 | |
| 	: Transition(duration)
 | |
| {
 | |
| }
 | |
| 
 | |
| void e2d::EmergeTransition::Init(Scene * prev, Scene * next, Game * game)
 | |
| {
 | |
| 	Transition::Init(prev, next, game);
 | |
| 	
 | |
| 	out_layer_param_.opacity = 1;
 | |
| 	in_layer_param_.opacity = 0;
 | |
| }
 | |
| 
 | |
| void e2d::EmergeTransition::Update()
 | |
| {
 | |
| 	Transition::Update();
 | |
| 
 | |
| 	out_layer_param_.opacity = 1 - process_;
 | |
| 	in_layer_param_.opacity = process_;
 | |
| }
 |