texImage2D method

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");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-web_gl/RenderingContext/texImage2D.html