2002-03-22 03:31:55 +00:00
|
|
|
/* ScummVM - Scumm Interpreter
|
|
|
|
* Copyright (C) 2001 Ludvig Strigeus
|
2006-01-18 17:39:49 +00:00
|
|
|
* Copyright (C) 2001-2006 The ScummVM project
|
2002-03-22 03:31:55 +00:00
|
|
|
*
|
|
|
|
* 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
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2002-03-22 03:31:55 +00:00
|
|
|
*
|
2006-02-11 09:55:41 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2002-03-22 03:31:55 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2002-07-17 20:55:36 +00:00
|
|
|
#ifndef GFX_H
|
|
|
|
#define GFX_H
|
|
|
|
|
2004-08-08 22:10:38 +00:00
|
|
|
#include "graphics/surface.h"
|
2003-05-15 21:57:38 +00:00
|
|
|
|
2003-10-03 18:33:57 +00:00
|
|
|
namespace Scumm {
|
|
|
|
|
2003-10-02 22:42:03 +00:00
|
|
|
class ScummEngine;
|
2003-09-05 20:18:20 +00:00
|
|
|
|
2004-01-03 21:22:07 +00:00
|
|
|
/** Camera modes */
|
|
|
|
enum {
|
|
|
|
kNormalCameraMode = 1,
|
|
|
|
kFollowActorCameraMode = 2,
|
|
|
|
kPanningCameraMode = 3
|
2002-03-22 03:30:57 +00:00
|
|
|
};
|
|
|
|
|
2004-01-03 21:22:07 +00:00
|
|
|
/** Camera state data */
|
|
|
|
struct CameraData {
|
2003-10-02 17:43:02 +00:00
|
|
|
Common::Point _cur;
|
|
|
|
Common::Point _dest;
|
|
|
|
Common::Point _accel;
|
|
|
|
Common::Point _last;
|
2002-03-22 03:30:57 +00:00
|
|
|
int _leftTrigger, _rightTrigger;
|
|
|
|
byte _follows, _mode;
|
|
|
|
bool _movingToActor;
|
|
|
|
};
|
|
|
|
|
2004-01-03 21:22:07 +00:00
|
|
|
/** Virtual screen identifiers */
|
2004-01-03 22:45:23 +00:00
|
|
|
enum VirtScreenNumber {
|
2004-01-03 21:22:07 +00:00
|
|
|
kMainVirtScreen = 0, // The 'stage'
|
|
|
|
kTextVirtScreen = 1, // In V1-V3 games: the area where text is printed
|
2004-01-03 22:45:23 +00:00
|
|
|
kVerbVirtScreen = 2, // The verb area
|
|
|
|
kUnkVirtScreen = 3 // ?? Not sure what this one is good for...
|
2004-01-03 21:22:07 +00:00
|
|
|
};
|
|
|
|
|
2004-01-06 11:47:34 +00:00
|
|
|
/**
|
|
|
|
* In all Scumm games, one to four virtual screen (or 'windows') together make
|
|
|
|
* up the content of the actual screen. Thinking of virtual screens as fixed
|
|
|
|
* size, fixed location windows might help understanding them. Typical, in all
|
|
|
|
* scumm games there is either one single virtual screen covering the entire
|
|
|
|
* real screen (mostly in all newer games, e.g. Sam & Max, and all V7+ games).
|
|
|
|
* The classic setup consists of three virtual screens: one at the top of the
|
|
|
|
* screen, where all conversation texts are printed; then the main one (which
|
|
|
|
* I like calling 'the stage', since all the actors are doing their stuff
|
|
|
|
* there), and finally the lower part of the real screen is taken up by the
|
|
|
|
* verb area.
|
|
|
|
* Finally, in V5 games and some V6 games, it's almost the same as in the
|
|
|
|
* original games, except that there is no separate conversation area.
|
|
|
|
*
|
|
|
|
* If you now wonder what the last screen is/was good for: I am not 100% sure,
|
|
|
|
* but it appears that it was used by the original engine to display stuff
|
|
|
|
* like the pause message, or questions ("Do you really want to restart?").
|
|
|
|
* It seems that it is not used at all by ScummVM, so we probably could just
|
|
|
|
* get rid of it and save a couple kilobytes of RAM.
|
|
|
|
*
|
2004-01-06 12:16:28 +00:00
|
|
|
* Each of these virtual screens has a fixed number or id (see also
|
|
|
|
* \ref VirtScreenNumber).
|
2004-01-06 11:47:34 +00:00
|
|
|
*/
|
2004-08-14 19:42:00 +00:00
|
|
|
struct VirtScreen : Graphics::Surface {
|
2004-01-06 11:47:34 +00:00
|
|
|
/**
|
2004-01-06 11:52:12 +00:00
|
|
|
* The unique id of this screen (corresponds to its position in the
|
2004-01-06 11:47:34 +00:00
|
|
|
* ScummEngine:virtscr array).
|
|
|
|
*/
|
2004-01-03 22:45:23 +00:00
|
|
|
VirtScreenNumber number;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-01-06 11:47:34 +00:00
|
|
|
/**
|
|
|
|
* Vertical position of the virtual screen. Tells how much the virtual
|
|
|
|
* screen is shifted along the y axis relative to the real screen.
|
|
|
|
*/
|
2002-03-22 03:30:57 +00:00
|
|
|
uint16 topline;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-01-06 11:47:34 +00:00
|
|
|
/**
|
|
|
|
* Horizontal scroll offset, tells how far the screen is scrolled to the
|
2004-01-06 12:16:28 +00:00
|
|
|
* right. Only used for the main screen. After all, verbs and the
|
|
|
|
* conversation text box don't have to scroll.
|
2004-01-06 11:47:34 +00:00
|
|
|
*/
|
2002-03-22 03:30:57 +00:00
|
|
|
uint16 xstart;
|
2004-01-06 11:47:34 +00:00
|
|
|
|
|
|
|
/**
|
2006-01-10 00:34:13 +00:00
|
|
|
* Flag indicating whether this screen has a back buffer or not. This is
|
|
|
|
* yet another feature which is only used by the main screen.
|
2004-01-06 11:47:34 +00:00
|
|
|
* Strictly spoken one could remove this variable and replace checks
|
|
|
|
* on it with checks on backBuf. But since some code needs to temporarily
|
|
|
|
* disable the backBuf (so it can abuse drawBitmap; see drawVerbBitmap()
|
|
|
|
* and useIm01Cursor()), we keep it (at least for now).
|
|
|
|
*/
|
|
|
|
bool hasTwoBuffers;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-01-06 11:47:34 +00:00
|
|
|
/**
|
|
|
|
* Pointer to the screen's back buffer, if it has one (see also
|
|
|
|
* the hasTwoBuffers member).
|
|
|
|
* The backBuf is used by drawBitmap to store the background graphics of
|
|
|
|
* the active room. This eases redrawing: whenever a portion of the screen
|
|
|
|
* has to be redrawn, first a copy from the backBuf content to screenPtr is
|
|
|
|
* performed. Then, any objects/actors in that area are redrawn atop that.
|
|
|
|
*/
|
2002-03-22 03:30:57 +00:00
|
|
|
byte *backBuf;
|
2003-06-01 14:30:26 +00:00
|
|
|
|
2004-01-06 11:47:34 +00:00
|
|
|
/**
|
|
|
|
* Array containing for each visible strip of this virtual screen the
|
|
|
|
* coordinate at which the dirty region of that strip starts.
|
|
|
|
* 't' stands for 'top' - the top coordinate of the dirty region.
|
|
|
|
* This together with bdirty is used to do efficient redrawing of
|
|
|
|
* the screen.
|
|
|
|
*/
|
2004-09-24 23:29:46 +00:00
|
|
|
uint16 tdirty[80 + 1];
|
2004-01-06 11:47:34 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Array containing for each visible strip of this virtual screen the
|
|
|
|
* coordinate at which the dirty region of that strip end.
|
|
|
|
* 'b' stands for 'bottom' - the bottom coordinate of the dirty region.
|
|
|
|
* This together with tdirty is used to do efficient redrawing of
|
|
|
|
* the screen.
|
|
|
|
*/
|
2004-09-24 23:29:46 +00:00
|
|
|
uint16 bdirty[80 + 1];
|
2004-01-06 11:47:34 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Convenience method to set the whole tdirty and bdirty arrays to one
|
|
|
|
* specific value each. This is mostly used to mark every as dirty in
|
|
|
|
* a single step, like so:
|
|
|
|
* vs->setDirtyRange(0, vs->height);
|
|
|
|
* or to mark everything as clean, like so:
|
|
|
|
* vs->setDirtyRange(0, 0);
|
|
|
|
*/
|
2003-06-01 14:30:26 +00:00
|
|
|
void setDirtyRange(int top, int bottom) {
|
2004-09-24 23:29:46 +00:00
|
|
|
for (int i = 0; i < 80 + 1; i++) {
|
2003-06-01 14:30:26 +00:00
|
|
|
tdirty[i] = top;
|
|
|
|
bdirty[i] = bottom;
|
|
|
|
}
|
|
|
|
}
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2004-08-14 19:42:00 +00:00
|
|
|
byte *getPixels(int x, int y) const {
|
|
|
|
return (byte *)pixels + xstart + y * pitch + x;
|
|
|
|
}
|
|
|
|
|
|
|
|
byte *getBackPixels(int x, int y) const {
|
|
|
|
return (byte *)backBuf + xstart + y * pitch + x;
|
|
|
|
}
|
2002-03-22 03:30:57 +00:00
|
|
|
};
|
|
|
|
|
2004-01-03 21:22:07 +00:00
|
|
|
/** Palette cycles */
|
|
|
|
struct ColorCycle {
|
2002-03-22 03:30:57 +00:00
|
|
|
uint16 delay;
|
|
|
|
uint16 counter;
|
|
|
|
uint16 flags;
|
|
|
|
byte start;
|
|
|
|
byte end;
|
|
|
|
};
|
|
|
|
|
2003-10-02 22:42:03 +00:00
|
|
|
/** Bomp graphics data, used as parameter to ScummEngine::drawBomp. */
|
2003-05-30 20:13:29 +00:00
|
|
|
struct BompDrawData {
|
2004-09-24 21:00:15 +00:00
|
|
|
Graphics::Surface dst;
|
|
|
|
|
2002-08-20 02:20:40 +00:00
|
|
|
int x, y;
|
2002-03-22 03:30:57 +00:00
|
|
|
byte scale_x, scale_y;
|
2003-05-28 20:01:47 +00:00
|
|
|
const byte *dataptr;
|
2002-03-22 03:30:57 +00:00
|
|
|
int srcwidth, srcheight;
|
2002-11-06 15:29:49 +00:00
|
|
|
uint16 shadowMode;
|
2003-05-30 15:06:29 +00:00
|
|
|
|
|
|
|
byte *maskPtr;
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2003-05-30 15:06:29 +00:00
|
|
|
BompDrawData() { memset(this, 0, sizeof(*this)); }
|
2002-03-22 03:30:57 +00:00
|
|
|
};
|
|
|
|
|
2004-01-03 22:45:23 +00:00
|
|
|
struct StripTable;
|
2003-06-04 21:45:29 +00:00
|
|
|
|
2005-03-25 01:52:20 +00:00
|
|
|
#define CHARSET_MASK_TRANSPARENCY 253
|
|
|
|
|
2002-12-04 13:36:27 +00:00
|
|
|
class Gdi {
|
2006-09-18 21:20:21 +00:00
|
|
|
protected:
|
2003-10-02 22:42:03 +00:00
|
|
|
ScummEngine *_vm;
|
2002-03-22 03:30:57 +00:00
|
|
|
|
2005-09-19 00:29:41 +00:00
|
|
|
byte _paletteMod;
|
2003-10-13 12:56:53 +00:00
|
|
|
byte *_roomPalette;
|
2005-05-11 13:02:40 +00:00
|
|
|
byte _transparentColor;
|
2002-03-22 03:30:57 +00:00
|
|
|
byte _decomp_shr, _decomp_mask;
|
2002-04-23 23:58:31 +00:00
|
|
|
uint32 _vertStripNextInc;
|
2002-03-22 03:30:57 +00:00
|
|
|
|
2003-05-15 21:31:03 +00:00
|
|
|
bool _zbufferDisabled;
|
|
|
|
|
2005-03-25 00:56:03 +00:00
|
|
|
/** Flag which is true when an object is being rendered, false otherwise. */
|
|
|
|
bool _objectMode;
|
|
|
|
|
2006-09-18 22:06:39 +00:00
|
|
|
public:
|
|
|
|
int _numZBuffer;
|
|
|
|
int _imgBufOffs[8];
|
|
|
|
int32 _numStrips;
|
2005-03-25 01:52:20 +00:00
|
|
|
|
2006-09-18 22:06:39 +00:00
|
|
|
protected:
|
2002-03-22 03:30:57 +00:00
|
|
|
/* Bitmap decompressors */
|
2004-09-22 17:57:20 +00:00
|
|
|
bool decompressBitmap(byte *dst, int dstPitch, const byte *src, int numLinesToProcess);
|
|
|
|
|
2004-09-24 21:35:37 +00:00
|
|
|
void drawStripEGA(byte *dst, int dstPitch, const byte *src, int height) const;
|
2004-09-22 17:57:20 +00:00
|
|
|
|
2004-09-25 11:33:50 +00:00
|
|
|
void drawStripComplex(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
|
2004-09-25 11:40:40 +00:00
|
|
|
void drawStripBasicH(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
|
|
|
|
void drawStripBasicV(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
|
2004-09-24 21:35:37 +00:00
|
|
|
|
2006-01-01 09:51:11 +00:00
|
|
|
void drawStripRaw(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
|
2004-09-24 21:35:37 +00:00
|
|
|
void unkDecode8(byte *dst, int dstPitch, const byte *src, int height) const;
|
|
|
|
void unkDecode9(byte *dst, int dstPitch, const byte *src, int height) const;
|
|
|
|
void unkDecode10(byte *dst, int dstPitch, const byte *src, int height) const;
|
|
|
|
void unkDecode11(byte *dst, int dstPitch, const byte *src, int height) const;
|
|
|
|
void drawStrip3DO(byte *dst, int dstPitch, const byte *src, int height, const bool transpCheck) const;
|
2004-09-25 11:17:23 +00:00
|
|
|
|
2004-09-30 23:30:59 +00:00
|
|
|
void drawStripHE(byte *dst, int dstPitch, const byte *src, int width, int height, const bool transpCheck) const;
|
2004-09-22 17:57:20 +00:00
|
|
|
|
|
|
|
/* Mask decompressors */
|
2005-05-21 09:05:58 +00:00
|
|
|
void decompressTMSK(byte *dst, const byte *tmsk, const byte *src, int height) const;
|
2004-09-24 21:35:37 +00:00
|
|
|
void decompressMaskImgOr(byte *dst, const byte *src, int height) const;
|
|
|
|
void decompressMaskImg(byte *dst, const byte *src, int height) const;
|
2002-03-22 03:30:57 +00:00
|
|
|
|
2004-09-22 17:57:20 +00:00
|
|
|
/* Misc */
|
2004-09-27 01:26:05 +00:00
|
|
|
int getZPlanes(const byte *smap_ptr, const byte *zplane_list[9], bool bmapImage) const;
|
2002-12-15 23:40:37 +00:00
|
|
|
|
2006-09-18 19:16:31 +00:00
|
|
|
virtual bool drawStrip(byte *dstPtr, VirtScreen *vs,
|
|
|
|
int x, int y, const int width, const int height,
|
|
|
|
int stripnr, const byte *smap_ptr);
|
|
|
|
|
|
|
|
virtual void decodeMask(int x, int y, const int width, const int height,
|
|
|
|
int stripnr, int numzbuf, const byte *zplane_list[9],
|
2006-09-18 19:58:22 +00:00
|
|
|
bool transpStrip, byte flag, const byte *tmsk_ptr);
|
2006-09-18 19:16:31 +00:00
|
|
|
|
2006-09-18 22:06:39 +00:00
|
|
|
virtual void prepareDrawBitmap(const byte *ptr, VirtScreen *vs,
|
|
|
|
const int x, const int y, const int width, const int height,
|
|
|
|
int stripnr, int numstrip);
|
2006-09-18 21:20:21 +00:00
|
|
|
|
2002-12-04 13:36:27 +00:00
|
|
|
public:
|
2006-09-18 21:20:21 +00:00
|
|
|
Gdi(ScummEngine *vm);
|
|
|
|
virtual ~Gdi();
|
|
|
|
|
|
|
|
virtual void init();
|
2006-09-18 22:22:35 +00:00
|
|
|
virtual void roomChanged(byte *roomptr);
|
|
|
|
void setTransparentColor(byte transparentColor) { _transparentColor = transparentColor; }
|
2004-08-08 22:10:38 +00:00
|
|
|
|
2003-05-28 20:01:47 +00:00
|
|
|
void drawBitmap(const byte *ptr, VirtScreen *vs, int x, int y, const int width, const int height,
|
2005-03-25 01:52:20 +00:00
|
|
|
int stripnr, int numstrip, byte flag);
|
2004-09-22 17:57:20 +00:00
|
|
|
|
2006-09-18 19:22:40 +00:00
|
|
|
#ifndef DISABLE_HE
|
2005-03-26 06:00:58 +00:00
|
|
|
void drawBMAPBg(const byte *ptr, VirtScreen *vs);
|
2004-09-05 17:39:54 +00:00
|
|
|
void drawBMAPObject(const byte *ptr, VirtScreen *vs, int obj, int x, int y, int w, int h);
|
2006-09-18 19:22:40 +00:00
|
|
|
#endif
|
2005-07-30 21:11:48 +00:00
|
|
|
|
2005-03-28 20:18:36 +00:00
|
|
|
byte *getMaskBuffer(int x, int y, int z);
|
2003-05-15 21:31:03 +00:00
|
|
|
void disableZBuffer() { _zbufferDisabled = true; }
|
|
|
|
void enableZBuffer() { _zbufferDisabled = false; }
|
2002-12-04 15:00:35 +00:00
|
|
|
|
|
|
|
void resetBackground(int top, int bottom, int strip);
|
|
|
|
|
2002-03-22 03:30:57 +00:00
|
|
|
enum DrawBitmapFlags {
|
2005-03-28 20:18:36 +00:00
|
|
|
dbAllowMaskOr = 1 << 0,
|
|
|
|
dbDrawMaskOnAll = 1 << 1,
|
|
|
|
dbObjectMode = 2 << 2
|
2002-03-22 03:30:57 +00:00
|
|
|
};
|
|
|
|
};
|
2002-07-17 20:55:36 +00:00
|
|
|
|
2006-09-18 21:20:21 +00:00
|
|
|
class GdiNES : public Gdi {
|
|
|
|
protected:
|
|
|
|
struct {
|
|
|
|
byte nametable[16][64], nametableObj[16][64];
|
|
|
|
byte attributes[64], attributesObj[64];
|
|
|
|
byte masktable[16][8], masktableObj[16][8];
|
|
|
|
int objX;
|
|
|
|
bool hasmask;
|
|
|
|
} _NES;
|
|
|
|
|
2006-09-18 22:06:39 +00:00
|
|
|
protected:
|
2006-09-18 21:20:21 +00:00
|
|
|
void decodeNESGfx(const byte *room);
|
|
|
|
void decodeNESObject(const byte *ptr, int xpos, int ypos, int width, int height);
|
|
|
|
|
|
|
|
void drawStripNES(byte *dst, byte *mask, int dstPitch, int stripnr, int top, int height);
|
|
|
|
void drawStripNESMask(byte *dst, int stripnr, int top, int height) const;
|
|
|
|
|
|
|
|
virtual bool drawStrip(byte *dstPtr, VirtScreen *vs,
|
|
|
|
int x, int y, const int width, const int height,
|
|
|
|
int stripnr, const byte *smap_ptr);
|
|
|
|
|
|
|
|
virtual void decodeMask(int x, int y, const int width, const int height,
|
|
|
|
int stripnr, int numzbuf, const byte *zplane_list[9],
|
|
|
|
bool transpStrip, byte flag, const byte *tmsk_ptr);
|
|
|
|
|
2006-09-18 22:06:39 +00:00
|
|
|
virtual void prepareDrawBitmap(const byte *ptr, VirtScreen *vs,
|
|
|
|
const int x, const int y, const int width, const int height,
|
|
|
|
int stripnr, int numstrip);
|
2006-09-18 21:20:21 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
GdiNES(ScummEngine *vm);
|
|
|
|
|
2006-09-18 22:22:35 +00:00
|
|
|
virtual void roomChanged(byte *roomptr);
|
2006-09-18 21:20:21 +00:00
|
|
|
};
|
|
|
|
|
2006-09-18 22:06:39 +00:00
|
|
|
class GdiV1 : public Gdi {
|
|
|
|
protected:
|
|
|
|
/** Render settings which are specific to the C64 graphic decoders. */
|
|
|
|
struct {
|
|
|
|
byte colors[4];
|
|
|
|
byte charMap[2048], objectMap[2048], picMap[4096], colorMap[4096];
|
|
|
|
byte maskMap[4096], maskChar[4096];
|
|
|
|
} _C64;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void decodeC64Gfx(const byte *src, byte *dst, int size) const;
|
|
|
|
|
|
|
|
void drawStripC64Object(byte *dst, int dstPitch, int stripnr, int width, int height);
|
|
|
|
void drawStripC64Background(byte *dst, int dstPitch, int stripnr, int height);
|
|
|
|
void drawStripC64Mask(byte *dst, int stripnr, int width, int height) const;
|
|
|
|
|
|
|
|
virtual bool drawStrip(byte *dstPtr, VirtScreen *vs,
|
|
|
|
int x, int y, const int width, const int height,
|
|
|
|
int stripnr, const byte *smap_ptr);
|
|
|
|
|
|
|
|
virtual void decodeMask(int x, int y, const int width, const int height,
|
|
|
|
int stripnr, int numzbuf, const byte *zplane_list[9],
|
|
|
|
bool transpStrip, byte flag, const byte *tmsk_ptr);
|
|
|
|
|
|
|
|
virtual void prepareDrawBitmap(const byte *ptr, VirtScreen *vs,
|
|
|
|
const int x, const int y, const int width, const int height,
|
|
|
|
int stripnr, int numstrip);
|
|
|
|
|
|
|
|
public:
|
|
|
|
GdiV1(ScummEngine *vm);
|
|
|
|
|
2006-09-18 22:22:35 +00:00
|
|
|
virtual void roomChanged(byte *roomptr);
|
2006-09-18 22:06:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class GdiV2 : public Gdi {
|
|
|
|
protected:
|
|
|
|
/** For V2 games, we cache offsets into the room graphics, to speed up things. */
|
|
|
|
StripTable *_roomStrips;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
StripTable *generateStripTable(const byte *src, int width, int height, StripTable *table) const;
|
|
|
|
|
|
|
|
virtual bool drawStrip(byte *dstPtr, VirtScreen *vs,
|
|
|
|
int x, int y, const int width, const int height,
|
|
|
|
int stripnr, const byte *smap_ptr);
|
|
|
|
|
|
|
|
virtual void decodeMask(int x, int y, const int width, const int height,
|
|
|
|
int stripnr, int numzbuf, const byte *zplane_list[9],
|
|
|
|
bool transpStrip, byte flag, const byte *tmsk_ptr);
|
|
|
|
|
|
|
|
virtual void prepareDrawBitmap(const byte *ptr, VirtScreen *vs,
|
|
|
|
const int x, const int y, const int width, const int height,
|
|
|
|
int stripnr, int numstrip);
|
|
|
|
|
|
|
|
public:
|
|
|
|
GdiV2(ScummEngine *vm);
|
|
|
|
~GdiV2();
|
|
|
|
|
2006-09-18 22:22:35 +00:00
|
|
|
virtual void roomChanged(byte *roomptr);
|
2006-09-18 22:06:39 +00:00
|
|
|
};
|
2003-05-29 12:55:28 +00:00
|
|
|
|
2003-10-03 18:33:57 +00:00
|
|
|
} // End of namespace Scumm
|
|
|
|
|
2002-07-17 20:55:36 +00:00
|
|
|
#endif
|