diff options
author | johndoe123 | 2014-04-11 09:40:54 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 2e149cf651ee9344ee96ea904c5dce5a444aeaff (patch) | |
tree | 5fb2c760d303a4db0856cbc4de7c94609d8b4238 /engines/illusions/screen.h | |
parent | 67366aa04b723fadec300cc6ce1d5c6ee9241af7 (diff) | |
download | scummvm-rg350-2e149cf651ee9344ee96ea904c5dce5a444aeaff.tar.gz scummvm-rg350-2e149cf651ee9344ee96ea904c5dce5a444aeaff.tar.bz2 scummvm-rg350-2e149cf651ee9344ee96ea904c5dce5a444aeaff.zip |
ILLUSIONS: More work on Duckman
- Implement Duckman cursor and interaction handling
- Add more script opcodes
- Add TextDrawer and ScreenText (needs minor refactoring for BBDOU)
Diffstat (limited to 'engines/illusions/screen.h')
-rw-r--r-- | engines/illusions/screen.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/illusions/screen.h b/engines/illusions/screen.h index 5bd5eb79ce..91750cfba5 100644 --- a/engines/illusions/screen.h +++ b/engines/illusions/screen.h @@ -31,7 +31,7 @@ namespace Illusions { class IllusionsEngine; -class Screen; +class FontResource; struct SpriteDecompressQueueItem { byte *_drawFlags; @@ -112,8 +112,11 @@ public: void decompressSprite(SpriteDecompressQueueItem *item); void drawSurface(Common::Rect &dstRect, Graphics::Surface *surface, Common::Rect &srcRect, int16 scale, uint32 flags); void setPalette(byte *colors, uint start, uint count); + void setPaletteEntry(int16 index, byte r, byte g, byte b); void getPalette(byte *colors); void updatePalette(); + void drawText(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 *text, uint count); + int16 drawChar(FontResource *font, Graphics::Surface *surface, int16 x, int16 y, uint16 c); int16 getScreenWidth() const { return _backSurface->w; } int16 getScreenHeight() const { return _backSurface->h; } public: |