aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/openglsdl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-07-10 22:47:29 +0000
committerAlejandro Marzini2010-07-10 22:47:29 +0000
commit85034dc730148dab3eb85b47be3f3984337e9484 (patch)
treeb2877f92e3738fcf79956a91d17f1beabca6dcad /backends/graphics/openglsdl
parent386785e2b85b066398122d747117f97dbbb4896a (diff)
downloadscummvm-rg350-85034dc730148dab3eb85b47be3f3984337e9484.tar.gz
scummvm-rg350-85034dc730148dab3eb85b47be3f3984337e9484.tar.bz2
scummvm-rg350-85034dc730148dab3eb85b47be3f3984337e9484.zip
Added BaseSdlGraphicsManager. Added GLTexture.
svn-id: r50795
Diffstat (limited to 'backends/graphics/openglsdl')
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.cpp29
-rw-r--r--backends/graphics/openglsdl/openglsdl-graphics.h16
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