JubeatPlus 3.9.11
Loading...
Searching...
No Matches
MarkerTestView.h
Go to the documentation of this file.
1
15
16#import <OpenGLES/EAGL.h>
17#import <UIKit/UIKit.h>
18
19NS_ASSUME_NONNULL_BEGIN
20
24@interface MarkerTestView : UIView
25
31+ (Class)layerClass;
32
39- (instancetype)initWithFrame:(CGRect)frame;
40
47- (BOOL)createFramebuffer;
48
58- (void)loadMarkerTex:(nullable NSString *)markerID;
59
64- (void)releaseTex;
65
70- (void)reset;
71
76- (void)draw;
77
82- (void)destroyFramebuffer;
83
88@property(atomic, readonly, nullable) NSString *currentMarker;
89
97@property(nonatomic, strong, nullable) NSArray<NSArray<NSString *> *> *soundNames;
98
99@end
100
101NS_ASSUME_NONNULL_END
102
103// code: language=Objective-C
104// kate: hl Objective-C;
105// vim: set ft=objc :
A self-contained OpenGL ES view that previews a marker's hit animation.
Definition MarkerTestView.h:25
NSString * currentMarker
The current marker identifier, set when marker textures are loaded.
Definition MarkerTestView.h:88
void reset()
Resets the press flags, timing state, and base time to start a fresh preview.
Definition MarkerTestView.m:352
void destroyFramebuffer()
Deletes the framebuffer, colour renderbuffer, and index buffer.
Definition MarkerTestView.m:230
Class layerClass()
Returns CAEAGLLayer so the view is backed by a Core Animation EAGL layer.
Definition MarkerTestView.m:123
NSArray< NSArray< NSString * > * > * soundNames
The per-theme hit-sound names, indexed by JubeatTheme .
Definition MarkerTestView.h:97
void releaseTex()
Releases the ten sprite-sheet textures and resets the current marker.
Definition MarkerTestView.m:339
void draw()
Advances the timing state machine, plays the matching hit sound, and renders one frame.
Definition MarkerTestView.m:360
BOOL createFramebuffer()
Creates the framebuffer, colour renderbuffer, and shared quad index buffer, and configures the fixed-...
Definition MarkerTestView.m:175