texSubImage2D method

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 ])

Source

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 ((pixels is TypedData || pixels == null) &&
      (type is int) &&
      (bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is int) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (yoffset is int) &&
      (xoffset is int) &&
      (level is int) &&
      (target is int)) {
    _blink.BlinkWebGLRenderingContext.instance.texSubImage2D_Callback_9_(
        this,
        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 ||
          bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (yoffset is int) &&
      (xoffset is int) &&
      (level is int) &&
      (target is int) &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texSubImage2D_Callback_7_(
        this,
        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 ImageElement) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (yoffset is int) &&
      (xoffset is int) &&
      (level is int) &&
      (target is int) &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texSubImage2D_Callback_7_(
        this,
        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) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (yoffset is int) &&
      (xoffset is int) &&
      (level is int) &&
      (target is int) &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texSubImage2D_Callback_7_(
        this,
        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) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (yoffset is int) &&
      (xoffset is int) &&
      (level is int) &&
      (target is int) &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texSubImage2D_Callback_7_(
        this,
        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) &&
      (height_OR_type is int) &&
      (format_OR_width is int) &&
      (yoffset is int) &&
      (xoffset is int) &&
      (level is int) &&
      (target is int) &&
      type == null &&
      pixels == null) {
    _blink.BlinkWebGLRenderingContext.instance.texSubImage2D_Callback_7_(
        this,
        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.dartlang.org/stable/1.24.3/dart-web_gl/RenderingContext/texSubImage2D.html