28 #ifndef WINTERMUTE_BASE_SURFACE_H 29 #define WINTERMUTE_BASE_SURFACE_H 31 #include "engines/wintermute/base/base.h" 32 #include "engines/wintermute/math/rect32.h" 33 #include "graphics/surface.h" 34 #include "graphics/transform_struct.h" 40 virtual bool invalidate();
41 virtual bool prepareToDraw();
50 virtual bool displayHalfTrans(
int x,
int y,
Rect32 rect);
51 virtual bool isTransparentAt(
int x,
int y);
52 virtual bool displayTransRotate(
int x,
int y, uint32 angle, int32 hotspotX, int32 hotspotY,
Rect32 rect,
float zoomX,
float zoomY, uint32 alpha = 0xFFFFFFFF, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false) = 0;
53 virtual bool displayTransZoom(
int x,
int y,
Rect32 rect,
float zoomX,
float zoomY, uint32 alpha = 0xFFFFFFFF, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false) = 0;
54 virtual bool displayTrans(
int x,
int y,
Rect32 rect, uint32 alpha = 0xFFFFFFFF, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false,
int offsetX = 0,
int offsetY = 0) = 0;
55 virtual bool display(
int x,
int y,
Rect32 rect, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false) = 0;
56 virtual bool displayTiled(
int x,
int y,
Rect32 rect,
int numTimesX,
int numTimesY) = 0;
57 virtual bool restore();
58 virtual bool create(
const Common::String &filename,
bool defaultCK, byte ckRed, byte ckGreen, byte ckBlue,
int lifeTime = -1,
bool keepLoaded =
false) = 0;
59 virtual bool create(
int width,
int height);
60 virtual bool putSurface(
const Graphics::Surface &surface,
bool hasAlpha =
false) {
63 virtual bool putPixel(
int x,
int y, byte r, byte g, byte b,
int a = -1);
64 virtual bool getPixel(
int x,
int y, byte *r, byte *g, byte *b, byte *a =
nullptr);
65 virtual bool comparePixel(
int x,
int y, byte r, byte g, byte b,
int a = -1);
66 virtual bool startPixelOp();
67 virtual bool endPixelOp();
68 virtual bool isTransparentAtLite(
int x,
int y);
69 void setSize(
int width,
int height);
73 virtual int getWidth() {
76 virtual int getHeight() {
80 const char* getFileName() {
return _filename.c_str(); }
Definition: base_game.h:75
Definition: base_surface.h:38
Definition: achievements_tables.h:27