How to use the copyTexSubImage2D function from bindings

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

202
203
204
205
206
207
208
209
210
211
    throw new TypeError('Expected copyTexImage2D(number target, number level, number internalformat, number x, number y, number width, number height, number border)');
  }
  return _copyTexImage2D(target, level, internalformat, x, y, width, height, border);
}

var _copyTexSubImage2D = gl.copyTexSubImage2D;
gl.copyTexSubImage2D = function copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height) {
  if (!(arguments.length === 8 && typeof target === "number" && typeof level === "number" && typeof xoffset === "number" && typeof yoffset === "number" && typeof x === "number" && typeof y === "number" && typeof width === "number" && typeof height === "number")) {
    throw new TypeError('Expected copyTexSubImage2D(number target, number level, number xoffset, number yoffset, number x, number y, number width, number height)');
  }
fork icon265
star icon386
watch icon20

473
474
475
476
477
478
479
480
481
482
GL.copyTexSubImage2D = function() {
    if (GL.debug) {
        console.log("copyTexSubImage2D");
        console.log(arguments);
    }
    return gl_bindings.copyTexSubImage2D.apply(null, arguments);
};
GL.createBuffer = function() {
    if (GL.debug) {
        console.log("createBuffer");
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)