How to use the uniform2i function from bindings

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

897
898
899
900
901
902
903
904
905
906
907
    throw new TypeError('Expected uniform2fv(WebGLUniformLocation location, FloatArray v)');
  }
  return _uniform2fv(location ? location._ : 0, v);
}


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

+ 81 other calls in file

874
875
876
877
878
879
880
881
882
883
GL.uniform2i = function() {
    if (GL.debug) {
        console.log("uniform2i");
        console.log(arguments);
    }
    return gl_bindings.uniform2i.apply(null, arguments);
};
GL.uniform2iv = function() {
    if (GL.debug) {
        console.log("uniform2iv");
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)