How to use the getUniformLocation function from bindings

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

570
571
572
573
574
575
576
577
578
579
580
    throw new TypeError('Expected getUniform(WebGLProgram program, WebGLUniformLocation location)');
  }
  return _getUniform(program ? program._ : 0, location ? location._ : 0);
}


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)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

751
752
753
754
755
756
757
758
759
760
GL.getUniformLocation = function() {
    if (GL.debug) {
        console.log("getUniformLocation");
        console.log(arguments);
    }
    return gl_bindings.getUniformLocation.apply(null, arguments);
};
// GL.getVertexAttrib; // glGetVertexAttribfv glGetVertexAttribiv
// GL.getVertexAttribOffset; // glGetVertexAttribPointerv
// GL.hint;
fork icon0
star icon0
watch icon0

+ 70 other calls in file

Other functions in bindings

Sorted by popularity

function icon

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