WebGLProgram constructor

WebGLProgram(
  1. WebGLRenderer renderer,
  2. String cacheKey,
  3. WebGLParameters parameters,
  4. WebGLBindingStates bindingStates,
)

Implementation

WebGLProgram(this.renderer, this.cacheKey, this.parameters, this.bindingStates) {
  name = parameters.shaderName;
  id = programIdCount++;

  gl = renderer.getContext();
  program = gl.createProgram();
  init();
}