X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Fdisplay_effect.hpp;h=3365b09116a6e56745e6379d282b5e4b196d9433;hb=11a3b78a422c0deac010eef7de06c97d6b83bad0;hp=74fad9cf98ee9f870a65764893ddcb409158c95f;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/scripting/display_effect.hpp b/src/scripting/display_effect.hpp index 74fad9cf9..3365b0911 100644 --- a/src/scripting/display_effect.hpp +++ b/src/scripting/display_effect.hpp @@ -1,3 +1,22 @@ +// $Id$ +// +// SuperTux +// Copyright (C) 2006 Matthias Braun +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifndef __SCRIPTING_DISPLAY_EFFECT_H__ #define __SCRIPTING_DISPLAY_EFFECT_H__ @@ -20,6 +39,10 @@ public: virtual void set_black(bool enabled) = 0; /// check if display is set to black virtual bool is_black() = 0; + /// set black borders for cutscenes + virtual void sixteen_to_nine(float fadetime) = 0; + /// deactivate borders + virtual void four_to_three(float fadetime) = 0; // fade display until just a small visible circle is left // (like what happens in some cartoons at the end) @@ -29,4 +52,3 @@ public: } #endif -