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/platform/sdl/sdl.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/platform/sdl/sdl.h')
| -rw-r--r-- | backends/platform/sdl/sdl.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/backends/platform/sdl/sdl.h b/backends/platform/sdl/sdl.h index 0012e88c51..590354b699 100644 --- a/backends/platform/sdl/sdl.h +++ b/backends/platform/sdl/sdl.h @@ -104,6 +104,25 @@ protected: // Logging virtual Common::WriteStream *createLogFile() { return 0; } Backends::Log::Log *_logger; + +#ifdef USE_OPENGL + int _desktopWidth, _desktopHeight; + + OSystem::GraphicsMode *_graphicsModes; + int _graphicsMode; + int _sdlModesCount; + int _glModesCount; + + /** + * Creates the merged graphics modes list + */ + virtual void setupGraphicsModes(); + + virtual const OSystem::GraphicsMode *getSupportedGraphicsModes() const; + virtual int getDefaultGraphicsMode() const; + virtual bool setGraphicsMode(int mode); + virtual int getGraphicsMode() const; +#endif }; #endif |
