22 #ifndef WINTERMUTE_BASE_SURFACE_OPENGL3D_H 23 #define WINTERMUTE_BASE_SURFACE_OPENGL3D_H 25 #include "engines/wintermute/base/gfx/base_surface.h" 27 #if defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS) 29 #include "graphics/opengl/system_headers.h" 36 class BaseSurfaceOpenGL3D :
public BaseSurface {
38 BaseSurfaceOpenGL3D(BaseGame* game, BaseRenderer3D* renderer);
39 ~BaseSurfaceOpenGL3D();
41 bool invalidate()
override;
43 bool displayHalfTrans(
int x,
int y, Rect32 rect)
override;
44 bool isTransparentAt(
int x,
int y)
override;
45 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)
override;
46 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)
override;
47 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)
override;
48 bool display(
int x,
int y, Rect32 rect, Graphics::TSpriteBlendMode blendMode = Graphics::BLEND_NORMAL,
bool mirrorX =
false,
bool mirrorY =
false)
override;
49 bool displayTiled(
int x,
int y, Rect32 rect,
int numTimesX,
int numTimesY)
override;
50 bool restore()
override;
51 bool create(
const Common::String &filename,
bool defaultCK, byte ckRed, byte ckGreen, byte ckBlue,
int lifeTime = -1,
bool keepLoaded =
false)
override;
52 bool create(
int width,
int height)
override;
53 bool putSurface(
const Graphics::Surface &surface,
bool hasAlpha =
false)
override;
54 bool putPixel(
int x,
int y, byte r, byte g, byte b,
int a = -1)
override;
55 bool getPixel(
int x,
int y, byte *r, byte *g, byte *b, byte *a =
nullptr)
override;
56 bool comparePixel(
int x,
int y, byte r, byte g, byte b,
int a = -1)
override;
57 bool startPixelOp()
override;
58 bool endPixelOp()
override;
59 bool isTransparentAtLite(
int x,
int y)
override;
63 GLuint getTextureName() {
67 uint getGLTextureWidth()
const {
71 uint getGLTextureHeight()
const {
77 BaseRenderer3D *_renderer;
85 #endif // defined(USE_OPENGL_GAME) || defined(USE_OPENGL_SHADERS)
Definition: achievements_tables.h:27