aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/graphics.h
diff options
context:
space:
mode:
authorPaul Gilbert2013-06-14 22:01:59 -0400
committerPaul Gilbert2013-06-14 22:01:59 -0400
commitb02c72b45f0ea15490b41896e33d40cb783b96e6 (patch)
treede0d1865930999a1db095b74fb6bce2e2ce784e9 /engines/voyeur/graphics.h
parent0fe067ba4a2d0eea71ad91eaad1d537f1b42e97c (diff)
downloadscummvm-rg350-b02c72b45f0ea15490b41896e33d40cb783b96e6.tar.gz
scummvm-rg350-b02c72b45f0ea15490b41896e33d40cb783b96e6.tar.bz2
scummvm-rg350-b02c72b45f0ea15490b41896e33d40cb783b96e6.zip
VOYEUR: Initial implementation of drawText method
Diffstat (limited to 'engines/voyeur/graphics.h')
-rw-r--r--engines/voyeur/graphics.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/engines/voyeur/graphics.h b/engines/voyeur/graphics.h
index cd1d47b6fc..9c66a32a67 100644
--- a/engines/voyeur/graphics.h
+++ b/engines/voyeur/graphics.h
@@ -45,6 +45,8 @@ class ViewPortListResource;
class FontResource;
class CMapResource;
+enum FontJustify { ALIGN_LEFT = 0, ALIGN_CENTRE = 1, ALIGN_RIGHT = 2 };
+
class FontInfo {
public:
FontResource *_curFont;
@@ -53,7 +55,7 @@ public:
byte _picPick;
byte _picOnOff;
byte _fontFlags;
- byte _justify;
+ FontJustify _justify;
int _fontSaveBack;
Common::Point _pos;
int _justifyWidth;
@@ -64,9 +66,19 @@ public:
int _shadowColor;
public:
FontInfo();
- FontInfo(byte picFlags, byte picSelect, byte picPick, byte picOnOff, byte fontFlags, byte justify,
- int fontSaveBack, const Common::Point &pos, int justifyWidth, int justifyHeight,
- const Common::Point &shadow, int foreColor, int backColor, int shadowColor);
+ FontInfo(byte picFlags, byte picSelect, byte picPick, byte picOnOff, byte fontFlags,
+ FontJustify justify, int fontSaveBack, const Common::Point &pos, int justifyWidth,
+ int justifyHeight, const Common::Point &shadow, int foreColor, int backColor,
+ int shadowColor);
+};
+
+class DrawInfo {
+public:
+ int _penColor;
+ Common::Point _pos;
+ int _flags;
+public:
+ DrawInfo(int penColor, const Common::Point &pos, int flags);
};
typedef void (GraphicsManager::*GraphicMethodPtr)();
@@ -96,6 +108,9 @@ public:
CMapResource *_backColors;
FontInfo *_fontPtr;
FontInfo _defaultFontInfo;
+ DrawInfo *_drawPtr;
+ DrawInfo _defaultDrawInfo;
+ bool _drawTextPermFlag;
private:
static void fadeIntFunc();
static void vDoCycleInt();