ScummVM API documentation
fmvscreen.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 STARK_UI_FMV_PLAYER_H
23 #define STARK_UI_FMV_PLAYER_H
24 
25 #include "engines/stark/ui/screen.h"
26 #include "engines/stark/ui/window.h"
27 
28 #include "video/bink_decoder.h"
29 
30 namespace Video {
31 class BinkDecoder;
32 }
33 
34 namespace Stark {
35 
36 namespace Gfx {
37 class SurfaceRenderer;
38 class Bitmap;
39 }
40 
46 class FMVScreen : public SingleWindowScreen {
47 public:
48  FMVScreen(Gfx::Driver *gfx, Cursor *cursor);
49  virtual ~FMVScreen();
50  void play(const Common::Path &name);
51  void stop();
52 
53 protected:
54  void onGameLoop() override;
55  void onRender() override;
56 
57 private:
58  bool isPlaying();
59 
60  Video::BinkDecoder *_decoder;
61  Gfx::SurfaceRenderer *_surfaceRenderer;
62  Gfx::Bitmap *_bitmap;
63 };
64 
65 } // End of namespace Stark
66 
67 #endif // STARK_UI_FMV_PLAYER_H
Definition: fmvscreen.h:46
Definition: screen.h:80
Definition: path.h:52
Definition: surfacerenderer.h:36
Definition: driver.h:44
Definition: cursor.h:45
Definition: console.h:27
Definition: bitmap.h:38
Definition: avi_frames.h:36