123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- #import <AVFoundation/AVFoundation.h>
- #import <MediaPlayer/MediaPlayer.h>
- #import <OpenGLES/EAGL.h>
- #import <OpenGLES/ES1/gl.h>
- #import <OpenGLES/ES1/glext.h>
- #import <UIKit/UIKit.h>
- @protocol GLViewDelegate;
- @interface GLView : UIView <UIKeyInput> {
- @private
-
- GLint backingWidth;
- GLint backingHeight;
- EAGLContext *context;
-
- GLuint viewRenderbuffer, viewFramebuffer;
-
- GLuint depthRenderbuffer;
- BOOL useCADisplayLink;
-
- CADisplayLink *displayLink;
-
-
- NSTimer *animationTimer;
- NSTimeInterval animationInterval;
-
- id<GLViewDelegate> delegate;
-
-
- BOOL delegateSetup;
- BOOL active;
- float screen_scale;
- }
- @property(nonatomic, assign) id<GLViewDelegate> delegate;
- @property(strong, nonatomic) AVAsset *avAsset;
- @property(strong, nonatomic) AVPlayerItem *avPlayerItem;
- @property(strong, nonatomic) AVPlayer *avPlayer;
- @property(strong, nonatomic) AVPlayerLayer *avPlayerLayer;
- @property(strong, nonatomic) MPMoviePlayerController *moviePlayerController;
- @property(strong, nonatomic) UIWindow *backgroundWindow;
- @property(nonatomic) UITextAutocorrectionType autocorrectionType;
- - (void)startAnimation;
- - (void)stopAnimation;
- - (void)drawView;
- - (BOOL)canBecomeFirstResponder;
- - (void)open_keyboard;
- - (void)hide_keyboard;
- - (void)deleteBackward;
- - (BOOL)hasText;
- - (void)insertText:(NSString *)p_text;
- - (id)initGLES;
- - (BOOL)createFramebuffer;
- - (void)destroyFramebuffer;
- - (void)audioRouteChangeListenerCallback:(NSNotification *)notification;
- - (void)keyboardOnScreen:(NSNotification *)notification;
- - (void)keyboardHidden:(NSNotification *)notification;
- @property NSTimeInterval animationInterval;
- @property(nonatomic, assign) BOOL useCADisplayLink;
- @end
- @protocol GLViewDelegate <NSObject>
- @required
- - (void)drawView:(GLView *)view;
- @optional
- - (void)setupView:(GLView *)view;
- @end
|