diff options
author | Kamil Zbróg | 2013-10-28 17:07:28 +0000 |
---|---|---|
committer | Kamil Zbróg | 2013-10-28 17:07:28 +0000 |
commit | 6734377e1bbb00403e11ef2194e890d8529e791b (patch) | |
tree | d2889578042cd056b9780f2b0b8be84dd106cf43 /backends/graphics/graphics.h | |
parent | 39265b7a4b3e39348165b126ae53c9d89ccf32a9 (diff) | |
parent | 5653a89e81d600b2388831cfe05c36d3068813b5 (diff) | |
download | scummvm-rg350-6734377e1bbb00403e11ef2194e890d8529e791b.tar.gz scummvm-rg350-6734377e1bbb00403e11ef2194e890d8529e791b.tar.bz2 scummvm-rg350-6734377e1bbb00403e11ef2194e890d8529e791b.zip |
Merge branch 'master' into prince
Diffstat (limited to 'backends/graphics/graphics.h')
-rw-r--r-- | backends/graphics/graphics.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/backends/graphics/graphics.h b/backends/graphics/graphics.h index 24397228e6..74258b8910 100644 --- a/backends/graphics/graphics.h +++ b/backends/graphics/graphics.h @@ -37,6 +37,27 @@ class GraphicsManager : public PaletteManager { public: virtual ~GraphicsManager() {} + /** + * Makes this graphics manager active. That means it should be ready to + * process inputs now. However, even without being active it should be + * able to query the supported modes and other bits. + * + * HACK: Actually this is specific to SdlGraphicsManager subclasses. + * But sadly we cannot cast from GraphicsManager to SdlGraphicsManager + * because there is no relation between these two. + */ + virtual void activateManager() {} + + /** + * Makes this graphics manager inactive. This should allow another + * graphics manager to become active again. + * + * HACK: Actually this is specific to SdlGraphicsManager subclasses. + * But sadly we cannot cast from GraphicsManager to SdlGraphicsManager + * because there is no relation between these two. + */ + virtual void deactivateManager() {} + virtual bool hasFeature(OSystem::Feature f) = 0; virtual void setFeatureState(OSystem::Feature f, bool enable) = 0; virtual bool getFeatureState(OSystem::Feature f) = 0; |