A self-contained OpenGL ES view that previews the marker animation for a timing-adjust test.
More...
#include <AdjustTestView.h>
|
| (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) | + layerClass |
| | Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
|
|
| Sequence * | sequence |
| | The playback sequence, built from the bundled test archive.
|
| NSString * | currentMarker |
| | The current marker identifier, set when marker textures are loaded.
|
A self-contained OpenGL ES view that previews the marker animation for a timing-adjust test.
◆ btnTouchesBegan:
| - (void) btnTouchesBegan: |
|
(UIButton *) | sender |
|
Marks a panel as pressed from a button's down event, by its tag.
- Parameters
-
| sender | The 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
-
| sender | The 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
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
-
| point | Ignored. |
| btnState | The 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
-
- Returns
- The initialised view, or
nil if the GL context could not be created.
- Ghidra address:
- 0x9db8c
- Ghidra address:
- 0x9db8c
◆ 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
-
| markerID | The marker identifier (for example mk0001 ). |
- Ghidra address:
- 0x9e288
◆ pausePreview
Pauses the preview if it is running: stops the music and restores the pushed track.
- Ghidra address:
- 0x9eb10
◆ releaseTex
Releases the ten sprite-sheet textures, stops the background music, and drops the sequence.
- Ghidra address:
- 0x9e904
◆ reset
Resets the press flags, timing state, base time, and audio offset, and rewinds the sequence.
- Ghidra address:
- 0x9ecc0
◆ 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
-
| adjust | The offset in frame sectors. |
- Ghidra address:
- 0x9eca0
- Ghidra address:
- 0x9eca0
◆ startPreview
Starts the preview: resets state, pushes and reloads the background music, and plays it.
- Ghidra address:
- 0x9ea70
◆ suspendPreview
Suspends the preview: marks it paused, resets state, and stops the music.
- Ghidra address:
- 0x9ebcc
◆ currentMarker
| - (NSString*) currentMarker |
|
readatomicstrong |
The current marker identifier, set when marker textures are loaded.
- Ghidra address:
- 0x9f50c (getter)
◆ sequence
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: