How to use the uniform1i function from bindings

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

863
864
865
866
867
868
869
870
871
872
873
    throw new TypeError('Expected uniform1fv(WebGLUniformLocation location, FloatArray v)');
  }
  return _uniform1fv(location ? location._ : 0, v);
}


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

+ 81 other calls in file

844
845
846
847
848
849
850
851
852
853
GL.uniform1i = function() {
    if (GL.debug) {
        console.log("uniform1i");
        console.log(arguments);
    }
    return gl_bindings.uniform1i.apply(null, arguments);
};
GL.uniform1iv = function() {
    if (GL.debug) {
        console.log("uniform1iv");
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)