diff options
author | Filippos Karapetis | 2016-09-27 02:34:20 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-03 00:34:36 +0300 |
commit | 88f3fc07603d132b12d366509e547e4367787700 (patch) | |
tree | 92f48c2e79a91cc238a7312615fc4204f93a8a75 /engines/chewy/graphics.h | |
parent | 8c7c42d13d652abd8e7982fb402cc70150e15491 (diff) | |
download | scummvm-rg350-88f3fc07603d132b12d366509e547e4367787700.tar.gz scummvm-rg350-88f3fc07603d132b12d366509e547e4367787700.tar.bz2 scummvm-rg350-88f3fc07603d132b12d366509e547e4367787700.zip |
CHEWY: Implement initial sprite drawing, font loading and text drawing
Diffstat (limited to 'engines/chewy/graphics.h')
-rw-r--r-- | engines/chewy/graphics.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/chewy/graphics.h b/engines/chewy/graphics.h index 28af8fedc6..a3f6005942 100644 --- a/engines/chewy/graphics.h +++ b/engines/chewy/graphics.h @@ -28,6 +28,7 @@ namespace Chewy { class SpriteResource; +class Font; class Graphics { public: @@ -35,7 +36,11 @@ public: virtual ~Graphics(); void drawImage(Common::String filename, int imageNum); + void drawSprite(Common::String filename, int spriteNum, uint x, uint y); void playVideo(uint num); + void loadFont(Common::String filename); + void drawText(Common::String text, uint x, uint y); + void setCursor(uint num, bool newCursor = true); void showCursor(); void hideCursor(); @@ -43,11 +48,14 @@ public: void nextCursor(); private: + void drawTransparent(uint16 x, uint16 y, byte *data, uint16 width, uint16 height, byte transparentColor); + ChewyEngine *_vm; uint _curCursor; uint _curCursorFrame; SpriteResource *_cursorSprites; + Font *_font; }; } // End of namespace Chewy |