GLCanvas.h 717 Bytes
Newer Older
1 2
#import <GLKit/GLKit.h>
#import "GLData.h"
3
#import "RCTComponent.h"
4 5 6 7 8

@interface GLCanvas: GLKView

@property (nonatomic) GLData *data;
@property (nonatomic) BOOL opaque;
9 10
@property (nonatomic) BOOL autoRedraw;
@property (nonatomic) BOOL eventsThrough;
11
@property (nonatomic) BOOL visibleContent;
12
@property (nonatomic) NSNumber *nbContentTextures;
13
@property (nonatomic) NSNumber *renderId;
14
@property (nonatomic) NSArray *imagesToPreload;
15 16 17
@property (nonatomic, copy) RCTBubblingEventBlock onGLProgress;
@property (nonatomic, copy) RCTBubblingEventBlock onGLLoad;
@property (nonatomic, copy) RCTBubblingEventBlock onGLCaptureFrame;
18

19
- (instancetype)initWithBridge:(RCTBridge *)bridge;
20

21
- (void) requestCaptureFrame;
22

23
@end