00001 /* ResidualVM - A 3D game interpreter00002 *00003 * ResidualVM is the legal property of its developers, whose names00004 * are too numerous to list here. Please refer to the AUTHORS00005 * file distributed with this source distribution.00006 *00007 * This program is free software; you can redistribute it and/or00008 * modify it under the terms of the GNU General Public License00009 * as published by the Free Software Foundation; either version 200010 * of the License, or (at your option) any later version.00011 *00012 * This program is distributed in the hope that it will be useful,00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the00015 * GNU General Public License for more details.00016 *00017 * You should have received a copy of the GNU General Public License00018 * along with this program; if not, write to the Free Software00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.00020 *00021 */00022
00023 #ifndef STARK_VISUAL_FLASHING_IMAGE_H00024 #define STARK_VISUAL_FLASHING_IMAGE_H00025
00026 #include "engines/stark/visual/visual.h"00027
00028 #include "common/array.h"00029 #include "common/rect.h"00030
00031 #include "graphics/pixelformat.h"00032
00033 #include "math/vector2d.h"00034
00035 namespace Graphics {
00036 struct Surface;
00037 }
00038
00039 namespace Stark {
00040
00041 namespace Gfx {
00042 class Driver;
00043 class SurfaceRenderer;
00044 class Texture;
00045 }
00046
00052class VisualFlashingImage : publicVisual {
00053 public:
00054staticconstVisualTypeTYPE = Visual::kFlashingImage;
00055
00056 explicitVisualFlashingImage(Gfx::Driver *gfx);
00057 ~VisualFlashingImage() override;
00058
00060 voidinitFromSurface(constGraphics::Surface *surface);
00061
00063 voidrender(constCommon::Point &position);
00064
00065 private:
00066 voidupdateFadeLevel();
00067
00068Gfx::Driver *_gfx;
00069Gfx::SurfaceRenderer *_surfaceRenderer;
00070Gfx::Texture *_texture;
00071
00072int_flashingTimeRemaining;
00073float_fadeLevel;
00074bool_fadeLevelIncreasing;
00075staticconstfloat_fadeValueMax;
00076
00077 };
00078
00079 } // End of namespace Stark00080
00081 #endif // STARK_VISUAL_FLASHING_IMAGE_H
Generated on Sat Feb 16 2019 05:00:51 for ResidualVM by 1.7.1