aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/surfacesdl/surfacesdl-graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/surfacesdl/surfacesdl-graphics.h')
-rw-r--r--backends/graphics/surfacesdl/surfacesdl-graphics.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.h b/backends/graphics/surfacesdl/surfacesdl-graphics.h
index 975cbfe27b..ef41b90f6c 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.h
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.h
@@ -105,6 +105,9 @@ public:
virtual Graphics::PixelFormat getScreenFormat() const { return _screenFormat; }
virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;
#endif
+ virtual const OSystem::GraphicsMode *getSupportedShaders() const;
+ virtual int getShader();
+ virtual bool setShader(int id);
virtual void initSize(uint w, uint h, const Graphics::PixelFormat *format = NULL);
virtual int getScreenChangeID() const { return _screenChangeCount; }
@@ -200,7 +203,7 @@ protected:
void setWindowResolution(int width, int height);
void recreateScreenTexture();
- SDL_Surface *SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags);
+ virtual SDL_Surface *SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags);
void SDL_UpdateRects(SDL_Surface *screen, int numrects, SDL_Rect *rects);
#endif
@@ -302,6 +305,9 @@ protected:
int _screenChangeCount;
+ int _currentShader;
+ int _numShaders;
+
enum {
NUM_DIRTY_RECT = 100,
MAX_SCALING = 3
@@ -384,6 +390,7 @@ protected:
virtual void blitCursor();
virtual void internUpdateScreen();
+ virtual void updateShader();
virtual bool loadGFXMode();
virtual void unloadGFXMode();