attachShader method

void attachShader(
  1. WebGLProgram program,
  2. WebGLShader shader
)

The WebGLRenderingContext.attachShader() method of the WebGL API attaches either a fragment or vertex WebGLShader to a WebGLProgram.

Implementation

external void attachShader(
  WebGLProgram program,
  WebGLShader shader,
);