From e1edb20fed788aafc70f70448957b03b4f8f237d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 23 Feb 2012 02:04:40 +0100 Subject: IPHONE: Move VideoContext definition to iphone_common.h. --- backends/platform/iphone/iphone_common.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'backends/platform/iphone/iphone_common.h') diff --git a/backends/platform/iphone/iphone_common.h b/backends/platform/iphone/iphone_common.h index 5a46a6dde6..044b279386 100644 --- a/backends/platform/iphone/iphone_common.h +++ b/backends/platform/iphone/iphone_common.h @@ -55,6 +55,24 @@ enum GraphicsModes { kGraphicsModeNone = 1 }; +struct VideoContext { + // Game screen state + int screenWidth, screenHeight; + + // Overlay state + int overlayWidth, overlayHeight; + + // Mouse cursor state + int mouseX, mouseY; + int mouseHotspotX, mouseHotspotY; + int mouseWidth, mouseHeight; + bool mouseIsVisible; + + // Misc state + GraphicsModes graphicsMode; + int shakeOffsetY; +}; + // On the ObjC side void iPhone_setGraphicsMode(GraphicsModes mode); void iPhone_updateScreen(int mouseX, int mouseY); -- cgit v1.2.3