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

A self-contained OpenGL ES view that previews the marker animation for a timing-adjust test. More...

#include <AdjustTestView.h>

Inheritance diagram for AdjustTestView:
Collaboration diagram for AdjustTestView:

Instance Methods

(instancetype) - initWithFrame:
 Initialises the view, its EAGL context and framebuffer, and the four panel buttons.
(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 panel buttons into the ten sprite-sheet textures, and loads the test sequence and its background music.
(void) - releaseTex
 Releases the ten sprite-sheet textures, stops the background music, and drops the sequence.
(void) - startPreview
 Starts the preview: resets state, pushes and reloads the background music, and plays it.
(void) - pausePreview
 Pauses the preview if it is running: stops the music and restores the pushed track.
(void) - suspendPreview
 Suspends the preview: marks it paused, resets state, and stops the music.
(void) - resumePreview
 Resumes the preview: restores the pushed track and fades the music back in.
(void) - setAdjust:
 Sets the audio-timing offset from a sector value, scaling it by the frame rate.
(void) - reset
 Resets the press flags, timing state, base time, and audio offset, and rewinds the sequence.
(void) - drawBtn:btnState:
 Draws one packed button sprite for a given animation state into the fixed test rectangle.
(void) - draw
 Advances the sequence to the current music position, judges the panels, and renders one frame per panel plus its button.
(void) - destroyFramebuffer
 Deletes the framebuffer, colour renderbuffer, and index buffer.
(void) - btnTouchesBegan:
 Marks a panel as pressed from a button's down event, by its tag.
(void) - btnTouchesEnd:
 Clears a panel's pressed flag from a button's up event, by its tag.

Class Methods

(Class) + layerClass
 Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.

Properties

Sequence * sequence
 The playback sequence, built from the bundled test archive.
NSString * currentMarker
 The current marker identifier, set when marker textures are loaded.

Detailed Description

A self-contained OpenGL ES view that previews the marker animation for a timing-adjust test.

Method Documentation

◆ btnTouchesBegan:

- (void) btnTouchesBegan: (UIButton *) sender

Marks a panel as pressed from a button's down event, by its tag.

Parameters
senderThe button that was pressed.
Ghidra address:
0x9f40c
Ghidra address:
0x9f40c

◆ btnTouchesEnd:

- (void) btnTouchesEnd: (UIButton *) sender

Clears a panel's pressed flag from a button's up event, by its tag.

Parameters
senderThe button that was released.
Ghidra address:
0x9f458
Ghidra address:
0x9f458

◆ 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:
0x9e014
Ghidra address:
0x9e014

◆ destroyFramebuffer

- (void) destroyFramebuffer

Deletes the framebuffer, colour renderbuffer, and index buffer.

Ghidra address:
0x9f308

◆ draw

- (void) draw

Advances the sequence to the current music position, judges the panels, and renders one frame per panel plus its button.

Ghidra address:
0x9eec8

◆ drawBtn:btnState:

- (void) drawBtn: (CGPoint) point
btnState: (int) btnState 

Draws one packed button sprite for a given animation state into the fixed test rectangle.

The point is not used; the sprite is always drawn at a fixed inset. The btnState selects the atlas texture and cell.

Parameters
pointIgnored.
btnStateThe packed animation-state and frame value selecting the atlas cell.
Ghidra address:
0x9edd8
Ghidra address:
0x9edd8

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect) frame

Initialises the view, its EAGL context and framebuffer, and the four panel buttons.

Parameters
frameThe view's frame.
Returns
The initialised view, or nil if the GL context could not be created.
Ghidra address:
0x9db8c
Ghidra address:
0x9db8c

◆ layerClass

+ (Class) layerClass

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

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

◆ loadMarkerTex:

- (void) loadMarkerTex: (nullable NSString *) markerID

Loads a marker's animation frames and panel buttons into the ten sprite-sheet textures, and loads the test sequence and its background music.

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: . Then opens the bundled 999999999.jbt archive to build the Sequence and background-music data.

Parameters
markerIDThe marker identifier (for example mk0001 ).
Ghidra address:
0x9e288

◆ pausePreview

- (void) pausePreview

Pauses the preview if it is running: stops the music and restores the pushed track.

Ghidra address:
0x9eb10

◆ releaseTex

- (void) releaseTex

Releases the ten sprite-sheet textures, stops the background music, and drops the sequence.

Ghidra address:
0x9e904

◆ reset

- (void) reset

Resets the press flags, timing state, base time, and audio offset, and rewinds the sequence.

Ghidra address:
0x9ecc0

◆ resumePreview

- (void) resumePreview

Resumes the preview: restores the pushed track and fades the music back in.

Ghidra address:
0x9ec3c

◆ setAdjust:

- (void) setAdjust: (int) adjust

Sets the audio-timing offset from a sector value, scaling it by the frame rate.

Parameters
adjustThe offset in frame sectors.
Ghidra address:
0x9eca0
Ghidra address:
0x9eca0

◆ startPreview

- (void) startPreview

Starts the preview: resets state, pushes and reloads the background music, and plays it.

Ghidra address:
0x9ea70

◆ suspendPreview

- (void) suspendPreview

Suspends the preview: marks it paused, resets state, and stops the music.

Ghidra address:
0x9ebcc

Property Documentation

◆ currentMarker

- (NSString*) currentMarker
readatomicstrong

The current marker identifier, set when marker textures are loaded.

Ghidra address:
0x9f50c (getter)

◆ sequence

- (Sequence*) sequence
readwritenonatomicstrong

The playback sequence, built from the bundled test archive.

Ghidra address:
0x9f51c (getter), 0x9f52c (setter)

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