How to use the uniform1fv function from bindings

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

855
856
857
858
859
860
861
862
863
864
865
    throw new TypeError('Expected uniform1f(WebGLUniformLocation location, number x)');
  }
  return _uniform1f(location ? location._ : 0, x);
}


var _uniform1fv = gl.uniform1fv;
gl.uniform1fv = function uniform1fv(location, v) {
  if (!(arguments.length === 2 && (location === null || location instanceof gl.WebGLUniformLocation) && typeof v === "object")) {
    throw new TypeError('Expected uniform1fv(WebGLUniformLocation location, FloatArray v)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

837
838
839
840
841
842
843
844
845
846
    if (GL.debug) {
        console.log("uniform1fv");
        console.log(arguments);
    }
    arguments[1] = new Float32Array(arguments[1]);
    return gl_bindings.uniform1fv.apply(null, arguments);
};
GL.uniform1i = function() {
    if (GL.debug) {
        console.log("uniform1i");
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)