JubeatPlus 3.9.11
Loading...
Searching...
No Matches
EAGLView.h
Go to the documentation of this file.
1
5
6#import <OpenGLES/EAGL.h>
7#import <UIKit/UIKit.h>
8
9NS_ASSUME_NONNULL_BEGIN
10
18@interface EAGLView : UIView
19
21@property(nonatomic, strong, nullable) EAGLContext *renderContext;
22
28+ (Class)layerClass;
29
34- (void)startRenderContext;
35
42- (void)performBlockInBackground:(void (^)(void))block;
43
48- (void)prepareToRender;
49
54- (void)swapBuffer;
55
62- (BOOL)createFramebuffer;
63
68- (void)destroyFramebuffer;
69
75- (void)set2dSpace:(CGSize)size;
76
82- (nonnull NSMutableSet *)touches;
83
88- (void)resetTouches;
89
90@end
91
92NS_ASSUME_NONNULL_END
93
94// code: language=Objective-C
95// kate: hl Objective-C;
96// vim: set ft=objc :
The OpenGL ES 1.1 rendering view backing the game.
Definition EAGLView.h:19
void prepareToRender()
Makes the render context current and clears the framebuffer in preparation for a frame.
Definition EAGLView.m:96
nonnull NSMutableSet * touches()
Returns the touches accumulated for the current frame, then clears the release set.
Definition EAGLView.m:210
BOOL createFramebuffer()
Creates the framebuffer, colour and depth renderbuffers, and the shared quad index buffer,...
Definition EAGLView.m:116
EAGLContext * renderContext
The EAGL rendering context this view draws into.
Definition EAGLView.h:21
void resetTouches()
Clears both the current and release touch sets.
Definition EAGLView.m:220
void swapBuffer()
Discards the depth attachment and presents the colour renderbuffer to the screen.
Definition EAGLView.m:105
void startRenderContext()
Binds this view's render context as the current context for the calling thread.
Definition EAGLView.m:74
Class layerClass()
Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
Definition EAGLView.m:38
void destroyFramebuffer()
Deletes the framebuffer, renderbuffers, and index buffer.
Definition EAGLView.m:176