scummvm/engines/dm/text.h
Bendegúz Nagy 9d7cfe5cd8 DM: Add several functions realted to text display
Add F0290_CHAMPION_DrawHealthStaminaManaValues, F0289_CHAMPION_DrawHealthOrStaminaOrManaValue,
F0288_CHAMPION_GetStringFromInteger, F0052_TEXT_PrintToViewport, swap warning for real code, expand viewport fields with width, height, remove self-inclusion
in dungeonman.h, remove extra black line when loading fonts, fix alignment error in TextMan::printTextToBitmap
2016-08-26 23:02:22 +02:00

22 lines
689 B
C++

#ifndef DM_TEXT_H
#define DM_TEXT_H
#include "dm.h"
#include "gfx.h"
namespace DM {
class TextMan {
DMEngine *_vm;
public:
TextMan(DMEngine *vm);
void printTextToBitmap(byte *destBitmap, uint16 destPixelWidth, uint16 destX, uint16 destY,
Color textColor, Color bgColor, const char *text, uint16 destHeight, Viewport &viewport = gDefultViewPort); // @ F0040_TEXT_Print
void printTextToScreen(uint16 destX, uint16 destY, Color textColor, Color bgColor, const char *text, Viewport &viewport = gDefultViewPort); // @ F0053_TEXT_PrintToLogicalScreen
void printToViewport(int16 posX, int16 posY, Color textColor, const char *text); // @ F0052_TEXT_PrintToViewport
};
}
#endif