JubeatPlus 3.9.11
Loading...
Searching...
No Matches
BGRipple.h
Go to the documentation of this file.
1
11
12#import <CoreGraphics/CoreGraphics.h>
13#import <Foundation/Foundation.h>
14
15@class Texture2D;
16
17NS_ASSUME_NONNULL_BEGIN
18
25@interface BGRipple : NSObject
26
39- (instancetype)initWithSprite:(NSUInteger)aSprite
40 atPoint:(CGPoint)aPoint
41 xSpeed:(float)anXSpeed
42 lifetime:(unsigned int)aLifetime
43 basesize:(float)basesize
44 mag:(float)aMag
45 alpha:(float)alpha;
46
54- (BOOL)step;
55
65- (void)renderWithTexture:(nullable Texture2D *)texture;
66
67@end
68
69NS_ASSUME_NONNULL_END
70
71// code: language=Objective-C
72// kate: hl Objective-C;
73// vim: set ft=objc :
A single ripple sprite that drifts sideways, swells and fades.
Definition BGRipple.h:26
BOOL step()
Advances the ripple by one frame.
Definition BGRipple.m:68
A texture that can draw any of the sprites packed into it.
Definition Texture2D.h:40