How to use the colorMask function from bindings

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

178
179
180
181
182
183
184
185
186
187
    throw new TypeError('Expected clearStencil(number s)');
  }
  return _clearStencil(s);
}

var _colorMask = gl.colorMask;
gl.colorMask = function colorMask(red, green, blue, alpha) {
  if (!(arguments.length === 4 && typeof red === "boolean" && typeof green === "boolean" && typeof blue === "boolean" && typeof alpha === "boolean")) {
    throw new TypeError('Expected colorMask(boolean red, boolean green, boolean blue, boolean alpha)');
  }
fork icon265
star icon386
watch icon20

449
450
451
452
453
454
455
456
457
458
GL.colorMask = function() {
    if (GL.debug) {
        console.log("colorMask");
        console.log(arguments);
    }
    return gl_bindings.colorMask.apply(null, arguments);
};
// GL.commit; // WebGL experimental API
GL.compileShader = 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)