aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/iphone_video.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r--backends/platform/iphone/iphone_video.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h
index 0ef21007ba..3d5715bb95 100644
--- a/backends/platform/iphone/iphone_video.h
+++ b/backends/platform/iphone/iphone_video.h
@@ -30,30 +30,16 @@
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
-#import "iphone_keyboard.h"
-
-void *CoreSurfaceBufferGetBaseAddress(void* surface);
-int CoreSurfaceBufferLock(void* surface, unsigned int lockType);
-int CoreSurfaceBufferUnlock(void* surface);
-void* CoreSurfaceBufferCreate(CFDictionaryRef dict);
+#import <OpenGLES/EAGL.h>
+#import <OpenGLES/ES1/gl.h>
+#import <OpenGLES/ES1/glext.h>
-extern CFStringRef kCoreSurfaceBufferGlobal;
-extern CFStringRef kCoreSurfaceBufferMemoryRegion;
-extern CFStringRef kCoreSurfaceBufferPitch;
-extern CFStringRef kCoreSurfaceBufferWidth;
-extern CFStringRef kCoreSurfaceBufferHeight;
-extern CFStringRef kCoreSurfaceBufferPixelFormat;
-extern CFStringRef kCoreSurfaceBufferAllocSize;
-
-struct __GSEvent;
-CGPoint GSEventGetLocationInWindow(struct __GSEvent *ev);
-unsigned int GSEventDeviceOrientation(struct __GSEvent *ev);
+#import "iphone_keyboard.h"
@interface iPhoneView : UIView
{
void* _screenSurface;
NSMutableArray* _events;
- NSLock* _lock;
SoftKeyboard* _keyboardView;
CALayer* _screenLayer;
@@ -61,6 +47,15 @@ unsigned int GSEventDeviceOrientation(struct __GSEvent *ev);
int _fullHeight;
int _widthOffset;
int _heightOffset;
+
+ EAGLContext* _context;
+ GLuint _viewRenderbuffer;
+ GLuint _viewFramebuffer;
+ GLint _backingWidth;
+ GLint _backingHeight;
+ GLint _visibleWidth;
+ GLint _visibleHeight;
+ GLuint _screenTexture;
}
- (id)initWithFrame:(struct CGRect)frame;
@@ -71,7 +66,7 @@ unsigned int GSEventDeviceOrientation(struct __GSEvent *ev);
- (void)initSurface;
-- (void)updateScreenRect:(id)rect;
+- (void)updateSurface;
- (id)getEvent;