aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/graphics.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-09-08 23:43:35 +1000
committerPaul Gilbert2012-09-08 23:43:35 +1000
commitecee539bfde463648d69e0330500ab5ad3cde080 (patch)
treefc04d1cfd7981ae224a199966d060be3f9b7638e /engines/hopkins/graphics.h
parentca84b2737f6bd1c6c971d5ff7451cfb164afadb8 (diff)
downloadscummvm-rg350-ecee539bfde463648d69e0330500ab5ad3cde080.tar.gz
scummvm-rg350-ecee539bfde463648d69e0330500ab5ad3cde080.tar.bz2
scummvm-rg350-ecee539bfde463648d69e0330500ab5ad3cde080.zip
HOPKINS: Implement proper graphics initialisation code
Diffstat (limited to 'engines/hopkins/graphics.h')
-rw-r--r--engines/hopkins/graphics.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/engines/hopkins/graphics.h b/engines/hopkins/graphics.h
index 523ab28575..de80160dda 100644
--- a/engines/hopkins/graphics.h
+++ b/engines/hopkins/graphics.h
@@ -29,8 +29,17 @@
namespace Hopkins {
+struct RGB8 {
+ byte r;
+ byte g;
+ byte b;
+};
+
class ObjectManager {
public:
+ static byte *CHANGE_OBJET(int objIndex);
+ static byte *CAPTURE_OBJET(int objIndex, int mode);
+
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);
@@ -38,6 +47,26 @@ public:
static byte *CHARGE_SPRITE(const Common::String &file);
static int capture_mem_sprite(const byte *objectData, byte *sprite, int objIndex);
+ static int AJOUTE_OBJET(int objIndex);
+};
+
+class GraphicsManager {
+public:
+ bool SDL_MODEYES;
+ int SDL_ECHELLE;
+ int XSCREEN;
+ int YSCREEN;
+ int WinScan;
+ int Winbpp;
+ byte SD_PIXELS[514];
+ byte *PAL_PIXELS;
+ int nbrligne;
+ RGB8 cmap[256];
+ bool Linear;
+public:
+ GraphicsManager();
+
+ void SET_MODE(int width, int height);
};
} // End of namespace Hopkins