GLRenderData.m 759 Bytes
Newer Older
1 2 3 4 5 6 7 8
#include "GLRenderData.h"

@implementation GLRenderData


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

@end