JubeatPlus 3.9.11
Loading...
Searching...
No Matches
AdjustTestView.h
Go to the documentation of this file.
1
16
17#import <OpenGLES/EAGL.h>
18#import <UIKit/UIKit.h>
19
20@class Sequence;
21
22NS_ASSUME_NONNULL_BEGIN
23
28@interface AdjustTestView : UIView
29
35+ (Class)layerClass;
36
43- (instancetype)initWithFrame:(CGRect)frame;
44
51- (BOOL)createFramebuffer;
52
64- (void)loadMarkerTex:(nullable NSString *)markerID;
65
71- (void)releaseTex;
72
77- (void)startPreview;
78
83- (void)pausePreview;
84
89- (void)suspendPreview;
90
95- (void)resumePreview;
96
102- (void)setAdjust:(int)adjust;
103
109- (void)reset;
110
121- (void)drawBtn:(CGPoint)point btnState:(int)btnState;
122
128- (void)draw;
129
134- (void)destroyFramebuffer;
135
141- (void)btnTouchesBegan:(UIButton *)sender;
142
148- (void)btnTouchesEnd:(UIButton *)sender;
149
154@property(nonatomic, strong, nullable) Sequence *sequence;
155
160@property(readonly, strong, nullable) NSString *currentMarker;
161
162@end
163
164NS_ASSUME_NONNULL_END
165
166// code: language=Objective-C
167// kate: hl Objective-C;
168// vim: set ft=objc :
A self-contained OpenGL ES view that previews the marker animation for a timing-adjust test.
Definition AdjustTestView.h:29
void resumePreview()
Resumes the preview: restores the pushed track and fades the music back in.
Definition AdjustTestView.m:432
NSString * currentMarker
The current marker identifier, set when marker textures are loaded.
Definition AdjustTestView.h:160
void pausePreview()
Pauses the preview if it is running: stops the music and restores the pushed track.
Definition AdjustTestView.m:411
void suspendPreview()
Suspends the preview: marks it paused, resets state, and stops the music.
Definition AdjustTestView.m:424
Sequence * sequence
The playback sequence, built from the bundled test archive.
Definition AdjustTestView.h:154
void startPreview()
Starts the preview: resets state, pushes and reloads the background music, and plays it.
Definition AdjustTestView.m:401
void draw()
Advances the sequence to the current music position, judges the panels, and renders one frame per pan...
Definition AdjustTestView.m:473
Class layerClass()
Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
Definition AdjustTestView.m:156
void reset()
Resets the press flags, timing state, base time, and audio offset, and rewinds the sequence.
Definition AdjustTestView.m:444
void releaseTex()
Releases the ten sprite-sheet textures, stops the background music, and drops the sequence.
Definition AdjustTestView.m:382
void destroyFramebuffer()
Deletes the framebuffer, colour renderbuffer, and index buffer.
Definition AdjustTestView.m:278
BOOL createFramebuffer()
Creates the framebuffer, colour renderbuffer, and shared quad index buffer, and configures the fixed-...
Definition AdjustTestView.m:223
The core gameplay judgement engine for a single play session.
Definition Sequence.h:102