aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz/screen.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-01-26 21:14:39 -0800
committerPaul Gilbert2019-01-26 21:14:39 -0800
commit22a71f0b38c7d3226124fb9f97874836c206d1b5 (patch)
tree29c631795c18dd6434b1cbe16989821aad36dae1 /engines/glk/frotz/screen.h
parent3653703a40583bc538a2d8d4f55e37fff7bd42ab (diff)
downloadscummvm-rg350-22a71f0b38c7d3226124fb9f97874836c206d1b5.tar.gz
scummvm-rg350-22a71f0b38c7d3226124fb9f97874836c206d1b5.tar.bz2
scummvm-rg350-22a71f0b38c7d3226124fb9f97874836c206d1b5.zip
GLK: FROTZ: Split BItmapFont into it's own file
Diffstat (limited to 'engines/glk/frotz/screen.h')
-rw-r--r--engines/glk/frotz/screen.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/engines/glk/frotz/screen.h b/engines/glk/frotz/screen.h
index 223ef3b124..ef616a1eb1 100644
--- a/engines/glk/frotz/screen.h
+++ b/engines/glk/frotz/screen.h
@@ -23,11 +23,6 @@
#ifndef GLK_FROTZ_FONTS
#define GLK_FROTZ_FONTS
-#include "graphics/font.h"
-#include "graphics/surface.h"
-#include "common/archive.h"
-#include "common/array.h"
-#include "common/rect.h"
#include "glk/screen.h"
namespace Glk {
@@ -49,42 +44,6 @@ public:
FrotzScreen();
};
-/**
- * Implements a fixed width font stored as a grid on a passed surface
- */
-class BitmapFont : public Graphics::Font {
-private:
- Common::Array<Graphics::ManagedSurface> _chars;
- size_t _startingChar;
- Common::Point _size;
-public:
- /**
- * Constructor
- */
- BitmapFont(const Graphics::Surface &src, const Common::Point &size,
- uint srcWidth = 8, uint srcHeight = 8, unsigned char startingChar = ' ');
-
- /**
- * Get the font height
- */
- virtual int getFontHeight() const override { return _size.y; }
-
- /**
- * Get the maximum character width
- */
- virtual int getMaxCharWidth() const override { return _size.x; }
-
- /**
- * Get the width of the given character
- */
- virtual int getCharWidth(uint32 chr) const override { return _size.x; }
-
- /**
- * Draw a character
- */
- virtual void drawChar(Graphics::Surface *dst, uint32 chr, int x, int y, uint32 color) const override;
-};
-
} // End of namespace Frotz
} // End of namespace Glk