aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-09-08 21:43:33 +1000
committerPaul Gilbert2012-09-08 21:43:33 +1000
commitca84b2737f6bd1c6c971d5ff7451cfb164afadb8 (patch)
treeb7fd3331751f33e61f34f9da3423ee1e56ea4da6 /engines/hopkins/graphics.h
parentb8086aabc53f2359f9a6952f083701b4a01282be (diff)
downloadscummvm-rg350-ca84b2737f6bd1c6c971d5ff7451cfb164afadb8.tar.gz
scummvm-rg350-ca84b2737f6bd1c6c971d5ff7451cfb164afadb8.tar.bz2
scummvm-rg350-ca84b2737f6bd1c6c971d5ff7451cfb164afadb8.zip
HOPKINS: Add object loading
Diffstat (limited to 'engines/hopkins/graphics.h')
-rw-r--r--engines/hopkins/graphics.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/engines/hopkins/graphics.h b/engines/hopkins/graphics.h
new file mode 100644
index 0000000000..523ab28575
--- /dev/null
+++ b/engines/hopkins/graphics.h
@@ -0,0 +1,45 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * 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.
+ *
+ */
+
+#ifndef HOPKINS_GRAPHICS_H
+#define HOPKINS_GRAPHICS_H
+
+#include "common/scummsys.h"
+#include "common/endian.h"
+#include "common/str.h"
+
+namespace Hopkins {
+
+class ObjectManager {
+public:
+ static int Get_Largeur(const byte *objectData, int objIndex);
+ static int Get_Hauteur(const byte *objectData, int objIndex);
+ static int sprite_alone(const byte *objectData, byte *sprite, int objIndex);
+ static byte *DEL_FICHIER_OBJ();
+
+ static byte *CHARGE_SPRITE(const Common::String &file);
+ static int capture_mem_sprite(const byte *objectData, byte *sprite, int objIndex);
+};
+
+} // End of namespace Hopkins
+
+#endif /* HOPKINS_GRAPHICS_H */