aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/opengl-graphics.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-15 02:09:46 +0100
committerJohannes Schickel2012-02-15 02:23:37 +0100
commit5b3ebdf43de0bd9f04138a6e841f816f34377021 (patch)
treedc31ec081cc8d4895fda56967928ff04bb44235d /backends/graphics/opengl/opengl-graphics.h
parent05af37c08e9d359d509a29f7c5a85b70c0c10fdd (diff)
downloadscummvm-rg350-5b3ebdf43de0bd9f04138a6e841f816f34377021.tar.gz
scummvm-rg350-5b3ebdf43de0bd9f04138a6e841f816f34377021.tar.bz2
scummvm-rg350-5b3ebdf43de0bd9f04138a6e841f816f34377021.zip
OPENGL: Prevent access to a few more members in the SDL OpenGL code.
Diffstat (limited to 'backends/graphics/opengl/opengl-graphics.h')
-rw-r--r--backends/graphics/opengl/opengl-graphics.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/backends/graphics/opengl/opengl-graphics.h b/backends/graphics/opengl/opengl-graphics.h
index 17810ddb78..ad8765bab1 100644
--- a/backends/graphics/opengl/opengl-graphics.h
+++ b/backends/graphics/opengl/opengl-graphics.h
@@ -217,6 +217,7 @@ protected:
uint getAspectRatio() const;
+ void setFormatIsBGR(bool isBGR) { _formatBGR = isBGR; }
bool _formatBGR;
//
@@ -285,6 +286,14 @@ protected:
int _cursorTargetScale;
bool _cursorNeedsRedraw;
+ /**
+ * Set up the mouse position for graphics output.
+ *
+ * @param x X coordinate in native coordinates.
+ * @param y Y coordinate in native coordinates.
+ */
+ void setMousePosition(int x, int y) { _cursorState.x = x; _cursorState.y = y; }
+
virtual void refreshCursor();
virtual void refreshCursorScale();
@@ -312,11 +321,6 @@ protected:
#ifdef USE_OSD
/**
- * The OSD contents.
- */
- Common::Array<Common::String> _osdLines;
-
- /**
* Returns the font used for on screen display
*/
virtual const Graphics::Font *getFontOSD();
@@ -326,6 +330,11 @@ protected:
*/
void updateOSD();
+ /**
+ * The OSD contents.
+ */
+ Common::Array<Common::String> _osdLines;
+
GLTexture *_osdTexture;
Graphics::Surface _osdSurface;
uint8 _osdAlpha;