SDL: Let SDL based graphics managers inherit from SdlGraphicsManager.
This also adapts port I can not test (not even the compilation). So if this breaks anything I am sorry about it.
This commit is contained in:
parent
dedc74abfa
commit
0630a88a04
13 changed files with 150 additions and 48 deletions
|
@ -23,19 +23,20 @@
|
|||
#ifndef BACKENDS_GRAPHICS_OPENGLSDL_H
|
||||
#define BACKENDS_GRAPHICS_OPENGLSDL_H
|
||||
|
||||
#include "backends/platform/sdl/sdl-sys.h"
|
||||
#if defined(ARRAYSIZE) && !defined(_WINDOWS_)
|
||||
#undef ARRAYSIZE
|
||||
#endif
|
||||
#include "backends/platform/sdl/sdl-sys.h"
|
||||
#include "backends/graphics/sdl/sdl-graphics.h"
|
||||
|
||||
#include "backends/graphics/opengl/opengl-graphics.h"
|
||||
|
||||
/**
|
||||
* SDL OpenGL graphics manager
|
||||
*/
|
||||
class OpenGLSdlGraphicsManager : public OpenGLGraphicsManager {
|
||||
class OpenGLSdlGraphicsManager : public OpenGLGraphicsManager, public SdlGraphicsManager {
|
||||
public:
|
||||
OpenGLSdlGraphicsManager();
|
||||
OpenGLSdlGraphicsManager(SdlEventSource *eventSource);
|
||||
virtual ~OpenGLSdlGraphicsManager();
|
||||
|
||||
virtual bool hasFeature(OSystem::Feature f);
|
||||
|
@ -49,6 +50,12 @@ public:
|
|||
|
||||
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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue