diff options
author | Benjamin Haisch | 2008-09-17 17:08:33 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:06 +0100 |
commit | d299bbba01d3955d41d2ca3ebddca98a31f7eb27 (patch) | |
tree | e765eeab015d1a5508b0e34fee431df461537179 /engines/toltecs/segmap.h | |
parent | 150e555953d8efae73d1275e138586c91f655809 (diff) | |
download | scummvm-rg350-d299bbba01d3955d41d2ca3ebddca98a31f7eb27.tar.gz scummvm-rg350-d299bbba01d3955d41d2ca3ebddca98a31f7eb27.tar.bz2 scummvm-rg350-d299bbba01d3955d41d2ca3ebddca98a31f7eb27.zip |
TOLTECS: Changed how screen masks are handled.
At load time, a Surface is created for each screen mask, in which the gfx data from the background is copied.
This is the first step towards more optimized gfx rendering (more to come later).
Diffstat (limited to 'engines/toltecs/segmap.h')
-rw-r--r-- | engines/toltecs/segmap.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/engines/toltecs/segmap.h b/engines/toltecs/segmap.h index 7e5150ba4a..6c20eac431 100644 --- a/engines/toltecs/segmap.h +++ b/engines/toltecs/segmap.h @@ -80,17 +80,13 @@ public: public: // for debugging purposes struct SegmapMaskRect { - int16 y, x; - int16 height, width; - int16 maskOffset; + int16 x, y; + int16 width, height; int16 priority; + Graphics::Surface *surface; }; struct SegmapPathRect { - /* - int16 y, x; - int16 height, width; - */ int16 x1, y1, x2, y2; }; @@ -128,6 +124,9 @@ public: // for debugging purposes int16 findNextPathRect(int16 srcRectIndex, int16 destX, int16 destY); + void loadSegmapMaskRectSurface(byte *maskData, SegmapMaskRect &maskRect); + void freeSegmapMaskRectSurfaces(); + }; } // End of namespace Toltecs |