31 #include "common/scummsys.h" 32 #include "common/ptr.h" 33 #include "common/rational.h" 34 #include "common/rect.h" 36 #include "graphics/pixelformat.h" 39 class SeekableReadStream;
60 Pixel(byte *vidMem, uint8 bpp, byte *min, byte *max);
63 Pixel operator++(
int x);
66 Pixel operator--(
int x);
68 Pixel &operator+=(
int x);
69 Pixel &operator-=(
int x);
85 ConstPixel(
const byte *vidMem, uint8 bpp,
const byte *min,
const byte *max);
102 const byte *_min, *_max;
108 Surface(uint16 width, uint16 height, uint8 bpp, byte *vidMem =
nullptr,
const uint32 *highColorMap =
nullptr,
bool ownHighColorMap =
false);
109 Surface(uint16 width, uint16 height, uint8 bpp,
const byte *vidMem,
const uint32 *highColorMap =
nullptr,
bool ownHighColorMap =
false);
112 uint16 getWidth ()
const;
113 uint16 getHeight()
const;
114 uint8 getBPP ()
const;
116 byte *getData(uint16 x = 0, uint16 y = 0);
117 const byte *getData(uint16 x = 0, uint16 y = 0)
const;
119 void resize(uint16 width, uint16 height);
121 void setBPP(uint8 bpp);
123 Pixel get(uint16 x = 0, uint16 y = 0);
124 ConstPixel get(uint16 x = 0, uint16 y = 0)
const;
126 void blit(
const Surface &from, int16 left, int16 top, int16 right, int16 bottom,
127 int16 x, int16 y, int32 transp = -1,
bool yAxisReflexion =
false);
128 void blit(
const Surface &from, int16 x, int16 y, int32 transp = -1);
129 void blit(
const Surface &from, int32 transp = -1);
131 void blitScaled(
const Surface &from, int16 left, int16 top, int16 right, int16 bottom,
136 void blitShaded(
const Surface &from, int16 left, int16 top, int16 right, int16 bottom,
139 void fillRectRaw(int16 left, int16 top, int16 right, int16 bottom, uint32 color);
140 void fillRect(int16 left, int16 top, int16 right, int16 bottom, uint8 colorIndex);
141 void fillArea(int16 left, int16 top, int16 right, int16 bottom, uint8 fillColorIndex, uint8 backgroundColorIndex);
142 Common::Rect fillAreaAtPoint(int16 left, int16 top, uint8 fillColorIndex);
143 void fill(uint32 color);
146 void shadeRect(uint16 left, uint16 top, uint16 right, uint16 bottom,
147 uint8 colorIndex, uint8 strength);
149 void recolor(uint8 from, uint8 to);
151 void putPixelRaw(uint16 x, uint16 y, uint32 color);
152 void putPixel(uint16 x, uint16 y, uint8 colorIndex);
153 void drawLineRaw(uint16 x0, uint16 y0, uint16 x1, uint16 y1, uint32 colorIndex);
154 void drawLine(uint16 x0, uint16 y0, uint16 x1, uint16 y1, uint8 colorIndex);
155 void drawRect(uint16 left, uint16 top, uint16 right, uint16 bottom, uint8 colorIndex);
156 void drawCircle(uint16 x0, uint16 y0, uint16 radius, uint8 colorIndex, int16 pattern = 0);
158 void blitToScreen(uint16 left, uint16 top, uint16 right, uint16 bottom, uint16 x, uint16 y)
const;
165 uint32 getColorFromIndex(uint8 index)
const;
169 static void computeHighColorMap(uint32 *highColorMap,
const byte *palette,
171 bool useSpecialBlackWhiteValues,
172 int16 startColor = 0, int16 colorCount = 256,
173 int16 startColorSrc = -1);
183 bool _ownHighColorMap;
184 const uint32 *_highColorMap;
186 static bool clipBlitRect(int16 &left, int16 &top, int16 &right, int16 &bottom, int16 &x, int16 &y,
187 uint16 dWidth, uint16 dHeight, uint16 sWidth, uint16 sHeight);
203 #endif // GOB_SURFACE_H Definition: image_decoder.h:53
Definition: rational.h:40
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: algorithm.h:29
Definition: surface.h:106
signed char * fill(signed char *first, signed char *last, Value val)
Definition: algorithm.h:168
Definition: movie_decoder.h:32