GLRenderData.h 856 Bytes
Newer Older
1 2
#import "GLShader.h"

3 4
// GLRenderData is the validated/gl'resolved version of GLData

5 6 7 8 9
@interface GLRenderData : NSObject

@property (nonatomic) GLShader *shader;
@property (nonatomic) NSDictionary *uniforms;
@property (nonatomic) NSDictionary *textures;
10 11
@property (nonatomic) int width;
@property (nonatomic) int height;
12 13
@property (nonatomic) int fboId;
@property (nonatomic) NSArray *contextChildren;
14 15 16 17 18
@property (nonatomic) NSArray *children;

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

@end