GLData.h 854 Bytes
Newer Older
1 2
#import <Foundation/Foundation.h>

3
// Data format of gl-react
4

5 6 7 8 9 10
@interface GLData: NSObject

@property (nonatomic) NSNumber *shader;
@property (nonatomic) NSDictionary *uniforms;
@property (nonatomic) NSNumber *width;
@property (nonatomic) NSNumber *height;
11
@property (nonatomic) NSNumber *pixelRatio;
12 13
@property (nonatomic) NSNumber *fboId;
@property (nonatomic) NSArray *contextChildren;
14 15 16 17 18 19
@property (nonatomic) NSArray *children;

-(instancetype)initWithShader: (NSNumber *)shader
                 withUniforms: (NSDictionary *)uniforms
                    withWidth: (NSNumber *)width
                   withHeight: (NSNumber *)height
20
               withPixelRatio: (NSNumber *)pixelRatio
21 22
                    withFboId: (NSNumber *)fboId
          withContextChildren: (NSArray *)contextChildren
23
                 withChildren: (NSArray *)children;
24 25

@end