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;
48 bool isTransparentAt(
int x,
int y)
override;
49 bool isTransparentAtLite(
int x,
int y)
override;
51 bool startPixelOp()
override;
52 bool endPixelOp()
override;
54 bool displayTransRotate(
int x,
int y, uint32 angle, int32 hotspotX, int32 hotspotY,
Rect32 rect,
float zoomX,
float zoomY, uint32 alpha = Graphics::kDefaultRgbaMod, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
55 bool displayTransZoom(
int x,
int y,
Rect32 rect,
float zoomX,
float zoomY, uint32 alpha = Graphics::kDefaultRgbaMod, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
56 bool displayTrans(
int x,
int y,
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;
57 bool display(
int x,
int y,
Rect32 rect, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
58 bool displayTiled(
int x,
int y,
Rect32 rect,
int numTimesX,
int numTimesY)
override;
59 bool putSurface(
const Graphics::Surface &surface,
bool hasAlpha =
false)
override;
63 int getWidth()
override {
72 int getHeight()
override {
81 bool getPixel(
int x,
int y, byte *r, byte *g, byte *b, byte *a)
override {
86 uint32 pixel = getPixelAt(_surface, x, y);
93 Graphics::AlphaType getAlphaType()
const {
return _alphaType; }
103 Graphics::AlphaType _alphaType;
Definition: base_game.h:76
int16 h
Definition: surface.h:76
Definition: base_surface_osystem.h:40
Definition: base_surface.h:38
int16 w
Definition: surface.h:71
PixelFormat format
Definition: surface.h:95
Definition: achievements_tables.h:27