aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/iphone_video.h
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-23 03:13:09 +0100
committerJohannes Schickel2012-02-23 03:18:00 +0100
commit5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e (patch)
treec2d7a24d5837b666bfdb8f7dda155f77377334a6 /backends/platform/iphone/iphone_video.h
parente00fc73eb891b7f460e2377fed7f12224a9103cf (diff)
downloadscummvm-rg350-5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e.tar.gz
scummvm-rg350-5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e.tar.bz2
scummvm-rg350-5ae958bcf3a1dc4d7be093eac99eb0d5145c8c7e.zip
IPHONE: Let iPhoneView and OSystem_IPHONE share the same VideoContext.
This allows for better sharing between the current video state in the view and the OSystem implementation. This also gets rid of most C interface functions for calling ObjC code.
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r--backends/platform/iphone/iphone_video.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h
index 2677267171..1d9d7e7d35 100644
--- a/backends/platform/iphone/iphone_video.h
+++ b/backends/platform/iphone/iphone_video.h
@@ -35,6 +35,8 @@
#include "iphone_common.h"
@interface iPhoneView : UIView {
+ VideoContext _videoContext;
+
NSMutableArray *_events;
SoftKeyboard *_keyboardView;
@@ -56,6 +58,8 @@
- (id)initWithFrame:(struct CGRect)frame;
+- (VideoContext *)getVideoContext;
+
- (void)drawRect:(CGRect)frame;
- (void)initSurface;
@@ -81,4 +85,6 @@
@end
+extern iPhoneView *g_iPhoneViewInstance;
+
#endif