31 #include "common/scummsys.h" 32 #include "common/ptr.h" 33 #include "common/rational.h" 34 #include "common/rect.h" 37 class SeekableReadStream;
54 Pixel(byte *vidMem, uint8 bpp, byte *min, byte *max);
57 Pixel operator++(
int x);
60 Pixel operator--(
int x);
62 Pixel &operator+=(
int x);
63 Pixel &operator-=(
int x);
79 ConstPixel(
const byte *vidMem, uint8 bpp,
const byte *min,
const byte *max);
96 const byte *_min, *_max;
102 Surface(uint16 width, uint16 height, uint8 bpp, byte *vidMem = 0);
103 Surface(uint16 width, uint16 height, uint8 bpp,
const byte *vidMem);
106 uint16 getWidth ()
const;
107 uint16 getHeight()
const;
108 uint8 getBPP ()
const;
110 byte *getData(uint16 x = 0, uint16 y = 0);
111 const byte *getData(uint16 x = 0, uint16 y = 0)
const;
113 void resize(uint16 width, uint16 height);
115 void setBPP(uint8 bpp);
117 Pixel get(uint16 x = 0, uint16 y = 0);
118 ConstPixel get(uint16 x = 0, uint16 y = 0)
const;
120 void blit(
const Surface &from, int16 left, int16 top, int16 right, int16 bottom,
121 int16 x, int16 y, int32 transp = -1,
bool yAxisReflexion =
false);
122 void blit(
const Surface &from, int16 x, int16 y, int32 transp = -1);
123 void blit(
const Surface &from, int32 transp = -1);
125 void blitScaled(
const Surface &from, int16 left, int16 top, int16 right, int16 bottom,
130 void fillRect(int16 left, int16 top, int16 right, int16 bottom, uint32 color);
131 void fillArea(int16 left, int16 top, int16 right, int16 bottom, uint32 fillColor, uint32 backgroundColor);
132 Common::Rect fillAreaAtPoint(int16 left, int16 top, uint32 fillColor);
133 void fill(uint32 color);
136 void shadeRect(uint16 left, uint16 top, uint16 right, uint16 bottom,
137 uint32 color, uint8 strength);
139 void recolor(uint8 from, uint8 to);
141 void putPixel(uint16 x, uint16 y, uint32 color);
142 void drawLine(uint16 x0, uint16 y0, uint16 x1, uint16 y1, uint32 color);
143 void drawRect(uint16 left, uint16 top, uint16 right, uint16 bottom, uint32 color);
144 void drawCircle(uint16 x0, uint16 y0, uint16 radius, uint32 color, int16 pattern = 0);
146 void blitToScreen(uint16 left, uint16 top, uint16 right, uint16 bottom, uint16 x, uint16 y)
const;
161 static bool clipBlitRect(int16 &left, int16 &top, int16 &right, int16 &bottom, int16 &x, int16 &y,
162 uint16 dWidth, uint16 dHeight, uint16 sWidth, uint16 sHeight);
175 #endif // GOB_SURFACE_H
Definition: rational.h:40
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: algorithm.h:29
Definition: surface.h:100
signed char * fill(signed char *first, signed char *last, Value val)
Definition: algorithm.h:168