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

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

5 6 7 8 9 10 11
@interface GLRenderData : NSObject

@property (nonatomic) GLShader *shader;
@property (nonatomic) NSDictionary *uniforms;
@property (nonatomic) NSDictionary *textures;
@property (nonatomic) NSNumber *width;
@property (nonatomic) NSNumber *height;
12 13
@property (nonatomic) int fboId;
@property (nonatomic) NSArray *contextChildren;
14
@property (nonatomic) NSArray *children;
15
@property (nonatomic) BOOL premultipliedAlpha;
16 17 18 19 20 21

-(instancetype) initWithShader: (GLShader *)shader
                  withUniforms:(NSDictionary *)uniforms
                  withTextures: (NSDictionary *)textures
                     withWidth: (NSNumber *)width
                    withHeight: (NSNumber *)height
22 23
                     withFboId: (int)fboId
           withContextChildren: (NSArray *)contextChildren
24 25
                  withChildren: (NSArray *)children
        withPremultipliedAlpha: (BOOL)premultipliedAlpha;
26 27

@end