aboutsummaryrefslogtreecommitdiff
path: root/engines/chewy/resource.h
diff options
context:
space:
mode:
authorFilippos Karapetis2016-09-27 02:34:20 +0300
committerFilippos Karapetis2016-10-03 00:34:36 +0300
commit88f3fc07603d132b12d366509e547e4367787700 (patch)
tree92f48c2e79a91cc238a7312615fc4204f93a8a75 /engines/chewy/resource.h
parent8c7c42d13d652abd8e7982fb402cc70150e15491 (diff)
downloadscummvm-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/resource.h')
-rw-r--r--engines/chewy/resource.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/engines/chewy/resource.h b/engines/chewy/resource.h
index 04a0598803..6d2126c1e6 100644
--- a/engines/chewy/resource.h
+++ b/engines/chewy/resource.h
@@ -32,6 +32,7 @@
#include "common/hash-str.h"
#include "common/random.h"
#include "common/stream.h"
+#include "graphics/surface.h"
namespace Chewy {
@@ -185,6 +186,19 @@ public:
Common::SeekableReadStream *getVideoStream(uint num);
};
+class Font {
+public:
+ Font(Common::String filename);
+ virtual ~Font();
+
+ ::Graphics::Surface *getLine(Common::String text);
+
+private:
+ uint16 _count, _first, _last, _width, _height;
+
+ ::Graphics::Surface _fontSurface;
+};
+
} // End of namespace Chewy
#endif