How to use the uniform1iv function from bindings

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

873
874
875
876
877
878
879
880
881
882
883
  if(typeof x === "boolean")
    x= x ? 1 : 0;
  return _uniform1i(location ? location._ : 0, x);
}


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

+ 81 other calls in file

852
853
854
855
856
857
858
859
860
861
    if (GL.debug) {
        console.log("uniform1iv");
        console.log(arguments);
    }
    arguments[1] = new Int32Array(arguments[1]);
    return gl_bindings.uniform1iv.apply(null, arguments);
};
GL.uniform2f = function() {
    if (GL.debug) {
        console.log("uniform2f");
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)