How to use the uniform4i function from bindings

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

961
962
963
964
965
966
967
968
969
970
971
    throw new TypeError('Expected uniform4fv(WebGLUniformLocation location, FloatArray v)');
  }
  return _uniform4fv(location ? location._ : 0, v);
}


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

+ 81 other calls in file

934
935
936
937
938
939
940
941
942
943
GL.uniform4i = function() {
    if (GL.debug) {
        console.log("uniform4i");
        console.log(arguments);
    }
    return gl_bindings.uniform4i.apply(null, arguments);
};
GL.uniform4iv = function() {
    if (GL.debug) {
        console.log("uniform4iv");
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)