supertux
display_effect.hpp
1 // SuperTux
2 // Copyright (C) 2006 Matthias Braun <matze@braunis.de>
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef HEADER_SUPERTUX_SCRIPTING_DISPLAY_EFFECT_HPP
18 #define HEADER_SUPERTUX_SCRIPTING_DISPLAY_EFFECT_HPP
19 
20 #ifndef SCRIPTING_API
21 #include "scripting/game_object.hpp"
22 
23 class DisplayEffect;
24 #endif
25 
26 namespace scripting {
27 
28 class DisplayEffect final
29 #ifndef SCRIPTING_API
30  : public GameObject<::DisplayEffect>
31 #endif
32 {
33 #ifndef SCRIPTING_API
34 public:
35  using GameObject::GameObject;
36 
37 private:
38  DisplayEffect(const DisplayEffect&) = delete;
39  DisplayEffect& operator=(const DisplayEffect&) = delete;
40 #endif
41 
42 public:
44  void fade_out(float fadetime);
46  void fade_in(float fadetime);
48  void set_black(bool enabled);
50  bool is_black() const;
52  void sixteen_to_nine(float fadetime);
54  void four_to_three(float fadetime);
55 
56  // fade display until just a small visible circle is left
57  // (like what happens in some cartoons at the end)
58  // void shrink_fade(const Vector& goal, float radius, float fadetime);
59 };
60 
61 } // namespace scripting
62 
63 #endif
64 
65 /* EOF */
WARNING: This file is automatically generated from: &#39;src/scripting/wrapper.interface.hpp&#39; DO NOT CHANGE.
Definition: ambient_sound.cpp:21
void fade_out(float fadetime)
fade display to black
Definition: display_effect.cpp:24
Definition: game_object.hpp:60
void four_to_three(float fadetime)
deactivate borders
Definition: display_effect.cpp:59
bool is_black() const
check if display is set to black
Definition: display_effect.cpp:45
Definition: display_effect.hpp:24
void set_black(bool enabled)
set display black (or back to normal)
Definition: display_effect.cpp:38
Definition: display_effect.hpp:28
void fade_in(float fadetime)
fade display from black to normal
Definition: display_effect.cpp:31
void sixteen_to_nine(float fadetime)
set black borders for cutscenes
Definition: display_effect.cpp:52