void texSubImage2DUntyped(int targetTexture, int levelOfDetail, int xOffset, int yOffset, int format, int type, data)

Updates a sub-rectangle of the currently bound texture to data.

data can be either an ImageElement, a CanvasElement, a VideoElement, or an ImageData object.

To use texSubImage2d with a TypedData object, use texSubImage2dTyped.

Source

void texSubImage2DUntyped(int targetTexture, int levelOfDetail,
    int xOffset, int yOffset, int format, int type, data) {
  texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset,
      format, type, data);
}