aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/graphics.h
diff options
context:
space:
mode:
authorMatthew Stewart2018-07-26 00:18:32 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commit919db23841c24475257182f6daddea59cefb408a (patch)
tree45e91c38d8953fe874ebe91627ae7d4190745b98 /engines/startrek/graphics.h
parentb1fa6126cc0429aaa378550f28d234e06d35a3aa (diff)
downloadscummvm-rg350-919db23841c24475257182f6daddea59cefb408a.tar.gz
scummvm-rg350-919db23841c24475257182f6daddea59cefb408a.tar.bz2
scummvm-rg350-919db23841c24475257182f6daddea59cefb408a.zip
STARTREK: Implement "BAN" files.
These are background animations in various rooms, purely visual.
Diffstat (limited to 'engines/startrek/graphics.h')
-rw-r--r--engines/startrek/graphics.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/startrek/graphics.h b/engines/startrek/graphics.h
index ecef5fc9ea..1a71aa29b3 100644
--- a/engines/startrek/graphics.h
+++ b/engines/startrek/graphics.h
@@ -61,6 +61,8 @@ public:
void fillBackgroundRect(const Common::Rect &rect, byte color);
byte *getBackgroundPixels();
+ byte *lockScreenPixels();
+ void unlockScreenPixels();
void clearScreenAndPriBuffer();
/**
@@ -106,10 +108,19 @@ public:
void drawSprite(const Sprite &sprite, ::Graphics::Surface *surface, const Common::Rect &rect);
void drawAllSprites(bool updateScreen = true);
/**
+ * This function should only be called after "drawAllSprites" (so that sprite rects
+ * are updated).
+ */
+ void drawAllSpritesInRect(const Common::Rect &rect);
+ /**
* Sets "bitmapChanged" to true on all sprites before calling drawAllSprites.
*/
void forceDrawAllSprites(bool updateScreen = true);
/**
+ * Flushes the screen. Usually called by "drawAllSprites".
+ */
+ void updateScreen();
+ /**
* Returns the sprite at the given position (ignores mouse).
*/
Sprite *getSpriteAt(int16 x, int16 y);