~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to backends/graphics/openglsdl/openglsdl-graphics.h

  • Committer: Package Import Robot
  • Author(s): Moritz Muehlenhoff
  • Date: 2011-11-05 10:29:43 UTC
  • mto: This revision was merged to the branch mainline in revision 25.
  • Revision ID: package-import@ubuntu.com-20111105102943-zfm3dhlvy5b01u7v
Tags: upstream-1.4.0
ImportĀ upstreamĀ versionĀ 1.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
20
 *
21
 
 * $URL$
22
 
 * $Id$
23
 
 *
24
21
 */
25
22
 
26
23
#ifndef BACKENDS_GRAPHICS_OPENGLSDL_H
30
27
#if defined(ARRAYSIZE) && !defined(_WINDOWS_)
31
28
#undef ARRAYSIZE
32
29
#endif
33
 
 
 
30
#include "backends/graphics/sdl/sdl-graphics.h"
34
31
#include "backends/graphics/opengl/opengl-graphics.h"
35
32
 
 
33
#include "common/events.h"
 
34
 
36
35
/**
37
36
 * SDL OpenGL graphics manager
38
37
 */
39
 
class OpenGLSdlGraphicsManager : public OpenGLGraphicsManager {
 
38
class OpenGLSdlGraphicsManager : public OpenGLGraphicsManager, public SdlGraphicsManager, public Common::EventObserver {
40
39
public:
41
 
        OpenGLSdlGraphicsManager();
 
40
        OpenGLSdlGraphicsManager(SdlEventSource *eventSource);
42
41
        virtual ~OpenGLSdlGraphicsManager();
43
42
 
44
43
        virtual bool hasFeature(OSystem::Feature f);
48
47
        virtual Common::List<Graphics::PixelFormat> getSupportedFormats() const;
49
48
#endif
50
49
 
 
50
        virtual void initEventObserver();
51
51
        virtual bool notifyEvent(const Common::Event &event);
52
52
 
53
53
        virtual void updateScreen();
54
54
 
 
55
        // SdlGraphicsManager interface
 
56
        virtual void notifyVideoExpose();
 
57
        virtual void notifyResize(const uint width, const uint height);
 
58
        virtual void transformMouseCoordinates(Common::Point &point);
 
59
        virtual void notifyMousePos(Common::Point mouse);
 
60
 
55
61
protected:
56
62
        virtual void internUpdateScreen();
57
63