texSubImage2DUntyped method

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

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.