aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/gfx.h
diff options
context:
space:
mode:
authorEugene Sandulenko2013-07-16 23:54:18 +0300
committerEugene Sandulenko2013-09-06 14:48:18 +0300
commit57e03aedd3924cc9f675594b4b504b4f42958b40 (patch)
treefe3d1c73665cc2cf9159c50cf3f34a80f50e15b7 /engines/fullpipe/gfx.h
parent51a5b5c9c51ac40c3ec27e4b55f8c9118c9a580f (diff)
downloadscummvm-rg350-57e03aedd3924cc9f675594b4b504b4f42958b40.tar.gz
scummvm-rg350-57e03aedd3924cc9f675594b4b504b4f42958b40.tar.bz2
scummvm-rg350-57e03aedd3924cc9f675594b4b504b4f42958b40.zip
FULLPIPE: Initial code for bitmap rendering
Diffstat (limited to 'engines/fullpipe/gfx.h')
-rw-r--r--engines/fullpipe/gfx.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/engines/fullpipe/gfx.h b/engines/fullpipe/gfx.h
index a2bcad01b8..1205468b6f 100644
--- a/engines/fullpipe/gfx.h
+++ b/engines/fullpipe/gfx.h
@@ -32,16 +32,22 @@ class ShadowsItemArray : public CObArray {
};
struct Bitmap {
- int x;
- int y;
- int width;
- int height;
- byte *pixels;
- int type;
- int field_18;
- int flags;
+ int _x;
+ int _y;
+ int _width;
+ int _height;
+ byte *_pixels;
+ int _type;
+ int _field_18;
+ int _flags;
void load(Common::ReadStream *s);
+ void putDib(int x, int y, byte *palette);
+
+ void colorFill(byte *dest, int len, int color);
+ void paletteFill(byte *dest, byte *src, int len);
+ void copierKeyColor(byte *dest, byte *src, int len, int keyColor);
+ void copier(byte *dest, byte *src, int len);
};
class Picture : public MemoryObject {
@@ -69,7 +75,6 @@ class Picture : public MemoryObject {
Bitmap *getPixelData();
void draw(int x, int y, int style, int angle);
void drawRotated(int x, int y, int angle);
- void putDib(int x, int y);
byte getAlpha() { return (byte)_alpha; }
void setAlpha(byte alpha) { _alpha = alpha; }