31 #include "common/list.h" 32 #include "common/rect.h" 33 #include "common/ptr.h" 36 #include "gob/surface.h" 42 Font(
const byte *data);
45 uint8 getCharWidth (uint8 c)
const;
46 uint8 getCharWidth ()
const;
47 uint8 getCharHeight()
const;
49 bool hasChar(uint8 c)
const;
51 bool isMonospaced()
const;
53 void drawLetter(
Surface &surf, uint8 c, uint16 x, uint16 y,
54 uint32 color1, uint32 color2,
bool transp)
const;
56 void drawString(
const Common::String &str, int16 x, int16 y, int16 color1, int16 color2,
57 bool transp,
Surface &dest)
const;
62 const uint8 *_charWidths;
71 uint16 getCharCount()
const;
72 const byte *getCharData(uint8 c)
const;
79 #define PRIMARY_SURFACE 0x80 80 #define RETURN_PRIMARY 0x01 81 #define DISABLE_SPR_ALLOC 0x20 82 #define SCUMMVM_CURSOR 0x100 84 #include "common/pack-start.h" 92 #include "common/pack-end.h" 98 PalDesc() : vgaPal(0), unused1(0), unused2(0) {}
106 int16 _scrollOffsetX;
107 int16 _scrollOffsetY;
117 void initPrimary(int16 mode);
118 SurfacePtr initSurfDesc(int16 width, int16 height, int16 flags = 0);
123 void retrace(
bool mouse =
true);
124 void waitRetrace(
bool mouse =
true);
125 void sparseRetrace(
int max);
127 void drawPackedSprite(byte *sprBuf, int16 width, int16 height,
128 int16 x, int16 y, int16 transp,
Surface &dest);
129 void drawPackedSprite(
const char *path,
Surface &dest,
int width = 320);
131 void setPalColor(byte *pal, byte red, byte green, byte blue) {
136 void setPalColor(byte *pal,
Color &color) {
137 setPalColor(pal, color.red, color.green, color.blue);
139 void setPalElem(int16 index,
char red,
char green,
char blue,
140 int16 unused, int16 vidMode);
141 void setPalette(
PalDesc *palDesc);
142 void setFullPalette(
PalDesc *palDesc);
143 void setPalette(
Color *palette);
145 void dirtyRectsClear();
146 void dirtyRectsAll();
147 void dirtyRectsAdd(int16 left, int16 top, int16 right, int16 bottom);
148 void dirtyRectsApply(
int left,
int top,
int width,
int height,
int x,
int y);
150 virtual char spriteUncompressor(byte *sprBuf, int16 srcWidth,
151 int16 srcHeight, int16 x, int16 y, int16 transp,
166 void drawPacked(byte *sprBuf, int16 width, int16 height, int16 x, int16 y, byte transp,
Surface &dest);
171 char spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight,
172 int16 x, int16 y, int16 transp,
Surface &destDesc)
override;
180 char spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight,
181 int16 x, int16 y, int16 transp,
Surface &destDesc)
override;
189 char spriteUncompressor(byte *sprBuf, int16 srcWidth, int16 srcHeight,
190 int16 x, int16 y, int16 transp,
Surface &destDesc)
override;
196 void drawPacked(
const byte *sprBuf, int16 x, int16 y,
Surface &surfDesc);
197 void drawYUVData(
const byte *srcData,
Surface &destDesc,
198 int16 width, int16 height, int16 x, int16 y);
199 void drawYUV(
Surface &destDesc, int16 x, int16 y,
200 int16 dataWidth, int16 dataHeight, int16 width, int16 height,
201 const byte *dataY,
const byte *dataU,
const byte *dataV);
206 #endif // GOB_VIDEO_H
Definition: surface.h:100
Definition: avi_frames.h:36