How to use the isProgram function from bindings

Find comprehensive JavaScript bindings.isProgram code examples handpicked from public code repositorys.

631
632
633
634
635
636
637
638
639
640
641
    throw new TypeError('Expected isFramebuffer(WebGLFramebuffer framebuffer)');
  }
  return _isFramebuffer(framebuffer ? framebuffer._ : 0);
}


var _isProgram = gl.isProgram;
gl.isProgram = function isProgram(program) {
  if (!(arguments.length === 1 && (program === null || program instanceof gl.WebGLProgram))) {
    throw new TypeError('Expected isProgram(WebGLProgram program)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)