texSubImage2D method

dynamic texSubImage2D(
  1. dynamic target,
  2. dynamic level,
  3. dynamic xoffset,
  4. dynamic yoffset,
  5. dynamic width,
  6. dynamic height,
  7. dynamic format,
  8. dynamic type,
  9. dynamic data,
)

Implementation

texSubImage2D(
    target, level, xoffset, yoffset, width, height, format, type, data) {
  gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format,
      type, getData(data));
}