OLD | NEW |
1 library dart.dom.web_gl; | 1 library dart.dom.web_gl; |
2 | 2 |
3 import 'dart:async'; | 3 import 'dart:async'; |
4 import 'dart:collection'; | 4 import 'dart:collection'; |
5 import 'dart:_internal' hide deprecated; | 5 import 'dart:_internal' hide deprecated; |
6 import 'dart:html'; | 6 import 'dart:html'; |
7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 import 'dart:_blink' as _blink; | 10 import 'dart:_blink' as _blink; |
(...skipping 2342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2353 void blendFunc(int sfactor, int dfactor) => _blink.BlinkWebGLRenderingContext.
$blendFunc_Callback(this, sfactor, dfactor); | 2353 void blendFunc(int sfactor, int dfactor) => _blink.BlinkWebGLRenderingContext.
$blendFunc_Callback(this, sfactor, dfactor); |
2354 | 2354 |
2355 @DomName('WebGLRenderingContext.blendFuncSeparate') | 2355 @DomName('WebGLRenderingContext.blendFuncSeparate') |
2356 @DocsEditable() | 2356 @DocsEditable() |
2357 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) =>
_blink.BlinkWebGLRenderingContext.$blendFuncSeparate_Callback(this, srcRGB, dstR
GB, srcAlpha, dstAlpha); | 2357 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) =>
_blink.BlinkWebGLRenderingContext.$blendFuncSeparate_Callback(this, srcRGB, dstR
GB, srcAlpha, dstAlpha); |
2358 | 2358 |
2359 @DomName('WebGLRenderingContext.bufferByteData') | 2359 @DomName('WebGLRenderingContext.bufferByteData') |
2360 @DocsEditable() | 2360 @DocsEditable() |
2361 void bufferByteData(int target, ByteBuffer data, int usage) => _blink.BlinkWeb
GLRenderingContext.$bufferByteData_Callback(this, target, data, usage); | 2361 void bufferByteData(int target, ByteBuffer data, int usage) => _blink.BlinkWeb
GLRenderingContext.$bufferByteData_Callback(this, target, data, usage); |
2362 | 2362 |
2363 void bufferData(int target, data_OR_size, int usage) => _blink.BlinkWebGLRende
ringContext.$bufferData(this, target, data_OR_size, usage); | 2363 void bufferData(int target, data_OR_size, int usage) { |
| 2364 if ((usage is int || usage == null) && (data_OR_size is TypedData || data_OR
_size == null) && (target is int || target == null)) { |
| 2365 _blink.BlinkWebGLRenderingContext.$_bufferData_1_Callback(this, target, da
ta_OR_size, usage); |
| 2366 return; |
| 2367 } |
| 2368 if ((usage is int || usage == null) && (data_OR_size is ByteBuffer || data_O
R_size == null) && (target is int || target == null)) { |
| 2369 _blink.BlinkWebGLRenderingContext.$_bufferData_2_Callback(this, target, da
ta_OR_size, usage); |
| 2370 return; |
| 2371 } |
| 2372 if ((usage is int || usage == null) && (data_OR_size is int || data_OR_size
== null) && (target is int || target == null)) { |
| 2373 _blink.BlinkWebGLRenderingContext.$_bufferData_3_Callback(this, target, da
ta_OR_size, usage); |
| 2374 return; |
| 2375 } |
| 2376 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2377 } |
2364 | 2378 |
2365 @DomName('WebGLRenderingContext.bufferDataTyped') | 2379 @DomName('WebGLRenderingContext.bufferDataTyped') |
2366 @DocsEditable() | 2380 @DocsEditable() |
2367 void bufferDataTyped(int target, TypedData data, int usage) => _blink.BlinkWeb
GLRenderingContext.$bufferDataTyped_Callback(this, target, data, usage); | 2381 void bufferDataTyped(int target, TypedData data, int usage) => _blink.BlinkWeb
GLRenderingContext.$bufferDataTyped_Callback(this, target, data, usage); |
2368 | 2382 |
2369 @DomName('WebGLRenderingContext.bufferSubByteData') | 2383 @DomName('WebGLRenderingContext.bufferSubByteData') |
2370 @DocsEditable() | 2384 @DocsEditable() |
2371 void bufferSubByteData(int target, int offset, ByteBuffer data) => _blink.Blin
kWebGLRenderingContext.$bufferSubByteData_Callback(this, target, offset, data); | 2385 void bufferSubByteData(int target, int offset, ByteBuffer data) => _blink.Blin
kWebGLRenderingContext.$bufferSubByteData_Callback(this, target, offset, data); |
2372 | 2386 |
2373 void bufferSubData(int target, int offset, data) => _blink.BlinkWebGLRendering
Context.$bufferSubData(this, target, offset, data); | 2387 void bufferSubData(int target, int offset, data) { |
| 2388 if ((data is TypedData || data == null) && (offset is int || offset == null)
&& (target is int || target == null)) { |
| 2389 _blink.BlinkWebGLRenderingContext.$_bufferSubData_1_Callback(this, target,
offset, data); |
| 2390 return; |
| 2391 } |
| 2392 if ((data is ByteBuffer || data == null) && (offset is int || offset == null
) && (target is int || target == null)) { |
| 2393 _blink.BlinkWebGLRenderingContext.$_bufferSubData_2_Callback(this, target,
offset, data); |
| 2394 return; |
| 2395 } |
| 2396 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2397 } |
2374 | 2398 |
2375 @DomName('WebGLRenderingContext.bufferSubDataTyped') | 2399 @DomName('WebGLRenderingContext.bufferSubDataTyped') |
2376 @DocsEditable() | 2400 @DocsEditable() |
2377 void bufferSubDataTyped(int target, int offset, TypedData data) => _blink.Blin
kWebGLRenderingContext.$bufferSubDataTyped_Callback(this, target, offset, data); | 2401 void bufferSubDataTyped(int target, int offset, TypedData data) => _blink.Blin
kWebGLRenderingContext.$bufferSubDataTyped_Callback(this, target, offset, data); |
2378 | 2402 |
2379 @DomName('WebGLRenderingContext.checkFramebufferStatus') | 2403 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
2380 @DocsEditable() | 2404 @DocsEditable() |
2381 int checkFramebufferStatus(int target) => _blink.BlinkWebGLRenderingContext.$c
heckFramebufferStatus_Callback(this, target); | 2405 int checkFramebufferStatus(int target) => _blink.BlinkWebGLRenderingContext.$c
heckFramebufferStatus_Callback(this, target); |
2382 | 2406 |
2383 @DomName('WebGLRenderingContext.clear') | 2407 @DomName('WebGLRenderingContext.clear') |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2717 void stencilMaskSeparate(int face, int mask) => _blink.BlinkWebGLRenderingCont
ext.$stencilMaskSeparate_Callback(this, face, mask); | 2741 void stencilMaskSeparate(int face, int mask) => _blink.BlinkWebGLRenderingCont
ext.$stencilMaskSeparate_Callback(this, face, mask); |
2718 | 2742 |
2719 @DomName('WebGLRenderingContext.stencilOp') | 2743 @DomName('WebGLRenderingContext.stencilOp') |
2720 @DocsEditable() | 2744 @DocsEditable() |
2721 void stencilOp(int fail, int zfail, int zpass) => _blink.BlinkWebGLRenderingCo
ntext.$stencilOp_Callback(this, fail, zfail, zpass); | 2745 void stencilOp(int fail, int zfail, int zpass) => _blink.BlinkWebGLRenderingCo
ntext.$stencilOp_Callback(this, fail, zfail, zpass); |
2722 | 2746 |
2723 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2747 @DomName('WebGLRenderingContext.stencilOpSeparate') |
2724 @DocsEditable() | 2748 @DocsEditable() |
2725 void stencilOpSeparate(int face, int fail, int zfail, int zpass) => _blink.Bli
nkWebGLRenderingContext.$stencilOpSeparate_Callback(this, face, fail, zfail, zpa
ss); | 2749 void stencilOpSeparate(int face, int fail, int zfail, int zpass) => _blink.Bli
nkWebGLRenderingContext.$stencilOpSeparate_Callback(this, face, fail, zfail, zpa
ss); |
2726 | 2750 |
2727 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]) => _blink.BlinkWebGLRenderingContext.$texImage2D(t
his, target, level, internalformat, format_OR_width, height_OR_type, border_OR_c
anvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 2751 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]) { |
| 2752 if ((pixels is TypedData || pixels == null) && (type is int || type == null)
&& (format is int || format == null) && (border_OR_canvas_OR_image_OR_pixels_OR
_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && (heigh
t_OR_type is int || height_OR_type == null) && (format_OR_width is int || format
_OR_width == null) && (internalformat is int || internalformat == null) && (leve
l is int || level == null) && (target is int || target == null)) { |
| 2753 _blink.BlinkWebGLRenderingContext.$_texImage2D_1_Callback(this, target, le
vel, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_
OR_pixels_OR_video, format, type, pixels); |
| 2754 return; |
| 2755 } |
| 2756 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_
OR_type == null) && (format_OR_width is int || format_OR_width == null) && (inte
rnalformat is int || internalformat == null) && (level is int || level == null)
&& (target is int || target == null) && format == null && type == null && pixels
== null) { |
| 2757 _blink.BlinkWebGLRenderingContext.$_texImage2D_2_Callback(this, target, le
vel, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_
OR_pixels_OR_video); |
| 2758 return; |
| 2759 } |
| 2760 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig
ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (i
nternalformat is int || internalformat == null) && (level is int || level == nul
l) && (target is int || target == null) && format == null && type == null && pix
els == null) { |
| 2761 _blink.BlinkWebGLRenderingContext.$_texImage2D_3_Callback(this, target, le
vel, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_
OR_pixels_OR_video); |
| 2762 return; |
| 2763 } |
| 2764 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border
_OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || hei
ght_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (
internalformat is int || internalformat == null) && (level is int || level == nu
ll) && (target is int || target == null) && format == null && type == null && pi
xels == null) { |
| 2765 _blink.BlinkWebGLRenderingContext.$_texImage2D_4_Callback(this, target, le
vel, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_
OR_pixels_OR_video); |
| 2766 return; |
| 2767 } |
| 2768 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig
ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (i
nternalformat is int || internalformat == null) && (level is int || level == nul
l) && (target is int || target == null) && format == null && type == null && pix
els == null) { |
| 2769 _blink.BlinkWebGLRenderingContext.$_texImage2D_5_Callback(this, target, le
vel, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_
OR_pixels_OR_video); |
| 2770 return; |
| 2771 } |
| 2772 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2773 } |
2728 | 2774 |
2729 @DomName('WebGLRenderingContext.texImage2DCanvas') | 2775 @DomName('WebGLRenderingContext.texImage2DCanvas') |
2730 @DocsEditable() | 2776 @DocsEditable() |
2731 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) => _blink.BlinkWebGLRenderingContext.$texImage2DC
anvas_Callback(this, target, level, internalformat, format, type, canvas); | 2777 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) => _blink.BlinkWebGLRenderingContext.$texImage2DC
anvas_Callback(this, target, level, internalformat, format, type, canvas); |
2732 | 2778 |
2733 @DomName('WebGLRenderingContext.texImage2DImage') | 2779 @DomName('WebGLRenderingContext.texImage2DImage') |
2734 @DocsEditable() | 2780 @DocsEditable() |
2735 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) => _blink.BlinkWebGLRenderingContext.$texImage2DImag
e_Callback(this, target, level, internalformat, format, type, image); | 2781 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) => _blink.BlinkWebGLRenderingContext.$texImage2DImag
e_Callback(this, target, level, internalformat, format, type, image); |
2736 | 2782 |
2737 @DomName('WebGLRenderingContext.texImage2DImageData') | 2783 @DomName('WebGLRenderingContext.texImage2DImageData') |
2738 @DocsEditable() | 2784 @DocsEditable() |
2739 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) => _blink.BlinkWebGLRenderingContext.$texImage2DIm
ageData_Callback(this, target, level, internalformat, format, type, pixels); | 2785 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) => _blink.BlinkWebGLRenderingContext.$texImage2DIm
ageData_Callback(this, target, level, internalformat, format, type, pixels); |
2740 | 2786 |
2741 @DomName('WebGLRenderingContext.texImage2DVideo') | 2787 @DomName('WebGLRenderingContext.texImage2DVideo') |
2742 @DocsEditable() | 2788 @DocsEditable() |
2743 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) => _blink.BlinkWebGLRenderingContext.$texImage2DVide
o_Callback(this, target, level, internalformat, format, type, video); | 2789 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) => _blink.BlinkWebGLRenderingContext.$texImage2DVide
o_Callback(this, target, level, internalformat, format, type, video); |
2744 | 2790 |
2745 @DomName('WebGLRenderingContext.texParameterf') | 2791 @DomName('WebGLRenderingContext.texParameterf') |
2746 @DocsEditable() | 2792 @DocsEditable() |
2747 void texParameterf(int target, int pname, num param) => _blink.BlinkWebGLRende
ringContext.$texParameterf_Callback(this, target, pname, param); | 2793 void texParameterf(int target, int pname, num param) => _blink.BlinkWebGLRende
ringContext.$texParameterf_Callback(this, target, pname, param); |
2748 | 2794 |
2749 @DomName('WebGLRenderingContext.texParameteri') | 2795 @DomName('WebGLRenderingContext.texParameteri') |
2750 @DocsEditable() | 2796 @DocsEditable() |
2751 void texParameteri(int target, int pname, int param) => _blink.BlinkWebGLRende
ringContext.$texParameteri_Callback(this, target, pname, param); | 2797 void texParameteri(int target, int pname, int param) => _blink.BlinkWebGLRende
ringContext.$texParameteri_Callback(this, target, pname, param); |
2752 | 2798 |
2753 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]) => _blink.BlinkWebGLRenderingContext.$texSubImage2D(t
his, target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR
_format_OR_image_OR_pixels_OR_video, type, pixels); | 2799 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]) { |
| 2800 if ((pixels is TypedData || pixels == null) && (type is int || type == null)
&& (canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format_OR_
image_OR_pixels_OR_video == null) && (height_OR_type is int || height_OR_type ==
null) && (format_OR_width is int || format_OR_width == null) && (yoffset is int
|| yoffset == null) && (xoffset is int || xoffset == null) && (level is int ||
level == null) && (target is int || target == null)) { |
| 2801 _blink.BlinkWebGLRenderingContext.$_texSubImage2D_1_Callback(this, target,
level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_i
mage_OR_pixels_OR_video, type, pixels); |
| 2802 return; |
| 2803 } |
| 2804 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || height_
OR_type == null) && (format_OR_width is int || format_OR_width == null) && (yoff
set is int || yoffset == null) && (xoffset is int || xoffset == null) && (level
is int || level == null) && (target is int || target == null) && type == null &&
pixels == null) { |
| 2805 _blink.BlinkWebGLRenderingContext.$_texSubImage2D_2_Callback(this, target,
level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_i
mage_OR_pixels_OR_video); |
| 2806 return; |
| 2807 } |
| 2808 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig
ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (y
offset is int || yoffset == null) && (xoffset is int || xoffset == null) && (lev
el is int || level == null) && (target is int || target == null) && type == null
&& pixels == null) { |
| 2809 _blink.BlinkWebGLRenderingContext.$_texSubImage2D_3_Callback(this, target,
level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_i
mage_OR_pixels_OR_video); |
| 2810 return; |
| 2811 } |
| 2812 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || hei
ght_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (
yoffset is int || yoffset == null) && (xoffset is int || xoffset == null) && (le
vel is int || level == null) && (target is int || target == null) && type == nul
l && pixels == null) { |
| 2813 _blink.BlinkWebGLRenderingContext.$_texSubImage2D_4_Callback(this, target,
level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_i
mage_OR_pixels_OR_video); |
| 2814 return; |
| 2815 } |
| 2816 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && (height_OR_type is int || heig
ht_OR_type == null) && (format_OR_width is int || format_OR_width == null) && (y
offset is int || yoffset == null) && (xoffset is int || xoffset == null) && (lev
el is int || level == null) && (target is int || target == null) && type == null
&& pixels == null) { |
| 2817 _blink.BlinkWebGLRenderingContext.$_texSubImage2D_5_Callback(this, target,
level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_i
mage_OR_pixels_OR_video); |
| 2818 return; |
| 2819 } |
| 2820 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2821 } |
2754 | 2822 |
2755 @DomName('WebGLRenderingContext.texSubImage2DCanvas') | 2823 @DomName('WebGLRenderingContext.texSubImage2DCanvas') |
2756 @DocsEditable() | 2824 @DocsEditable() |
2757 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) => _blink.BlinkWebGLRenderingContext.$te
xSubImage2DCanvas_Callback(this, target, level, xoffset, yoffset, format, type,
canvas); | 2825 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) => _blink.BlinkWebGLRenderingContext.$te
xSubImage2DCanvas_Callback(this, target, level, xoffset, yoffset, format, type,
canvas); |
2758 | 2826 |
2759 @DomName('WebGLRenderingContext.texSubImage2DImage') | 2827 @DomName('WebGLRenderingContext.texSubImage2DImage') |
2760 @DocsEditable() | 2828 @DocsEditable() |
2761 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) => _blink.BlinkWebGLRenderingContext.$texSu
bImage2DImage_Callback(this, target, level, xoffset, yoffset, format, type, imag
e); | 2829 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) => _blink.BlinkWebGLRenderingContext.$texSu
bImage2DImage_Callback(this, target, level, xoffset, yoffset, format, type, imag
e); |
2762 | 2830 |
2763 @DomName('WebGLRenderingContext.texSubImage2DImageData') | 2831 @DomName('WebGLRenderingContext.texSubImage2DImageData') |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3030 | 3098 |
3031 @DocsEditable() | 3099 @DocsEditable() |
3032 @DomName('WebGLVertexArrayObjectOES') | 3100 @DomName('WebGLVertexArrayObjectOES') |
3033 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 3101 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
3034 @Experimental() // experimental | 3102 @Experimental() // experimental |
3035 class VertexArrayObject extends NativeFieldWrapperClass2 { | 3103 class VertexArrayObject extends NativeFieldWrapperClass2 { |
3036 // To suppress missing implicit constructor warnings. | 3104 // To suppress missing implicit constructor warnings. |
3037 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } | 3105 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } |
3038 | 3106 |
3039 } | 3107 } |
OLD | NEW |