createShader method

WebGLShader createShader(
  1. int type
)

Implementation

WebGLShader createShader(int type) {
  startCheck('createShader');
  final shader = gl.glCreateShader(type);
  checkError('createShader');
  return WebGLShader(shader);
}