aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/graphics.h
diff options
context:
space:
mode:
authorMatthew Stewart2018-05-11 02:17:57 -0400
committerEugene Sandulenko2018-08-09 08:37:30 +0200
commitd375429abef0109a483970975b053292efa4bd6e (patch)
tree448bd50bc330010834b3e1f655903bf1b2d7e93e /engines/startrek/graphics.h
parentfde5f22f9783c557c74d0267d8118c1a0c6d498e (diff)
downloadscummvm-rg350-d375429abef0109a483970975b053292efa4bd6e.tar.gz
scummvm-rg350-d375429abef0109a483970975b053292efa4bd6e.tar.bz2
scummvm-rg350-d375429abef0109a483970975b053292efa4bd6e.zip
STARTREK: Objects and animations.
Testing them with the transporter room.
Diffstat (limited to 'engines/startrek/graphics.h')
-rw-r--r--engines/startrek/graphics.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/engines/startrek/graphics.h b/engines/startrek/graphics.h
index 277c63615c..758f327d6b 100644
--- a/engines/startrek/graphics.h
+++ b/engines/startrek/graphics.h
@@ -70,18 +70,17 @@ public:
Graphics(StarTrekEngine *vm);
~Graphics();
- void loadEGAData(const char *egaFile);
- void drawBackgroundImage(const char *filename);
-
+ void setBackgroundImage(SharedPtr<Bitmap> bitmap);
void loadPalette(const String &paletteFile);
void loadPri(const char *priFile);
+ void clearPri();
+ byte getPriValue(int x, int y);
SharedPtr<Bitmap> loadBitmap(String basename);
Common::Point getMousePos();
void setMouseCursor(SharedPtr<Bitmap> bitmap);
- void redrawScreen();
void drawSprite(const Sprite &sprite);
void drawSprite(const Sprite &sprite, const Common::Rect &rect);
void drawAllSprites();
@@ -89,18 +88,19 @@ public:
void addSprite(Sprite *sprite);
void delSprite(Sprite *sprite);
+
+ void drawDirectToScreen(SharedPtr<Bitmap> bitmap);
+ void loadEGAData(const char *egaFile);
+ void drawBackgroundImage(const char *filename);
private:
- void drawBitmapToScreen(Bitmap *bitmap);
-
-
StarTrekEngine *_vm;
Font *_font;
bool _egaMode;
byte *_egaData;
- byte *_priData;
byte *_lutData;
+ byte _priData[SCREEN_WIDTH*SCREEN_HEIGHT / 2];
Common::Rect _screenRect;
SharedPtr<Bitmap> _backgroundImage;
@@ -156,11 +156,13 @@ public:
private:
int16 _textDisplayMode;
+
+public:
uint32 _textboxVar2;
- uint32 _textboxVar3;
uint16 _textboxVar6;
bool _textboxHasMultipleChoices;
+private:
SharedPtr<Menu> _activeMenu;
// Saved value of StarTrekEngine::_keyboardControlsMouse when menus are up