22 #ifndef BACKENDS_PLATFORM_IPHONE_IPHONE_VIDEO_H 23 #define BACKENDS_PLATFORM_IPHONE_IPHONE_VIDEO_H 25 #include <UIKit/UIKit.h> 26 #include <Foundation/Foundation.h> 27 #include <QuartzCore/QuartzCore.h> 29 #include <OpenGLES/EAGL.h> 30 #include <OpenGLES/ES1/gl.h> 31 #include <OpenGLES/ES1/glext.h> 33 #include "backends/platform/iphone/iphone_keyboard.h" 34 #include "backends/platform/iphone/iphone_common.h" 36 #include "common/list.h" 45 EAGLContext *_context;
46 GLuint _viewRenderbuffer;
47 GLuint _viewFramebuffer;
48 GLuint _screenTexture;
49 GLuint _overlayTexture;
50 GLuint _mouseCursorTexture;
52 UIDeviceOrientation _orientation;
54 GLint _renderBufferWidth;
55 GLint _renderBufferHeight;
57 GLfloat _gameScreenVertCoords[4 * 2];
58 GLfloat _gameScreenTexCoords[4 * 2];
59 CGRect _gameScreenRect;
61 GLfloat _overlayVertCoords[4 * 2];
62 GLfloat _overlayTexCoords[4 * 2];
65 GLfloat _mouseVertCoords[4 * 2];
66 GLfloat _mouseTexCoords[4 * 2];
67 GLint _mouseHotspotX, _mouseHotspotY;
68 GLint _mouseWidth, _mouseHeight;
69 GLfloat _mouseScaleX, _mouseScaleY;
71 int _scaledShakeXOffset;
72 int _scaledShakeYOffset;
73 CGFloat _contentScaleFactor;
76 UITouch *_secondTouch;
79 - (id)initWithFrame:(struct CGRect)frame;
83 - (void)drawRect:(CGRect)frame;
85 - (void)createScreenTexture;
87 - (void)setViewTransformation;
89 - (void)setGraphicsMode;
91 - (void)updateSurface;
92 - (void)updateMainSurface;
93 - (void)updateOverlaySurface;
94 - (void)updateMouseSurface;
95 - (void)clearColorBuffer;
97 - (void)notifyMouseMove;
98 - (void)updateMouseCursorScaling;
99 - (void)updateMouseCursor;
101 - (void)deviceOrientationChanged:(UIDeviceOrientation)orientation;
103 - (void)disableIdleTimer;
104 - (void)enableIdleTimer;
106 - (void)applicationSuspend;
108 - (void)applicationResume;
Definition: ios7_common.h:100
Definition: ios7_video.h:44
Definition: ios7_common.h:70