GLData.m 777 Bytes
Newer Older
1 2 3 4 5 6 7 8
#import "GLData.h"

@implementation GLData

-(instancetype)initWithShader: (NSNumber *)shader
                 withUniforms: (NSDictionary *)uniforms
                    withWidth: (NSNumber *)width
                   withHeight: (NSNumber *)height
9 10
                    withFboId: (NSNumber *)fboId
          withContextChildren: (NSArray *)contextChildren
11
                 withChildren: (NSArray *)children
12
       withPremultipliedAlpha: (BOOL)premultipliedAlpha
13 14 15 16 17 18
{
  if ((self = [super init])) {
    self.shader = shader;
    self.uniforms = uniforms;
    self.width = width;
    self.height = height;
19 20
    self.fboId = fboId;
    self.contextChildren = contextChildren;
21
    self.children = children;
22
    self.premultipliedAlpha = premultipliedAlpha;
23 24 25 26 27
  }
  return self;
}

@end