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 enum BoundaryLineMode {
33  kBoundaryLinesFromResource,
34  kBoundaryLinesHidden,
35  kBoundaryLinesShown
36 };
37 
38 struct Presentation {
39  int bufferHeight;
40  BoundaryLineMode boundaryLines;
41  bool serviceFramesInline;
42 };
43 
44 // Variables shared with other AnimView namespace files
45 extern int speechFlags;
46 extern int current_error_code;
47 extern int currentFrame, minFrame, maxFrame;
48 extern bool foundSeries;
49 extern int seriesMinFrame, seriesMaxFrame;
50 extern bool timerFlag1;
51 extern bool peelFlag;
52 extern int runCtr1;
53 extern int runFx;
54 extern long timer1, timer2;;
55 extern AnimPtr current_anim;
56 extern AnimInterPtr current_anim_inter;
57 extern int speechIndex;
58 extern int speechLoops;
59 extern int runVal6, runVal7, runVal8;
60 extern bool loadFontFlag;
61 extern int imageFrame;
62 extern CycleList anim_cycle_list;
63 extern bool has_cycles;
64 extern int currentViewX, currentViewY;
65 extern int boundaryLineColor;
66 extern int concat_mode;
67 extern bool wait_for_music_at_end;
68 extern bool stop_music_at_end;
69 extern bool hasSpeechAudio;
70 extern int speechResourceId;
71 
72 // Main animview function
73 extern void animview_main(const char *resName, const Presentation &presentation);
74 
75 } // namespace AnimView
76 } // namespace MADS
77 
78 #endif
Definition: animview.h:38
Definition: anim.h:399
Definition: anim.h:413
Definition: anim_timer.h:27
Definition: color.h:106