mirror of
https://github.com/expo/gl-react-native.git
synced 2026-11-15 17:34:35 -10:00
24 lines
756 B
Objective-C
24 lines
756 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
// Data format of gl-react
|
|
|
|
@interface GLData: NSObject
|
|
|
|
@property (nonatomic) NSNumber *shader;
|
|
@property (nonatomic) NSDictionary *uniforms;
|
|
@property (nonatomic) NSNumber *width;
|
|
@property (nonatomic) NSNumber *height;
|
|
@property (nonatomic) NSNumber *fboId;
|
|
@property (nonatomic) NSArray *contextChildren;
|
|
@property (nonatomic) NSArray *children;
|
|
|
|
-(instancetype)initWithShader: (NSNumber *)shader
|
|
withUniforms: (NSDictionary *)uniforms
|
|
withWidth: (NSNumber *)width
|
|
withHeight: (NSNumber *)height
|
|
withFboId: (NSNumber *)fboId
|
|
withContextChildren: (NSArray *)contextChildren
|
|
withChildren: (NSArray *)children;
|
|
|
|
@end
|