ScummVM API documentation
anims.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#ifndef TOT_ANIMS_H
22#define TOT_ANIMS_H
23
24#include "common/scummsys.h"
25
26namespace Tot {
27
28void drawFlc(uint x, uint y, int32 offset, uint loop,
29 byte speed, byte eventNumber, bool fullPalette, bool isSkipAllowed,
30 bool limitPaletteTo200, bool &exitAnim);
31
35struct FliHeader {
36 int32 size; // file size
37 uint magic, // format id
38 frames, // number of animation frames
39 width, // anim width
40 height, // anim height
41 depth, // 8 bits per pixel
42 flags;
43 int32 speed; // time delay between frames
44 uint reserved1; // all set to zero
45 int32 created; // creation date in DOS format
46 byte creator[3]; // serial of creator program
47 int32 updated; // update date in DOS format
48 byte updator[3]; // serial of updating program
49 uint aspectx, // aspect ratio
50 aspecty; // aspect ratio
51 uint reserved2[19]; // all zeroes
52 int32 ofsframe1, // Offset to frame 1 (FLC only)
53 ofsframe2; // Offset to frame 2 (FLC only)
54 uint reserved3[20]; // All zeroes
55};
56
57} // End of namespace Tot
58#endif
Definition: anims.h:35