diff options
author | WinterGrascph | 2016-05-05 18:36:02 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | cb2bb82b32ade022eb626c6b8cc580abc5b9df8d (patch) | |
tree | 7b95670762c3a85494df2666a2cb6825a392c665 /engines/dm/gfx.h | |
parent | 77cd7df08d31aecaae7390f7f12151f82e47dbac (diff) | |
download | scummvm-rg350-cb2bb82b32ade022eb626c6b8cc580abc5b9df8d.tar.gz scummvm-rg350-cb2bb82b32ade022eb626c6b8cc580abc5b9df8d.tar.bz2 scummvm-rg350-cb2bb82b32ade022eb626c6b8cc580abc5b9df8d.zip |
DM: Add support for transparency in blitting
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r-- | engines/dm/gfx.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h index f52381e3a4..3ecffb1aba 100644 --- a/engines/dm/gfx.h +++ b/engines/dm/gfx.h @@ -7,6 +7,25 @@ namespace DM { struct Frame; +enum Color { + colorNoTransparency = 255, + colorBlack = 0, + colorDarkGary = 1, + colorLightGray = 2, + colorDarkBrown = 3, + colorCyan = 4, + colorLightBrown = 5, + colorDarkGreen = 6, + colorLightGreen = 7, + colorRed = 8, + colorGold = 9, + colorFlesh = 10, + colorYellow = 11, + colorDarkestGray = 12, + colorLightestGray = 13, + colorBlue = 14, + colorWhite = 15 +}; enum dmPaletteEnum { palSwoosh = 0, @@ -51,9 +70,9 @@ public: uint16 getImageWidth(uint16 index); uint16 getImageHeight(uint16 index); void DisplayMan::blitToBitmap(byte *srcBitmap, uint16 srcFromX, uint16 srcToX, uint16 srcFromY, uint16 srcToY, - int16 srcWidth, uint16 destX, uint16 destY, byte *destBitmap, uint16 destWidth); + int16 srcWidth, uint16 destX, uint16 destY, byte *destBitmap, uint16 destWidth, Color transparent = colorNoTransparency); inline void DisplayMan::blitToScreen(byte *srcBitmap, uint16 srcFromX, uint16 srcToX, uint16 srcFromY, uint16 srcToY, - int16 srcWidth, uint16 destX, uint16 destY); + int16 srcWidth, uint16 destX, uint16 destY, Color transparent = colorNoTransparency); byte *getCurrentVgaBuffer(); void updateScreen(); void drawDungeon(); |