void texImage2D(int target, int level, int internalformat, int format_OR_width, int height_OR_type, bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video, [ int format, int type, TypedData pixels ])

Source

void texImage2D(
    int target,
    int level,
    int internalformat,
    int format_OR_width,
    int height_OR_type,
    bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
    [int format,
    int type,
    TypedData pixels]) {
  if ((pixels is TypedData || pixels == null) &&
      (type is int) &&
      (format is int) &&
      (bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is int) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (internalformat is int) &&
      (level is int) &&
      (target is int)) {
    _blink.BlinkWebGLRenderingContext.instance.texImage2D_Callback_9_(
        this,
        target,
        level,
        internalformat,
        format_OR_width,
        height_OR_type,
        bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
        format,
        type,
        pixels);
    return;
  }
  if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData ||
          bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (internalformat is int) &&
      (level is int) &&
      (target is int) &&
      format == null &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texImage2D_Callback_6_(
        this,
        target,
        level,
        internalformat,
        format_OR_width,
        height_OR_type,
        bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
    return;
  }
  if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
          is ImageElement) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (internalformat is int) &&
      (level is int) &&
      (target is int) &&
      format == null &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texImage2D_Callback_6_(
        this,
        target,
        level,
        internalformat,
        format_OR_width,
        height_OR_type,
        bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
    return;
  }
  if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
          is CanvasElement) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (internalformat is int) &&
      (level is int) &&
      (target is int) &&
      format == null &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texImage2D_Callback_6_(
        this,
        target,
        level,
        internalformat,
        format_OR_width,
        height_OR_type,
        bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
    return;
  }
  if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
          is VideoElement) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (internalformat is int) &&
      (level is int) &&
      (target is int) &&
      format == null &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texImage2D_Callback_6_(
        this,
        target,
        level,
        internalformat,
        format_OR_width,
        height_OR_type,
        bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
    return;
  }
  if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
          is ImageBitmap) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (internalformat is int) &&
      (level is int) &&
      (target is int) &&
      format == null &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texImage2D_Callback_6_(
        this,
        target,
        level,
        internalformat,
        format_OR_width,
        height_OR_type,
        bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
    return;
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}