How to use the uniform2f function from bindings

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

881
882
883
884
885
886
887
888
889
890
891
    throw new TypeError('Expected uniform1iv(WebGLUniformLocation location, Int32Array v)');
  }
  return _uniform1iv(location ? location._ : 0, v);
}


var _uniform2f = gl.uniform2f;
gl.uniform2f = function uniform2f(location, x, y) {
  if (!(arguments.length === 3 && (location === null || location instanceof gl.WebGLUniformLocation) && typeof x === "number" && typeof y === "number")) {
    throw new TypeError('Expected uniform2f(WebGLUniformLocation location, number x, number y)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

859
860
861
862
863
864
865
866
867
868
GL.uniform2f = function() {
    if (GL.debug) {
        console.log("uniform2f");
        console.log(arguments);
    }
    return gl_bindings.uniform2f.apply(null, arguments);
};
GL.uniform2fv = function() {
    if (GL.debug) {
        console.log("uniform2fv");
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)