aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/gfx.h
diff options
context:
space:
mode:
authorBendegúz Nagy2016-06-22 20:32:30 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit9538db0b6100b407d3ed1450256ffdc63efef4c2 (patch)
treebc2eb9a201803d43b9f4204072fa3783dcc2eb31 /engines/dm/gfx.h
parentf46a588164f7a49767ed75cd108d16cfc6cf7410 (diff)
downloadscummvm-rg350-9538db0b6100b407d3ed1450256ffdc63efef4c2.tar.gz
scummvm-rg350-9538db0b6100b407d3ed1450256ffdc63efef4c2.tar.bz2
scummvm-rg350-9538db0b6100b407d3ed1450256ffdc63efef4c2.zip
Add: TextMan, font loading and basic text display
Diffstat (limited to 'engines/dm/gfx.h')
-rw-r--r--engines/dm/gfx.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h
index 87d6bda69f..38d6630a96 100644
--- a/engines/dm/gfx.h
+++ b/engines/dm/gfx.h
@@ -40,7 +40,8 @@ enum GraphicIndice {
kStatusBoxDeadChampion = 8, // @ C008_GRAPHIC_STATUS_BOX_DEAD_CHAMPION
kSlotBoxNormalIndice = 33, // @ C033_GRAPHIC_SLOT_BOX_NORMAL
kSlotBoxWoundedIndice = 34, // @ C034_GRAPHIC_SLOT_BOX_WOUNDED
- kChampionIcons = 28 // @ C028_GRAPHIC_CHAMPION_ICONS
+ kChampionIcons = 28, // @ C028_GRAPHIC_CHAMPION_ICONS
+ kFontGraphicIndice = 557 // @ C557_GRAPHIC_FONT
};
extern uint16 gPalSwoosh[16];
@@ -221,6 +222,8 @@ extern Viewport gDungeonViewport;
#define kDoorOrnThivesEyeMask 16 // @ C16_DOOR_ORNAMENT_THIEVES_EYE_MASK
class DisplayMan {
+ friend class DM::TextMan;
+
DMEngine *_vm;
uint16 _screenWidth;
uint16 _screenHeight;
@@ -248,6 +251,7 @@ class DisplayMan {
// the original function has two position parameters, but they are always set to zero
void loadIntoBitmap(uint16 index, byte *destBitmap); // @ F0466_EXPAND_GraphicToBitmap
void unpackGraphics();
+ void loadFNT1intoBitmap(uint16 index, byte *destBitmap);
void drawFloorPitOrStairsBitmapFlippedHorizontally(StairIndex relIndex, Frame &frame); // @ F0105_DUNGEONVIEW_DrawFloorPitOrStairsBitmapFlippedHorizontally
void drawFloorPitOrStairsBitmap(StairIndex relIndex, Frame &frame); // @ F0104_DUNGEONVIEW_DrawFloorPitOrStairsBitmap