ScummVM API documentation
FadeHandler.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/*
23 * Copyright (C) 2006-2010 - Frictional Games
24 *
25 * This file is part of Penumbra Overture.
26 */
27
28#ifndef GAME_FADE_HANDLER_H
29#define GAME_FADE_HANDLER_H
30
31#include "hpl1/engine/engine.h"
32
33using namespace hpl;
34
35class cInit;
36
37class cFadeHandler : public iUpdateable {
38public:
39 cFadeHandler(cInit *apInit);
41
42 void FadeOut(float afTime);
43 void FadeIn(float afTime);
44 bool IsActive();
45
46 void SetWideScreenActive(bool abX);
47
48 void OnStart();
49 void Update(float afTimeStep);
50 void Reset();
51 void OnDraw();
52
53private:
54 cInit *mpInit;
55 cGraphicsDrawer *mpDrawer;
56
57 cGfxObject *mpBlackGfx;
58
59 bool mbActive;
60 float mfAlpha;
61 float mfAlphaAdd;
62
63 bool mbWideScreenActive;
64 float mfWideScreenAlpha;
65};
66
67#endif // GAME_FADE_HANDLER_H
Definition: FadeHandler.h:37
Definition: Init.h:70
Definition: GfxObject.h:38
Definition: GraphicsDrawer.h:77
Definition: Updateable.h:35