How to use the uniform2fv function from bindings

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

889
890
891
892
893
894
895
896
897
898
899
    throw new TypeError('Expected uniform2f(WebGLUniformLocation location, number x, number y)');
  }
  return _uniform2f(location ? location._ : 0, x, y);
}


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

+ 81 other calls in file

867
868
869
870
871
872
873
874
875
876
    if (GL.debug) {
        console.log("uniform2fv");
        console.log(arguments);
    }
    arguments[1] = new Float32Array(arguments[1]);
    return gl_bindings.uniform2fv.apply(null, arguments);
};
GL.uniform2i = function() {
    if (GL.debug) {
        console.log("uniform2i");
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)