diff options
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.cpp | 29 | ||||
-rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.h | 16 |
2 files changed, 41 insertions, 4 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.cpp b/backends/graphics/openglsdl/openglsdl-graphics.cpp index 711f1facea..ad6952bf21 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.cpp +++ b/backends/graphics/openglsdl/openglsdl-graphics.cpp @@ -25,10 +25,9 @@ #include "backends/graphics/openglsdl/openglsdl-graphics.h" -#include <SDL.h> -#include <SDL_opengl.h> - -OpenGLSDLGraphicsManager::OpenGLSDLGraphicsManager() { +OpenGLSDLGraphicsManager::OpenGLSDLGraphicsManager() + : + _hwscreen(0) { } @@ -41,6 +40,8 @@ void OpenGLSDLGraphicsManager::init() { error("Could not initialize SDL: %s", SDL_GetError()); } + SDL_ShowCursor(SDL_DISABLE); + OpenGLGraphicsManager::init(); } @@ -71,3 +72,23 @@ void OpenGLSDLGraphicsManager::toggleFullScreen() { bool OpenGLSDLGraphicsManager::saveScreenshot(const char *filename) { return false; } + +// +// Protected +// + +bool OpenGLSDLGraphicsManager::loadGFXMode() { + return false; +} + +void OpenGLSDLGraphicsManager::unloadGFXMode() { + +} + +bool OpenGLSDLGraphicsManager::hotswapGFXMode() { + return false; +} + +void OpenGLSDLGraphicsManager::internUpdateScreen() { + +} diff --git a/backends/graphics/openglsdl/openglsdl-graphics.h b/backends/graphics/openglsdl/openglsdl-graphics.h index b1483842aa..e565af24be 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.h +++ b/backends/graphics/openglsdl/openglsdl-graphics.h @@ -26,6 +26,12 @@ #ifndef BACKENDS_GRAPHICS_OPENGLSDL_H #define BACKENDS_GRAPHICS_OPENGLSDL_H +#include <SDL.h> +#if defined(ARRAYSIZE) && !defined(_WINDOWS_) +#undef ARRAYSIZE +#endif +#include <SDL_opengl.h> + #include "backends/graphics/opengl/opengl-graphics.h" /** @@ -45,6 +51,16 @@ public: virtual void setMousePos(int x, int y); virtual void toggleFullScreen(); virtual bool saveScreenshot(const char *filename); + +protected: + virtual void internUpdateScreen(); + + virtual bool loadGFXMode(); + virtual void unloadGFXMode(); + virtual bool hotswapGFXMode(); + + // Hardware screen + SDL_Surface *_hwscreen; }; #endif |