ScummVM API documentation
animview.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 MADS_ANIMVIEW_H
23 #define MADS_ANIMVIEW_H
24 
25 #include "audio/audiostream.h"
26 #include "mads/core/anim.h"
27 #include "mads/core/cycle.h"
28 
29 namespace MADS {
30 namespace AnimView {
31 
32 struct Presentation {
33  int bufferHeight;
34  bool drawBoundaryLines;
35  bool serviceFramesInline;
36 };
37 
38 // Variables shared with other AnimView namespace files
39 extern int speechFlags;
40 extern int current_error_code;
41 extern int currentFrame, minFrame, maxFrame;
42 extern bool foundSeries;
43 extern int seriesMinFrame, seriesMaxFrame;
44 extern bool timerFlag1;
45 extern bool peelFlag;
46 extern int runCtr1;
47 extern int runFx;
48 extern long timer1, timer2;;
49 extern AnimPtr current_anim;
50 extern AnimInterPtr current_anim_inter;
51 extern int speechIndex;
52 extern int speechLoops;
53 extern int runVal6, runVal7, runVal8;
54 extern bool loadFontFlag;
55 extern int imageFrame;
56 extern CycleList anim_cycle_list;
57 extern bool has_cycles;
58 extern int currentViewX, currentViewY;
59 extern int concat_mode;
60 extern bool wait_for_music_at_end;
61 extern bool stop_music_at_end;
62 extern bool hasSpeechAudio;
63 extern int speechResourceId;
64 
65 // Main animview function
66 extern void animview_main(const char *resName);
67 extern void animview_main(const char *resName, const Presentation &presentation);
68 
69 } // namespace AnimView
70 } // namespace MADS
71 
72 #endif
Definition: animview.h:32
Definition: anim.h:399
Definition: anim.h:413
Definition: anim_timer.h:27
Definition: color.h:106