texSubImage2D method
Implementation
void texSubImage2D( int target, int level, int xoffset, int yoffset, int format_OR_width, int height_OR_type, bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video, [int? type, TypedData? pixels]) { if (type != null && (bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is int)) { _texSubImage2D_1( target, level, xoffset, yoffset, format_OR_width, height_OR_type, bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); return; } if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData) && type == null && pixels == null) { var pixels_1 = convertDartToNative_ImageData( bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video); _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_OR_type, pixels_1); return; } if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type == null && pixels == null) { _texSubImage2D_3( target, level, xoffset, yoffset, format_OR_width, height_OR_type, bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video); return; } if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement) && type == null && pixels == null) { _texSubImage2D_4( target, level, xoffset, yoffset, format_OR_width, height_OR_type, bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video); return; } if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement) && type == null && pixels == null) { _texSubImage2D_5( target, level, xoffset, yoffset, format_OR_width, height_OR_type, bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video); return; } if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is ImageBitmap) && type == null && pixels == null) { _texSubImage2D_6( target, level, xoffset, yoffset, format_OR_width, height_OR_type, bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video); return; } throw new ArgumentError("Incorrect number or type of arguments"); }
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-web_gl/RenderingContext2/texSubImage2D.html