Implementation
@DomName('WebGL2RenderingContext.texSubImage3D')
@DocsEditable()
@Experimental() // untriaged
void texSubImage3D(
int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int format_OR_width,
int height_OR_type,
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video,
[int format,
int type,
TypedData pixels]) {
if (type != null &&
format != null &&
(bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is int)) {
_texSubImage3D_1(
target,
level,
xoffset,
yoffset,
zoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video,
format,
type,
pixels);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is ImageData ||
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
format == null &&
type == null &&
pixels == null) {
var data_1 = convertDartToNative_ImageData(
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
_texSubImage3D_2(target, level, xoffset, yoffset, zoffset,
format_OR_width, height_OR_type, data_1);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is ImageElement ||
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
format == null &&
type == null &&
pixels == null) {
_texSubImage3D_3(
target,
level,
xoffset,
yoffset,
zoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is CanvasElement ||
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
format == null &&
type == null &&
pixels == null) {
_texSubImage3D_4(
target,
level,
xoffset,
yoffset,
zoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is VideoElement ||
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
format == null &&
type == null &&
pixels == null) {
_texSubImage3D_5(
target,
level,
xoffset,
yoffset,
zoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is ImageBitmap ||
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
format == null &&
type == null &&
pixels == null) {
_texSubImage3D_6(
target,
level,
xoffset,
yoffset,
zoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}