diff options
author | Fabio Battaglia | 2010-10-23 09:30:26 +0000 |
---|---|---|
committer | Fabio Battaglia | 2010-10-23 09:30:26 +0000 |
commit | 74a53df11b51fa4956745c086b2e6351b8383568 (patch) | |
tree | 2ec2ce66310986e6bebdc21582e7e9c5ad3b014c /backends/graphics/dinguxsdl/dinguxsdl-graphics.h | |
parent | b713beed189b439853be50fa330d06b3275f9713 (diff) | |
download | scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.tar.gz scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.tar.bz2 scummvm-rg350-74a53df11b51fa4956745c086b2e6351b8383568.zip |
DINGUX: fix compilation for the opengl branch
Moved events related code to backends/events/dinguxsdl/*
and move graphics related code to backends/graphics/dinguxsdl/*
Subclass OSystem_POSIX instead of OSystem_SDL
svn-id: r53730
Diffstat (limited to 'backends/graphics/dinguxsdl/dinguxsdl-graphics.h')
-rw-r--r-- | backends/graphics/dinguxsdl/dinguxsdl-graphics.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/backends/graphics/dinguxsdl/dinguxsdl-graphics.h b/backends/graphics/dinguxsdl/dinguxsdl-graphics.h new file mode 100644 index 0000000000..b2edd73f6d --- /dev/null +++ b/backends/graphics/dinguxsdl/dinguxsdl-graphics.h @@ -0,0 +1,69 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#ifndef BACKENDS_GRAPHICS_SDL_DINGUX_H +#define BACKENDS_GRAPHICS_SDL_DINGUX_H +#if defined (DINGUX) + +#include "backends/graphics/sdl/sdl-graphics.h" + +#include "graphics/scaler/aspect.h" // for aspect2Real +#include "graphics/scaler/downscaler.h" + +enum { + GFX_HALF = 12 +}; + +class DINGUXSdlGraphicsManager : public SdlGraphicsManager { +public: + DINGUXSdlGraphicsManager(SdlEventSource *boss); + + bool hasFeature(OSystem::Feature f); + void setFeatureState(OSystem::Feature f, bool enable); + bool getFeatureState(OSystem::Feature f); + int getDefaultGraphicsMode() const; + + void initSize(uint w, uint h); + const OSystem::GraphicsMode *getSupportedGraphicsModes() const; + bool setGraphicsMode(const char *name); + bool setGraphicsMode(int mode); + void setGraphicsModeIntern(); + void internUpdateScreen(); + void showOverlay(); + void hideOverlay(); + bool loadGFXMode(); + void drawMouse(); + void undrawMouse(); + + SdlGraphicsManager::MousePos *getMouseCurState(); + SdlGraphicsManager::VideoState *getVideoMode(); + bool isOverlayVisible(); + +protected: + SdlEventSource *_evSrc; +}; + +#endif /* DINGUX */ +#endif /* BACKENDS_GRAPHICS_SDL_DINGUX_H */ |