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

3 4
// Data format of gl-react-core

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 12
@property (nonatomic) NSNumber *fboId;
@property (nonatomic) NSArray *contextChildren;
13 14 15 16 17 18
@property (nonatomic) NSArray *children;

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

@end