aboutsummaryrefslogtreecommitdiff
path: root/engines/simon/vga.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/simon/vga.h')
-rw-r--r--engines/simon/vga.h129
1 files changed, 129 insertions, 0 deletions
diff --git a/engines/simon/vga.h b/engines/simon/vga.h
new file mode 100644
index 0000000000..2dd77633de
--- /dev/null
+++ b/engines/simon/vga.h
@@ -0,0 +1,129 @@
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2002-2006 The ScummVM project
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#ifndef SIMON_VGA_H
+#define SIMON_VGA_H
+
+namespace Simon {
+
+#if !defined(__GNUC__)
+ #pragma START_PACK_STRUCTS
+#endif
+
+// Feeble Files
+struct VgaFileHeader_Feeble {
+ uint16 x_1;
+ uint16 hdr2_start;
+ uint16 x_2, x_3;
+} GCC_PACK;
+
+struct VgaFileHeader2_Feeble {
+ uint16 imageCount;
+ uint16 x_2;
+ uint16 animationCount;
+ uint16 x_3;
+ uint16 imageTable;
+ uint16 x_4;
+ uint16 animationTable;
+ uint16 x_5;
+} GCC_PACK;
+
+struct ImageHeader_Feeble {
+ uint16 id;
+ uint16 x_1;
+ uint16 scriptOffs;
+ uint16 x_2;
+} GCC_PACK;
+
+struct AnimationHeader_Feeble {
+ uint16 scriptOffs;
+ uint16 x_2;
+ uint16 id;
+} GCC_PACK;
+
+// Simon 1/2
+struct VgaFileHeader_Simon {
+ uint16 x_1, x_2;
+ uint16 hdr2_start;
+ uint16 x_3, x_4;
+} GCC_PACK;
+
+struct VgaFileHeader2_Simon {
+ uint16 x_1;
+ uint16 imageCount;
+ uint16 x_2;
+ uint16 animationCount;
+ uint16 x_3;
+ uint16 imageTable;
+ uint16 x_4;
+ uint16 animationTable;
+ uint16 x_5;
+} GCC_PACK;
+
+struct ImageHeader_Simon {
+ uint16 id;
+ uint16 x_1;
+ uint16 x_2;
+ uint16 scriptOffs;
+} GCC_PACK;
+
+struct AnimationHeader_Simon {
+ uint16 id;
+ uint16 x_2;
+ uint16 scriptOffs;
+} GCC_PACK;
+
+
+#if !defined(__GNUC__)
+ #pragma END_PACK_STRUCTS
+#endif
+
+struct VC10_state {
+ int image;
+ uint16 flags;
+ int x, y;
+
+ byte palette;
+
+ uint width, height;
+ uint draw_width, draw_height;
+ uint x_skip, y_skip;
+
+ byte *surf2_addr;
+ uint surf2_pitch;
+
+ byte *surf_addr;
+ uint surf_pitch;
+
+ uint16 dl, dh;
+
+ const byte *depack_src;
+ int8 depack_cont;
+
+ byte depack_dest[480];
+};
+
+byte *vc10_depack_column(VC10_state *vs);
+
+} // End of namespace Simon
+
+#endif