WebGLProgram constructor
WebGLProgram(
- WebGLRenderer renderer,
- String cacheKey,
- WebGLParameters parameters,
- WebGLBindingStates bindingStates,
Implementation
WebGLProgram(this.renderer, this.cacheKey, this.parameters, this.bindingStates) {
name = parameters.shaderName;
id = programIdCount++;
gl = renderer.getContext();
program = gl.createProgram();
init();
}