From 76abfae403eadc8f9ace8a5e0d34d39dc07b3d5a Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Sat, 8 Jun 2019 00:16:03 +0530 Subject: HDB: Add sky tiles and non-graphics to DrawMan --- engines/hdb/draw-manager.cpp | 4 ++++ engines/hdb/draw-manager.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/engines/hdb/draw-manager.cpp b/engines/hdb/draw-manager.cpp index 35c2b4ce4a..d8bfa3101c 100644 --- a/engines/hdb/draw-manager.cpp +++ b/engines/hdb/draw-manager.cpp @@ -61,6 +61,10 @@ bool DrawMan::init() { // Init Sky Data _currentSky = 0; + _tileSkyStars = getTileIndex("t32_sky_stars"); + _tileSkyStarsLeft = getTileIndex("t32_sky_stars_left_slow"); + _tileSkyClouds = getTileIndex("t32_sky_stars_stationary"); // Not completely sure about this filename. + _skyClouds = NULL; /* TODO: Setup Gamma Table diff --git a/engines/hdb/draw-manager.h b/engines/hdb/draw-manager.h index 025b594c74..3c061cce18 100644 --- a/engines/hdb/draw-manager.h +++ b/engines/hdb/draw-manager.h @@ -34,6 +34,7 @@ enum { }; class Tile; +class Picture; struct TileLookup { const char *filename; @@ -56,6 +57,11 @@ private: TileLookup *_tLookupArray; uint16 _skyTiles[kMaxSkies]; int _currentSky; // 0 if no Sky, 1+ for which Sky to use + int _tileSkyStars; // Index of sky_stars tile + int _tileSkyStarsLeft; // Left-scrolling stars, slow + int _tileSkyClouds; // Index of sky_stars tile + Picture *_skyClouds; + bool _systemInit; }; -- cgit v1.2.3