22 #if !defined(SCUMM_NUT_RENDERER_H) && defined(ENABLE_SCUMM_7_8) 23 #define SCUMM_NUT_RENDERER_H 25 #include "common/file.h" 26 #include "graphics/surface.h" 27 #include "scumm/charset_v7.h" 37 kDefaultTransparentColor = 0,
38 kSmush44TransparentColor = 2
53 const int8 *_2byteShadowXOffsetTable;
54 const int8 *_2byteShadowYOffsetTable;
55 uint8 *_2byteColorTable;
56 uint8 *_2byteMainColor;
57 const int _2byteSteps;
66 void codec1(byte *dst,
const byte *src,
int width,
int height,
int pitch);
67 void codec21(byte *dst,
const byte *src,
int width,
int height,
int pitch);
69 void loadFont(
const char *filename);
70 byte *unpackChar(byte c);
73 NutRenderer(ScummEngine *vm,
const char *filename);
74 virtual ~NutRenderer();
75 int getNumChars()
const {
return _numChars; }
77 void drawFrame(byte *dst,
int c,
int x,
int y);
78 int draw2byte(byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, uint16 chr);
79 int drawCharV7(byte *buffer,
Common::Rect &clipRect,
int x,
int y,
int pitch, int16 col, TextStyleFlags flags, byte chr,
bool hardcodedColors =
false,
bool smushColorMode =
false);
81 int getCharWidth(byte c)
const;
82 int getCharHeight(byte c)
const;
84 int getFontHeight()
const {
return _fontHeight; }