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 char *filename,
bool texture2D,
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 setAlphaImage(
const char *filename)
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 {
65 int getHeight()
override {
68 bool putPixel(
int x,
int y,
byte r,
byte g,
byte b,
byte a)
override {
74 _surfaceModified =
true;
79 bool getPixel(
int x,
int y,
byte *r,
byte *g,
byte *b,
byte *a)
const override {
90 Graphics::AlphaType getAlphaType()
const {
return _alphaType; }
98 bool _surfaceModified;
100 Graphics::AlphaType _alphaType;
102 Graphics::AlphaType _alphaMaskType;
Definition: base_game.h:79
Definition: base_surface.h:37
Definition: base_surface_osystem.h:40
uint32 getPixel(int x, int y) const
Definition: surface.h:164
void setPixel(int x, int y, int pixel)
Definition: surface.h:185
PixelFormat format
Definition: surface.h:95