28 #ifndef WINTERMUTE_BASE_SURFACESDL_H 29 #define WINTERMUTE_BASE_SURFACESDL_H 31 #include "graphics/surface.h" 32 #include "graphics/transform_struct.h" 34 #include "engines/wintermute/base/gfx/base_surface.h" 36 #include "common/list.h" 45 bool create(
const Common::String &filename,
bool defaultCK, byte ckRed, byte ckGreen, byte ckBlue,
int lifeTime = -1,
bool keepLoaded =
false)
override;
46 bool create(
int width,
int height)
override;
50 bool invalidate()
override;
52 bool isTransparentAtLite(
int x,
int y)
const override;
53 bool startPixelOp()
override;
54 bool endPixelOp()
override;
56 bool displayTransRotate(
int x,
int y,
float rotate, int32 hotspotX, int32 hotspotY,
Common::Rect32 rect,
float zoomX,
float zoomY, uint32 alpha = Graphics::kDefaultRgbaMod, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
57 bool displayTransZoom(
int x,
int y,
Common::Rect32 rect,
float zoomX,
float zoomY, uint32 alpha = Graphics::kDefaultRgbaMod, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
58 bool displayTrans(
int x,
int y,
Common::Rect32 rect, uint32 alpha = Graphics::kDefaultRgbaMod, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false,
int offsetX = 0,
int offsetY = 0)
override;
59 bool display(
int x,
int y,
Common::Rect32 rect, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
60 bool displayTiled(
int x,
int y,
Common::Rect32 rect,
int numTimesX,
int numTimesY)
override;
61 bool putSurface(
const Graphics::Surface &surface,
bool hasAlpha =
false)
override;
62 int getWidth()
override {
68 int getHeight()
override {
74 bool putPixel(
int x,
int y, byte r, byte g, byte b, byte a)
override {
80 _surfaceModified =
true;
85 bool getPixel(
int x,
int y, byte *r, byte *g, byte *b, byte *a)
const override {
96 Graphics::AlphaType getAlphaType()
const {
return _alphaType; }
104 bool _surfaceModified;
106 Graphics::AlphaType _alphaType;
108 Graphics::AlphaType _alphaMaskType;
Definition: base_game.h:75
Definition: base_surface_osystem.h:40
Definition: base_surface.h:37
void setPixel(int x, int y, int pixel)
Definition: surface.h:183
PixelFormat format
Definition: surface.h:95
uint32 getPixel(int x, int y) const
Definition: surface.h:162
Definition: achievements_tables.h:27