diff options
| author | Matthew Hoops | 2011-08-26 22:44:17 -0400 | 
|---|---|---|
| committer | Matthew Hoops | 2011-08-26 22:44:17 -0400 | 
| commit | 4a69dc13d92e82fff85dc5a3a923b74ced259ffa (patch) | |
| tree | 8945cd3745fd65f28b043caf7b1beddbbce2b2a1 /backends/graphics/openglsdl/openglsdl-graphics.h | |
| parent | ad293b249e74dd1cfbdbd721d02145efbdaf9eca (diff) | |
| parent | 5e174cbfe466dbbe8e5470b0a00de1481b986181 (diff) | |
| download | scummvm-rg350-4a69dc13d92e82fff85dc5a3a923b74ced259ffa.tar.gz scummvm-rg350-4a69dc13d92e82fff85dc5a3a923b74ced259ffa.tar.bz2 scummvm-rg350-4a69dc13d92e82fff85dc5a3a923b74ced259ffa.zip  | |
Merge remote branch 'upstream/master' into pegasus
Diffstat (limited to 'backends/graphics/openglsdl/openglsdl-graphics.h')
| -rw-r--r-- | backends/graphics/openglsdl/openglsdl-graphics.h | 15 | 
1 files changed, 12 insertions, 3 deletions
diff --git a/backends/graphics/openglsdl/openglsdl-graphics.h b/backends/graphics/openglsdl/openglsdl-graphics.h index ba9f94db2d..1587183328 100644 --- a/backends/graphics/openglsdl/openglsdl-graphics.h +++ b/backends/graphics/openglsdl/openglsdl-graphics.h @@ -27,15 +27,17 @@  #if defined(ARRAYSIZE) && !defined(_WINDOWS_)  #undef ARRAYSIZE  #endif - +#include "backends/graphics/sdl/sdl-graphics.h"  #include "backends/graphics/opengl/opengl-graphics.h" +#include "common/events.h" +  /**   * SDL OpenGL graphics manager   */ -class OpenGLSdlGraphicsManager : public OpenGLGraphicsManager { +class OpenGLSdlGraphicsManager : public OpenGLGraphicsManager, public SdlGraphicsManager, public Common::EventObserver {  public: -	OpenGLSdlGraphicsManager(); +	OpenGLSdlGraphicsManager(SdlEventSource *eventSource);  	virtual ~OpenGLSdlGraphicsManager();  	virtual bool hasFeature(OSystem::Feature f); @@ -45,10 +47,17 @@ public:  	virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;  #endif +	virtual void initEventObserver();  	virtual bool notifyEvent(const Common::Event &event);  	virtual void updateScreen(); +	// SdlGraphicsManager interface +	virtual void notifyVideoExpose(); +	virtual void notifyResize(const uint width, const uint height); +	virtual void transformMouseCoordinates(Common::Point &point); +	virtual void notifyMousePos(Common::Point mouse); +  protected:  	virtual void internUpdateScreen();  | 
