diff options
author | Johannes Schickel | 2013-08-18 16:56:34 +0200 |
---|---|---|
committer | Johannes Schickel | 2013-10-19 22:14:24 +0200 |
commit | 5ce830b97643fc76bdcafdbbe09e226519a9d2e6 (patch) | |
tree | 2081a1d9eff756823e3141aa019e141bb1e5f18c /backends/graphics/opengl/opengl-graphics.h | |
parent | 46323074e77622e7d08fe20bfdcc459b8eba08a3 (diff) | |
download | scummvm-rg350-5ce830b97643fc76bdcafdbbe09e226519a9d2e6.tar.gz scummvm-rg350-5ce830b97643fc76bdcafdbbe09e226519a9d2e6.tar.bz2 scummvm-rg350-5ce830b97643fc76bdcafdbbe09e226519a9d2e6.zip |
SDL: Add a OpenGL SDL backend and hook it into the SDL backend.
The hooking code is nearly exactly the old hooking code. Only the OpenGL SDL
creation has been adapted since it uses a different constructor now.
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.h')
-rw-r--r-- | backends/graphics/opengl/opengl-graphics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h index e21bda4b8a..5aa521cb7a 100644 --- a/backends/graphics/opengl/opengl-graphics.h +++ b/backends/graphics/opengl/opengl-graphics.h @@ -47,6 +47,10 @@ public: virtual void setFeatureState(OSystem::Feature f, bool enable); virtual bool getFeatureState(OSystem::Feature f); + // HACK: This is required for the SDL backend to switch between OpenGL SDL + // and Surface SDL. + static const OSystem::GraphicsMode *supportedGraphicsModes(); + virtual const OSystem::GraphicsMode *getSupportedGraphicsModes() const; virtual int getDefaultGraphicsMode() const; virtual bool setGraphicsMode(int mode); |