|
JubeatPlus 3.9.11
|
The OpenGL ES 1.1 rendering view backing the game. More...
#include <EAGLView.h>


Instance Methods | |
| (void) | - startRenderContext |
| Binds this view's render context as the current context for the calling thread. | |
| (void) | - performBlockInBackground: |
| Runs a block on a background queue against a second GL context that shares this view's sharegroup, so GL resources can be uploaded off the main thread. | |
| (void) | - prepareToRender |
| Makes the render context current and clears the framebuffer in preparation for a frame. | |
| (void) | - swapBuffer |
| Discards the depth attachment and presents the colour renderbuffer to the screen. | |
| (BOOL) | - createFramebuffer |
| Creates the framebuffer, colour and depth renderbuffers, and the shared quad index buffer, and configures the fixed-function GL state. | |
| (void) | - destroyFramebuffer |
| Deletes the framebuffer, renderbuffers, and index buffer. | |
| (void) | - set2dSpace: |
| Sets up an orthographic projection covering a 2D space of the given size. | |
| (nonnull NSMutableSet *) | - touches |
| Returns the touches accumulated for the current frame, then clears the release set. | |
| (void) | - resetTouches |
| Clears both the current and release touch sets. | |
Class Methods | |
| (Class) | + layerClass |
Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer. | |
Properties | |
| EAGLContext * | renderContext |
| The EAGL rendering context this view draws into. | |
The OpenGL ES 1.1 rendering view backing the game.
A CAEAGLLayer-backed UIView that owns the default framebuffer, colour and depth renderbuffers, and a shared element-array (index) buffer, drives the GL context, and forwards UIKit touches into a pair of tracking sets consumed by the engine each frame.
| - (BOOL) createFramebuffer |
Creates the framebuffer, colour and depth renderbuffers, and the shared quad index buffer, and configures the fixed-function GL state.
YES if the framebuffer is complete, otherwise NO. | - (void) destroyFramebuffer |
Deletes the framebuffer, renderbuffers, and index buffer.
| + (Class) layerClass |
Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
CAEAGLLayer class. | - (void) performBlockInBackground: | (void(^)(void)) | block |
Runs a block on a background queue against a second GL context that shares this view's sharegroup, so GL resources can be uploaded off the main thread.
| block | The work to perform with the shared context bound. |
| - (void) prepareToRender |
Makes the render context current and clears the framebuffer in preparation for a frame.
| - (void) resetTouches |
Clears both the current and release touch sets.
| - (void) set2dSpace: | (CGSize) | size |
Sets up an orthographic projection covering a 2D space of the given size.
| size | The width and height of the 2D space, in points. |
| - (void) startRenderContext |
Binds this view's render context as the current context for the calling thread.
| - (void) swapBuffer |
Discards the depth attachment and presents the colour renderbuffer to the screen.
| - (NSMutableSet *) touches |
Returns the touches accumulated for the current frame, then clears the release set.