How to use the depthRange function from bindings

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

330
331
332
333
334
335
336
337
338
339
340
    throw new TypeError('Expected depthMask(boolean flag)');
  }
  return _depthMask(flag);
}


var _depthRange = gl.depthRange;
gl.depthRange = function depthRange(zNear, zFar) {
  if (!(arguments.length === 2 && typeof zNear === "number" && typeof zFar === "number")) {
    throw new TypeError('Expected depthRange(number zNear, number zFar)');
  }
fork icon264
star icon386
watch icon0

+ 81 other calls in file

585
586
587
588
589
590
591
592
593
594
GL.depthRange = function() {
    if (GL.debug) {
        console.log("depthRange");
        console.log(arguments);
    }
    return gl_bindings.depthRange.apply(null, arguments);
};
GL.detachShader = function() {
    if (GL.debug) {
        console.log("detachShader");
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)