22 #ifndef SCUMM_SMUSH_REBEL_FONT_REBEL2_H 23 #define SCUMM_SMUSH_REBEL_FONT_REBEL2_H 25 #include "common/scummsys.h" 26 #include "common/rect.h" 28 #include "scumm/charset_v7.h" 40 NutRenderer *fonts[kMaxFonts];
45 NutRenderer *getFont(
int id)
const;
48 NutRenderer *makeRebel2Font(
ScummEngine *vm,
const char *filename);
49 NutRenderer *makeRebel2SpriteFromData(
ScummEngine *vm,
const byte *data, int32 dataSize);
50 bool drawRebel2Codec23Sprite(NutRenderer *sprite, byte *buffer,
int pitch,
int width,
int height,
51 const Common::Rect &clipRect,
int x,
int y,
int spriteIdx,
int scale);
52 bool drawRebel2Codec45Sprite(NutRenderer *sprite, byte *buffer,
int pitch,
int width,
int height,
53 const Common::Rect &clipRect,
int x,
int y,
int spriteIdx,
int scale);
54 int drawRebel2Char(NutRenderer *font, byte *buffer,
Common::Rect &clipRect,
int x,
int y,
55 int pitch, int16 col, byte chr);
56 int getRebel2StringWidth(
const Rebel2FontSet &fontSet,
const char *str, uint len);
57 int getRebel2StringHeight(
const Rebel2FontSet &fontSet,
const char *str, uint len);
58 void drawRebel2String(
const Rebel2FontSet &fontSet,
const char *str, uint len, byte *buffer,
59 Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
60 void drawRebel2StringWrap(
const Rebel2FontSet &fontSet,
const char *str, uint len, byte *buffer,
61 Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags);
Definition: font_rebel2.h:35