diff options
author | Johannes Schickel | 2012-02-23 01:01:20 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-23 01:08:47 +0100 |
commit | f4579aab9b107a3485d24ad41cb2748b5babae43 (patch) | |
tree | f61a812438580e5b8a6a00a6bc96561c785e62f0 /backends/platform/iphone/iphone_video.h | |
parent | 8948a4a65647acf1c4968ba921413f70ea638219 (diff) | |
download | scummvm-rg350-f4579aab9b107a3485d24ad41cb2748b5babae43.tar.gz scummvm-rg350-f4579aab9b107a3485d24ad41cb2748b5babae43.tar.bz2 scummvm-rg350-f4579aab9b107a3485d24ad41cb2748b5babae43.zip |
IPHONE: Create a struct for shared video context variables.
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r-- | backends/platform/iphone/iphone_video.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h index 43a643ab4a..83150961d0 100644 --- a/backends/platform/iphone/iphone_video.h +++ b/backends/platform/iphone/iphone_video.h @@ -32,6 +32,25 @@ #include <OpenGLES/ES1/glext.h> #include "iphone_keyboard.h" +#include "iphone_common.h" + +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; +}; @interface iPhoneView : UIView { void *_screenSurface; |