How to use the clearTexImage function from bindings
Find comprehensive JavaScript bindings.clearTexImage code examples handpicked from public code repositorys.
GitHub: lfdoherty/node-opengl-46
102 103 104 105 106 107 108 109 110 111 112
throw new TypeError('Expected bindTexture(number target, WebGLTexture texture)'); } return _bindTexture(target, texture ? texture._ : 0); } var _clearTexImage = gl.clearTexImage; gl.clearTexImage = function clearTexImage(texture, level, format, type, data) { if (!(arguments.length === 5 && (texture === null || texture instanceof gl.WebGLTexture))) { //console.log([target, texture, texture instanceof gl.WebGLTexture]) throw new TypeError('Expected clearTexImage(WebGLTexture texture, level, format, type, value)');
0
0
0
+ 137 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)