How to use the WebGLUniformLocation function from bindings
Find comprehensive JavaScript bindings.WebGLUniformLocation code examples handpicked from public code repositorys.
GitHub: mikeseven/node-webgl
575 576 577 578 579 580 581 582 583 584 585
var _getUniformLocation = gl.getUniformLocation; gl.getUniformLocation = function getUniformLocation(program, name) { if (!(arguments.length === 2 && (program === null || program instanceof gl.WebGLProgram) && typeof name === "string")) { throw new TypeError('Expected getUniformLocation(WebGLProgram program, string name)'); } return new gl.WebGLUniformLocation(_getUniformLocation(program ? program._ : 0, name)); } var _getVertexAttrib = gl.getVertexAttrib; gl.getVertexAttrib = function getVertexAttrib(index, pname) {
264
386
0
+ 81 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)