JubeatPlus 3.9.11
Loading...
Searching...
No Matches
EAGLView Class Reference

The OpenGL ES 1.1 rendering view backing the game. More...

#include <EAGLView.h>

Inheritance diagram for EAGLView:
Collaboration diagram for EAGLView:

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.

Detailed Description

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.

Method Documentation

◆ createFramebuffer

- (BOOL) createFramebuffer

Creates the framebuffer, colour and depth renderbuffers, and the shared quad index buffer, and configures the fixed-function GL state.

Returns
YES if the framebuffer is complete, otherwise NO.
Ghidra address:
0xd0b8
Ghidra address:
0xd0b8

◆ destroyFramebuffer

- (void) destroyFramebuffer

Deletes the framebuffer, renderbuffers, and index buffer.

Ghidra address:
0xd3c8

◆ layerClass

+ (Class) layerClass

Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.

Returns
The CAEAGLLayer class.
Ghidra address:
0xca80
Ghidra address:
0xca80

◆ performBlockInBackground:

- (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.

Parameters
blockThe work to perform with the shared context bound.
Ghidra address:
0xcda0
Ghidra address:
0xcda0
Ghidra address:
0xce88

◆ prepareToRender

- (void) prepareToRender

Makes the render context current and clears the framebuffer in preparation for a frame.

Ghidra address:
0xcf98

◆ resetTouches

- (void) resetTouches

Clears both the current and release touch sets.

Ghidra address:
0xd6b4

◆ set2dSpace:

- (void) set2dSpace: (CGSize) size

Sets up an orthographic projection covering a 2D space of the given size.

Parameters
sizeThe width and height of the 2D space, in points.
Ghidra address:
0xd4b8
Ghidra address:
0xd4b8

◆ startRenderContext

- (void) startRenderContext

Binds this view's render context as the current context for the calling thread.

Ghidra address:
0xcd50

◆ swapBuffer

- (void) swapBuffer

Discards the depth attachment and presents the colour renderbuffer to the screen.

Ghidra address:
0xd024

◆ touches

- (NSMutableSet *) touches

Returns the touches accumulated for the current frame, then clears the release set.

Returns
A snapshot set combining the current and just-released touches.
Ghidra address:
0xd504
Ghidra address:
0xd504

The documentation for this class was generated from the following files: