| OLD | NEW |
| 1 /** | 1 /** |
| 2 * 3D programming in the browser. | 2 * 3D programming in the browser. |
| 3 */ | 3 */ |
| 4 library dart.dom.web_gl; | 4 library dart.dom.web_gl; |
| 5 | 5 |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:_internal'; | 7 import 'dart:_internal'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:html_common'; | 9 import 'dart:html_common'; |
| 10 import 'dart:_native_typed_data'; | 10 import 'dart:_native_typed_data'; |
| (...skipping 2753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2764 @DocsEditable() | 2764 @DocsEditable() |
| 2765 void stencilOp(int fail, int zfail, int zpass) native; | 2765 void stencilOp(int fail, int zfail, int zpass) native; |
| 2766 | 2766 |
| 2767 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2767 @DomName('WebGLRenderingContext.stencilOpSeparate') |
| 2768 @DocsEditable() | 2768 @DocsEditable() |
| 2769 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 2769 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
| 2770 | 2770 |
| 2771 @DomName('WebGLRenderingContext.texImage2D') | 2771 @DomName('WebGLRenderingContext.texImage2D') |
| 2772 @DocsEditable() | 2772 @DocsEditable() |
| 2773 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, TypedData pixels]) { | 2773 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, TypedData pixels]) { |
| 2774 if (pixels != null && type != null && format != null && (border_OR_canvas_OR
_image_OR_pixels_OR_video is int)) { | 2774 if (type != null && format != null && (border_OR_canvas_OR_image_OR_pixels_O
R_video is int)) { |
| 2775 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 2775 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
| 2776 return; | 2776 return; |
| 2777 } | 2777 } |
| 2778 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null &&
pixels == null) { | 2778 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null &&
pixels == null) { |
| 2779 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_
pixels_OR_video); | 2779 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_
pixels_OR_video); |
| 2780 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 2780 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
| 2781 return; | 2781 return; |
| 2782 } | 2782 } |
| 2783 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format
== null && type == null && pixels == null) { | 2783 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format
== null && type == null && pixels == null) { |
| 2784 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2784 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2819 @DocsEditable() | 2819 @DocsEditable() |
| 2820 void texParameterf(int target, int pname, num param) native; | 2820 void texParameterf(int target, int pname, num param) native; |
| 2821 | 2821 |
| 2822 @DomName('WebGLRenderingContext.texParameteri') | 2822 @DomName('WebGLRenderingContext.texParameteri') |
| 2823 @DocsEditable() | 2823 @DocsEditable() |
| 2824 void texParameteri(int target, int pname, int param) native; | 2824 void texParameteri(int target, int pname, int param) native; |
| 2825 | 2825 |
| 2826 @DomName('WebGLRenderingContext.texSubImage2D') | 2826 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2827 @DocsEditable() | 2827 @DocsEditable() |
| 2828 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, TypedData pixels]) { | 2828 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, TypedData pixels]) { |
| 2829 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O
R_video is int)) { | 2829 if (type != null && (canvas_OR_format_OR_image_OR_pixels_OR_video is int)) { |
| 2830 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 2830 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
| 2831 return; | 2831 return; |
| 2832 } | 2832 } |
| 2833 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { | 2833 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { |
| 2834 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_
pixels_OR_video); | 2834 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_
pixels_OR_video); |
| 2835 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 2835 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
| 2836 return; | 2836 return; |
| 2837 } | 2837 } |
| 2838 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type =
= null && pixels == null) { | 2838 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type =
= null && pixels == null) { |
| 2839 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2839 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| (...skipping 2047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4887 | 4887 |
| 4888 @DomName('WebGL2RenderingContext.texStorage3D') | 4888 @DomName('WebGL2RenderingContext.texStorage3D') |
| 4889 @DocsEditable() | 4889 @DocsEditable() |
| 4890 @Experimental() // untriaged | 4890 @Experimental() // untriaged |
| 4891 void texStorage3D(int target, int levels, int internalformat, int width, int h
eight, int depth) native; | 4891 void texStorage3D(int target, int levels, int internalformat, int width, int h
eight, int depth) native; |
| 4892 | 4892 |
| 4893 @DomName('WebGL2RenderingContext.texSubImage3D') | 4893 @DomName('WebGL2RenderingContext.texSubImage3D') |
| 4894 @DocsEditable() | 4894 @DocsEditable() |
| 4895 @Experimental() // untriaged | 4895 @Experimental() // untriaged |
| 4896 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffse
t, int format_OR_width, int height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_
video, [int format, int type, TypedData pixels]) { | 4896 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffse
t, int format_OR_width, int height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_
video, [int format, int type, TypedData pixels]) { |
| 4897 if (pixels != null && type != null && format != null && (canvas_OR_data_OR_d
epth_OR_image_OR_video is int)) { | 4897 if (type != null && format != null && (canvas_OR_data_OR_depth_OR_image_OR_v
ideo is int)) { |
| 4898 _texSubImage3D_1(target, level, xoffset, yoffset, zoffset, format_OR_width
, height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video, format, type, pixel
s); | 4898 _texSubImage3D_1(target, level, xoffset, yoffset, zoffset, format_OR_width
, height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video, format, type, pixel
s); |
| 4899 return; | 4899 return; |
| 4900 } | 4900 } |
| 4901 if ((canvas_OR_data_OR_depth_OR_image_OR_video is ImageData || canvas_OR_dat
a_OR_depth_OR_image_OR_video == null) && format == null && type == null && pixel
s == null) { | 4901 if ((canvas_OR_data_OR_depth_OR_image_OR_video is ImageData || canvas_OR_dat
a_OR_depth_OR_image_OR_video == null) && format == null && type == null && pixel
s == null) { |
| 4902 var data_1 = convertDartToNative_ImageData(canvas_OR_data_OR_depth_OR_imag
e_OR_video); | 4902 var data_1 = convertDartToNative_ImageData(canvas_OR_data_OR_depth_OR_imag
e_OR_video); |
| 4903 _texSubImage3D_2(target, level, xoffset, yoffset, zoffset, format_OR_width
, height_OR_type, data_1); | 4903 _texSubImage3D_2(target, level, xoffset, yoffset, zoffset, format_OR_width
, height_OR_type, data_1); |
| 4904 return; | 4904 return; |
| 4905 } | 4905 } |
| 4906 if ((canvas_OR_data_OR_depth_OR_image_OR_video is ImageElement || canvas_OR_
data_OR_depth_OR_image_OR_video == null) && format == null && type == null && pi
xels == null) { | 4906 if ((canvas_OR_data_OR_depth_OR_image_OR_video is ImageElement || canvas_OR_
data_OR_depth_OR_image_OR_video == null) && format == null && type == null && pi
xels == null) { |
| 4907 _texSubImage3D_3(target, level, xoffset, yoffset, zoffset, format_OR_width
, height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video); | 4907 _texSubImage3D_3(target, level, xoffset, yoffset, zoffset, format_OR_width
, height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video); |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5593 | 5593 |
| 5594 @DomName('WebGL2RenderingContext.stencilOpSeparate') | 5594 @DomName('WebGL2RenderingContext.stencilOpSeparate') |
| 5595 @DocsEditable() | 5595 @DocsEditable() |
| 5596 @Experimental() // untriaged | 5596 @Experimental() // untriaged |
| 5597 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 5597 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
| 5598 | 5598 |
| 5599 @DomName('WebGL2RenderingContext.texImage2D') | 5599 @DomName('WebGL2RenderingContext.texImage2D') |
| 5600 @DocsEditable() | 5600 @DocsEditable() |
| 5601 @Experimental() // untriaged | 5601 @Experimental() // untriaged |
| 5602 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, TypedData pixels]) { | 5602 void texImage2D(int target, int level, int internalformat, int format_OR_width
, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format,
int type, TypedData pixels]) { |
| 5603 if (pixels != null && type != null && format != null && (border_OR_canvas_OR
_image_OR_pixels_OR_video is int)) { | 5603 if (type != null && format != null && (border_OR_canvas_OR_image_OR_pixels_O
R_video is int)) { |
| 5604 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 5604 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
| 5605 return; | 5605 return; |
| 5606 } | 5606 } |
| 5607 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null &&
pixels == null) { | 5607 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null &&
pixels == null) { |
| 5608 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_
pixels_OR_video); | 5608 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_
pixels_OR_video); |
| 5609 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 5609 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
| 5610 return; | 5610 return; |
| 5611 } | 5611 } |
| 5612 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format
== null && type == null && pixels == null) { | 5612 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format
== null && type == null && pixels == null) { |
| 5613 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 5613 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5656 | 5656 |
| 5657 @DomName('WebGL2RenderingContext.texParameteri') | 5657 @DomName('WebGL2RenderingContext.texParameteri') |
| 5658 @DocsEditable() | 5658 @DocsEditable() |
| 5659 @Experimental() // untriaged | 5659 @Experimental() // untriaged |
| 5660 void texParameteri(int target, int pname, int param) native; | 5660 void texParameteri(int target, int pname, int param) native; |
| 5661 | 5661 |
| 5662 @DomName('WebGL2RenderingContext.texSubImage2D') | 5662 @DomName('WebGL2RenderingContext.texSubImage2D') |
| 5663 @DocsEditable() | 5663 @DocsEditable() |
| 5664 @Experimental() // untriaged | 5664 @Experimental() // untriaged |
| 5665 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, TypedData pixels]) { | 5665 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in
t type, TypedData pixels]) { |
| 5666 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O
R_video is int)) { | 5666 if (type != null && (canvas_OR_format_OR_image_OR_pixels_OR_video is int)) { |
| 5667 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 5667 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
| 5668 return; | 5668 return; |
| 5669 } | 5669 } |
| 5670 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { | 5670 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { |
| 5671 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_
pixels_OR_video); | 5671 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_
pixels_OR_video); |
| 5672 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 5672 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
| 5673 return; | 5673 return; |
| 5674 } | 5674 } |
| 5675 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type =
= null && pixels == null) { | 5675 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type =
= null && pixels == null) { |
| 5676 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 5676 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6013 // BSD-style license that can be found in the LICENSE file. | 6013 // BSD-style license that can be found in the LICENSE file. |
| 6014 | 6014 |
| 6015 | 6015 |
| 6016 @DocsEditable() | 6016 @DocsEditable() |
| 6017 @DomName('WebGLRenderingContextBase') | 6017 @DomName('WebGLRenderingContextBase') |
| 6018 @Experimental() // untriaged | 6018 @Experimental() // untriaged |
| 6019 abstract class _WebGLRenderingContextBase extends Interceptor { | 6019 abstract class _WebGLRenderingContextBase extends Interceptor { |
| 6020 // To suppress missing implicit constructor warnings. | 6020 // To suppress missing implicit constructor warnings. |
| 6021 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } | 6021 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } |
| 6022 } | 6022 } |
| OLD | NEW |