aboutsummaryrefslogtreecommitdiff
path: root/engines/tucker/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tucker/graphics.h')
-rw-r--r--engines/tucker/graphics.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/engines/tucker/graphics.h b/engines/tucker/graphics.h
index c04ddc8b67..4ca51c39ec 100644
--- a/engines/tucker/graphics.h
+++ b/engines/tucker/graphics.h
@@ -30,20 +30,16 @@
namespace Tucker {
-enum {
- kCharSet1CharW = 10,
- kCharSet1CharH = 10,
- kCharSet1CharSize = kCharSet1CharW * kCharSet1CharH,
- kCharSet1CharsCount = 32 * 7,
- kCharSet2CharW = 19,
- kCharSet2CharH = 10,
- kCharSet2CharSize = kCharSet2CharW * kCharSet2CharH,
- kCharSet2CharsCount = 16 * 6
-};
-
class Graphics {
public:
+ struct Charset {
+ int charW;
+ int charH;
+ int xCount;
+ int yCount;
+ };
+
static int encodeRLE(const uint8 *src, uint8 *dst, int w, int h);
static int encodeRAW(const uint8 *src, uint8 *dst, int w, int h);
@@ -57,6 +53,12 @@ public:
static void drawStringChar(uint8 *dst, uint8 chr, int pitch, uint8 chrColor, const uint8 *src);
static void drawStringChar2(uint8 *dst, uint8 chr, int pitch, uint8 chrColor, const uint8 *src);
+
+ static const Charset _enCharset;
+ static const Charset _frCharset;
+ static const Charset _creditsCharset;
+
+ static const Charset *_charset;
};
} // namespace Tucker