A self-contained OpenGL ES view that previews a marker's hit animation.
More...
#include <MarkerTestView.h>
|
| (instancetype) | - initWithFrame: |
| | Initialises the view, its EAGL context and framebuffer, and the per-theme sound names.
|
| (BOOL) | - createFramebuffer |
| | Creates the framebuffer, colour renderbuffer, and shared quad index buffer, and configures the fixed-function GL state.
|
| (void) | - loadMarkerTex: |
| | Loads a marker's animation frames and press button into the ten sprite-sheet textures.
|
| (void) | - releaseTex |
| | Releases the ten sprite-sheet textures and resets the current marker.
|
| (void) | - reset |
| | Resets the press flags, timing state, and base time to start a fresh preview.
|
| (void) | - draw |
| | Advances the timing state machine, plays the matching hit sound, and renders one frame.
|
| (void) | - destroyFramebuffer |
| | Deletes the framebuffer, colour renderbuffer, and index buffer.
|
|
| (Class) | + layerClass |
| | Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
|
|
| NSString * | currentMarker |
| | The current marker identifier, set when marker textures are loaded.
|
| NSArray< NSArray< NSString * > * > * | soundNames |
| | The per-theme hit-sound names, indexed by JubeatTheme .
|
A self-contained OpenGL ES view that previews a marker's hit animation.
◆ createFramebuffer
| - (BOOL) createFramebuffer |
|
|
|
Creates the framebuffer, colour renderbuffer, and shared quad index buffer, and configures the fixed-function GL state.
- Returns
YES if the framebuffer is complete, otherwise NO.
- Ghidra address:
- 0x80710
- Ghidra address:
- 0x80710
◆ destroyFramebuffer
| - (void) destroyFramebuffer |
|
|
|
Deletes the framebuffer, colour renderbuffer, and index buffer.
- Ghidra address:
- 0x81620
◆ draw
Advances the timing state machine, plays the matching hit sound, and renders one frame.
- Ghidra address:
- 0x80fa4
◆ initWithFrame:
| - (instancetype) initWithFrame: |
|
(CGRect) | frame |
|
Initialises the view, its EAGL context and framebuffer, and the per-theme sound names.
- Parameters
-
- Returns
- The initialised view, or
nil if the GL context could not be created.
- Ghidra address:
- 0x802a8
- Ghidra address:
- 0x802a8
◆ layerClass
Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
- Returns
- The
CAEAGLLayer class.
- Ghidra address:
- 0x80294
- Ghidra address:
- 0x80294
◆ loadMarkerTex:
| - (void) loadMarkerTex: |
|
(nullable NSString *) | markerID |
|
Loads a marker's animation frames and press button into the ten sprite-sheet textures.
Opens the marker's data archive, decrypts each named entry into an image, and packs the marker frames and the up/down button graphics into the texture table with -setSubImage:inRect: .
- Parameters
-
| markerID | The marker identifier (for example mk0001 ). |
- Ghidra address:
- 0x80984
◆ releaseTex
Releases the ten sprite-sheet textures and resets the current marker.
- Ghidra address:
- 0x80e58
◆ reset
Resets the press flags, timing state, and base time to start a fresh preview.
- Ghidra address:
- 0x80f54
◆ currentMarker
| - (NSString*) currentMarker |
|
readatomicassign |
The current marker identifier, set when marker textures are loaded.
- Ghidra address:
- 0x817a0 (getter)
◆ soundNames
| - (NSArray<NSArray<NSString *> *>*) soundNames |
|
readwritenonatomicstrong |
The per-theme hit-sound names, indexed by JubeatTheme .
A three-element array (original, ripples, knit), each element a four-element array of sound names ordered perfect, good, fast, slow.
- Ghidra address:
- 0x817b0 (getter), 0x817c0 (setter)
The documentation for this class was generated from the following files: