ScummVM API documentation
te_visual_fade.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef TETRAEDGE_TE_TE_VISUAL_FADE_H
23 #define TETRAEDGE_TE_TE_VISUAL_FADE_H
24 
25 #include "common/ptr.h"
26 
27 #include "tetraedge/te/te_3d_texture.h"
28 #include "tetraedge/te/te_curve_anim2.h"
29 #include "tetraedge/te/te_sprite_layout.h"
30 #include "tetraedge/te/te_button_layout.h"
31 
32 namespace Tetraedge {
33 
34 class TeVisualFade : public TeSpriteLayout {
35 public:
36  TeVisualFade();
37 
38  void animateBlackFade();
39  void animateFade();
40  void animateFadeWithZoom();
41  void captureFrame();
42  void clear() {};
43  void init();
44 
45  TeSpriteLayout _fadeCaptureSprite;
46  TeSpriteLayout _blackFadeSprite;
47  TeButtonLayout _buttonLayout;
48 
49  bool fading() const { return _fadeCurveAnim._runTimer.running(); }
50  bool blackFading() const { return _blackFadeCurveAnim._runTimer.running(); }
51 
52  TeCurveAnim2<TeSpriteLayout, TeColor> blackFadeCurveAnim() { return _blackFadeCurveAnim; }
53 
54  TeIntrusivePtr<Te3DTexture> texture() { return _texturePtr; }
55 
56 private:
57 
58  TeIntrusivePtr<Te3DTexture> _texturePtr;
60  TeCurveAnim2<TeSpriteLayout, TeColor> _blackFadeCurveAnim;
62  TeImage _image;
63 
64 };
65 
66 } // end namespace Tetraedge
67 
68 #endif // TETRAEDGE_TE_TE_VISUAL_FADE_H
Definition: te_image.h:40
Definition: detection.h:27
Definition: te_curve_anim2.h:36
Definition: te_button_layout.h:38
Definition: te_visual_fade.h:34
Definition: te_intrusive_ptr.h:31
Definition: te_sprite_layout.h:30