6#import <OpenGLES/EAGL.h>
42- (void)performBlockInBackground:(void (^)(void))block;
75- (void)set2dSpace:(CGSize)size;
82- (nonnull NSMutableSet *)
touches;
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