mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
9d7cfe5cd8
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
22 lines
689 B
C++
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
|