diff options
author | Oystein Eftevaag | 2009-05-09 22:25:28 +0000 |
---|---|---|
committer | Oystein Eftevaag | 2009-05-09 22:25:28 +0000 |
commit | 8b813f02b850f7b67c17cdaf4a058c73f2febe2c (patch) | |
tree | 962779b69e41d8dad59748688a5cfe733fc457c0 /backends/platform/iphone/iphone_video.h | |
parent | 5dc9bdc05af51c2dee219f6d5ca9f17c93924d8e (diff) | |
download | scummvm-rg350-8b813f02b850f7b67c17cdaf4a058c73f2febe2c.tar.gz scummvm-rg350-8b813f02b850f7b67c17cdaf4a058c73f2febe2c.tar.bz2 scummvm-rg350-8b813f02b850f7b67c17cdaf4a058c73f2febe2c.zip |
Converted the iPhone backend to use OpenGL ES instead of CoreSurface for graphics output
svn-id: r40403
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r-- | backends/platform/iphone/iphone_video.h | 33 |
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; |