GLCanvas.h 761 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) NSNumber *pixelRatio;
15
@property (nonatomic) NSArray *imagesToPreload;
16 17 18
@property (nonatomic, copy) RCTBubblingEventBlock onGLProgress;
@property (nonatomic, copy) RCTBubblingEventBlock onGLLoad;
@property (nonatomic, copy) RCTBubblingEventBlock onGLCaptureFrame;
19

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

22
- (void) requestCaptureFrame;
23

24
@end