getShaderParameter method

bool getShaderParameter(
  1. WebGLShader shader,
  2. int pname
)

Implementation

bool getShaderParameter(WebGLShader shader, int pname){
  startCheck('getShaderParameter');
  var _pointer = calloc<Int32>();
  gl.glGetShaderiv(shader.id, pname, _pointer);
  checkError('getShaderParameter');
  final _v = _pointer.value;
  calloc.free(_pointer);
  return _v == 0?false:true;
}