How to use the getActiveUniform function from bindings

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

450
451
452
453
454
455
456
457
458
459
460
    throw new TypeError('Expected getActiveAttrib(WebGLProgram program, number index)');
  }
  return new gl.WebGLActiveInfo(_getActiveAttrib(program ? program._ : 0, index));
}


var _getActiveUniform = gl.getActiveUniform;
gl.getActiveUniform = function getActiveUniform(program, index) {
  if (!(arguments.length === 2 && (program === null || program instanceof gl.WebGLProgram) && typeof index === "number")) {
    throw new TypeError('Expected getActiveUniform(WebGLProgram program, number index)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

690
691
692
693
694
695
696
697
698
699
GL.getActiveUniform = function() {
    if (GL.debug) {
        console.log("getActiveUniform");
        console.log(arguments);
    }
    return gl_bindings.getActiveUniform.apply(null, arguments);
};
// GL.getAttachedShaders;
GL.getAttribLocation = function() {
    if (GL.debug) {
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)