| 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:_collection-dev'; | 5 import 'dart:_collection-dev'; |
| 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 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 2213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2224 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC
ontext_blendEquationSeparate_Callback"; | 2224 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC
ontext_blendEquationSeparate_Callback"; |
| 2225 | 2225 |
| 2226 @DomName('WebGLRenderingContext.blendFunc') | 2226 @DomName('WebGLRenderingContext.blendFunc') |
| 2227 @DocsEditable | 2227 @DocsEditable |
| 2228 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu
nc_Callback"; | 2228 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu
nc_Callback"; |
| 2229 | 2229 |
| 2230 @DomName('WebGLRenderingContext.blendFuncSeparate') | 2230 @DomName('WebGLRenderingContext.blendFuncSeparate') |
| 2231 @DocsEditable | 2231 @DocsEditable |
| 2232 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive "WebGLRenderingContext_blendFuncSeparate_Callback"; | 2232 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive "WebGLRenderingContext_blendFuncSeparate_Callback"; |
| 2233 | 2233 |
| 2234 void bufferData(int target, data_OR_size, int usage) { | 2234 @DomName('WebGLRenderingContext.bufferByteData') |
| 2235 if ((usage is int || usage == null) && (data_OR_size is TypedData || data_OR
_size == null) && (target is int || target == null)) { | 2235 @DocsEditable |
| 2236 _bufferData_1(target, data_OR_size, usage); | 2236 void bufferByteData(int target, ByteBuffer data, int usage) native "WebGLRende
ringContext_bufferByteData_Callback"; |
| 2237 return; | |
| 2238 } | |
| 2239 if ((usage is int || usage == null) && (data_OR_size is ByteBuffer || data_O
R_size == null) && (target is int || target == null)) { | |
| 2240 _bufferData_2(target, data_OR_size, usage); | |
| 2241 return; | |
| 2242 } | |
| 2243 if ((usage is int || usage == null) && (data_OR_size is int || data_OR_size
== null) && (target is int || target == null)) { | |
| 2244 _bufferData_3(target, data_OR_size, usage); | |
| 2245 return; | |
| 2246 } | |
| 2247 throw new ArgumentError("Incorrect number or type of arguments"); | |
| 2248 } | |
| 2249 | 2237 |
| 2250 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_1_Callback"; | 2238 @DomName('WebGLRenderingContext.bufferData') |
| 2239 @DocsEditable |
| 2240 void bufferData(int target, int size, int usage) native "WebGLRenderingContext
_bufferData_Callback"; |
| 2251 | 2241 |
| 2252 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_2_Callback"; | 2242 @DomName('WebGLRenderingContext.bufferSubByteData') |
| 2243 @DocsEditable |
| 2244 void bufferSubByteData(int target, int offset, ByteBuffer data) native "WebGLR
enderingContext_bufferSubByteData_Callback"; |
| 2253 | 2245 |
| 2254 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_3_Callback"; | 2246 @DomName('WebGLRenderingContext.bufferSubTypedData') |
| 2247 @DocsEditable |
| 2248 void bufferSubTypedData(int target, int offset, TypedData data) native "WebGLR
enderingContext_bufferSubTypedData_Callback"; |
| 2255 | 2249 |
| 2256 void bufferSubData(int target, int offset, data) { | 2250 @DomName('WebGLRenderingContext.bufferTypedData') |
| 2257 if ((data is TypedData || data == null) && (offset is int || offset == null)
&& (target is int || target == null)) { | 2251 @DocsEditable |
| 2258 _bufferSubData_1(target, offset, data); | 2252 void bufferTypedData(int target, TypedData data, int usage) native "WebGLRende
ringContext_bufferTypedData_Callback"; |
| 2259 return; | |
| 2260 } | |
| 2261 if ((data is ByteBuffer || data == null) && (offset is int || offset == null
) && (target is int || target == null)) { | |
| 2262 _bufferSubData_2(target, offset, data); | |
| 2263 return; | |
| 2264 } | |
| 2265 throw new ArgumentError("Incorrect number or type of arguments"); | |
| 2266 } | |
| 2267 | |
| 2268 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_1_Callback"; | |
| 2269 | |
| 2270 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_2_Callback"; | |
| 2271 | 2253 |
| 2272 @DomName('WebGLRenderingContext.checkFramebufferStatus') | 2254 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
| 2273 @DocsEditable | 2255 @DocsEditable |
| 2274 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram
ebufferStatus_Callback"; | 2256 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram
ebufferStatus_Callback"; |
| 2275 | 2257 |
| 2276 @DomName('WebGLRenderingContext.clear') | 2258 @DomName('WebGLRenderingContext.clear') |
| 2277 @DocsEditable | 2259 @DocsEditable |
| 2278 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; | 2260 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; |
| 2279 | 2261 |
| 2280 @DomName('WebGLRenderingContext.clearColor') | 2262 @DomName('WebGLRenderingContext.clearColor') |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2610 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste
ncilMaskSeparate_Callback"; | 2592 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste
ncilMaskSeparate_Callback"; |
| 2611 | 2593 |
| 2612 @DomName('WebGLRenderingContext.stencilOp') | 2594 @DomName('WebGLRenderingContext.stencilOp') |
| 2613 @DocsEditable | 2595 @DocsEditable |
| 2614 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s
tencilOp_Callback"; | 2596 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s
tencilOp_Callback"; |
| 2615 | 2597 |
| 2616 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2598 @DomName('WebGLRenderingContext.stencilOpSeparate') |
| 2617 @DocsEditable | 2599 @DocsEditable |
| 2618 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL
RenderingContext_stencilOpSeparate_Callback"; | 2600 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL
RenderingContext_stencilOpSeparate_Callback"; |
| 2619 | 2601 |
| 2620 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]) { | 2602 @DomName('WebGLRenderingContext.texImage2D') |
| 2621 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)) { | 2603 @DocsEditable |
| 2622 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 2604 void texImage2D(int target, int level, int internalformat, int format, int typ
e, ImageData pixels) native "WebGLRenderingContext_texImage2D_Callback"; |
| 2623 return; | |
| 2624 } | |
| 2625 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) { | |
| 2626 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
| 2627 return; | |
| 2628 } | |
| 2629 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) { | |
| 2630 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
| 2631 return; | |
| 2632 } | |
| 2633 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) { | |
| 2634 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
| 2635 return; | |
| 2636 } | |
| 2637 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) { | |
| 2638 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
| 2639 return; | |
| 2640 } | |
| 2641 throw new ArgumentError("Incorrect number or type of arguments"); | |
| 2642 } | |
| 2643 | 2605 |
| 2644 void _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_t
ype, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels) native
"WebGLRenderingContext__texImage2D_1_Callback"; | 2606 @DomName('WebGLRenderingContext.texImage2DCanvas') |
| 2607 @DocsEditable |
| 2608 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native "WebGLRenderingContext_texImage2DCanvas_Ca
llback"; |
| 2645 | 2609 |
| 2646 void _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_t
ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext
__texImage2D_2_Callback"; | 2610 @DomName('WebGLRenderingContext.texImage2DImage') |
| 2611 @DocsEditable |
| 2612 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native "WebGLRenderingContext_texImage2DImage_Callba
ck"; |
| 2647 | 2613 |
| 2648 void _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_t
ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext
__texImage2D_3_Callback"; | 2614 @DomName('WebGLRenderingContext.texImage2DTypedData') |
| 2615 @DocsEditable |
| 2616 void texImage2DTypedData(int target, int level, int internalformat, int width,
int height, int border, int format, int type, TypedData pixels) native "WebGLRe
nderingContext_texImage2DTypedData_Callback"; |
| 2649 | 2617 |
| 2650 void _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_t
ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext
__texImage2D_4_Callback"; | 2618 @DomName('WebGLRenderingContext.texImage2DVideo') |
| 2651 | 2619 @DocsEditable |
| 2652 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t
ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext
__texImage2D_5_Callback"; | 2620 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native "WebGLRenderingContext_texImage2DVideo_Callba
ck"; |
| 2653 | 2621 |
| 2654 @DomName('WebGLRenderingContext.texParameterf') | 2622 @DomName('WebGLRenderingContext.texParameterf') |
| 2655 @DocsEditable | 2623 @DocsEditable |
| 2656 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon
text_texParameterf_Callback"; | 2624 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon
text_texParameterf_Callback"; |
| 2657 | 2625 |
| 2658 @DomName('WebGLRenderingContext.texParameteri') | 2626 @DomName('WebGLRenderingContext.texParameteri') |
| 2659 @DocsEditable | 2627 @DocsEditable |
| 2660 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon
text_texParameteri_Callback"; | 2628 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon
text_texParameteri_Callback"; |
| 2661 | 2629 |
| 2662 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]) { | 2630 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2663 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)) { | 2631 @DocsEditable |
| 2664 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 2632 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format
, int type, ImageData pixels) native "WebGLRenderingContext_texSubImage2D_Callba
ck"; |
| 2665 return; | |
| 2666 } | |
| 2667 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) { | |
| 2668 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
| 2669 return; | |
| 2670 } | |
| 2671 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) { | |
| 2672 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
| 2673 return; | |
| 2674 } | |
| 2675 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) { | |
| 2676 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
| 2677 return; | |
| 2678 } | |
| 2679 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) { | |
| 2680 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
| 2681 return; | |
| 2682 } | |
| 2683 throw new ArgumentError("Incorrect number or type of arguments"); | |
| 2684 } | |
| 2685 | 2633 |
| 2686 void _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height
_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels) native "We
bGLRenderingContext__texSubImage2D_1_Callback"; | 2634 @DomName('WebGLRenderingContext.texSubImage2DCanvas') |
| 2635 @DocsEditable |
| 2636 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native "WebGLRenderingContext_texSubImag
e2DCanvas_Callback"; |
| 2687 | 2637 |
| 2688 void _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height
_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo
ntext__texSubImage2D_2_Callback"; | 2638 @DomName('WebGLRenderingContext.texSubImage2DImage') |
| 2639 @DocsEditable |
| 2640 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native "WebGLRenderingContext_texSubImage2D
Image_Callback"; |
| 2689 | 2641 |
| 2690 void _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height
_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo
ntext__texSubImage2D_3_Callback"; | 2642 @DomName('WebGLRenderingContext.texSubImage2DTypedData') |
| 2643 @DocsEditable |
| 2644 void texSubImage2DTypedData(int target, int level, int xoffset, int yoffset, i
nt width, int height, int format, int type, TypedData pixels) native "WebGLRende
ringContext_texSubImage2DTypedData_Callback"; |
| 2691 | 2645 |
| 2692 void _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height
_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo
ntext__texSubImage2D_4_Callback"; | 2646 @DomName('WebGLRenderingContext.texSubImage2DVideo') |
| 2693 | 2647 @DocsEditable |
| 2694 void _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height
_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo
ntext__texSubImage2D_5_Callback"; | 2648 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native "WebGLRenderingContext_texSubImage2D
Video_Callback"; |
| 2695 | 2649 |
| 2696 @DomName('WebGLRenderingContext.uniform1f') | 2650 @DomName('WebGLRenderingContext.uniform1f') |
| 2697 @DocsEditable | 2651 @DocsEditable |
| 2698 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_
uniform1f_Callback"; | 2652 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_
uniform1f_Callback"; |
| 2699 | 2653 |
| 2700 @DomName('WebGLRenderingContext.uniform1fv') | 2654 @DomName('WebGLRenderingContext.uniform1fv') |
| 2701 @DocsEditable | 2655 @DocsEditable |
| 2702 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin
gContext_uniform1fv_Callback"; | 2656 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin
gContext_uniform1fv_Callback"; |
| 2703 | 2657 |
| 2704 @DomName('WebGLRenderingContext.uniform1i') | 2658 @DomName('WebGLRenderingContext.uniform1i') |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2890 | 2844 |
| 2891 | 2845 |
| 2892 @DocsEditable | 2846 @DocsEditable |
| 2893 @DomName('WebGLVertexArrayObjectOES') | 2847 @DomName('WebGLVertexArrayObjectOES') |
| 2894 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2848 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 2895 @Experimental // experimental | 2849 @Experimental // experimental |
| 2896 class VertexArrayObject extends NativeFieldWrapperClass1 { | 2850 class VertexArrayObject extends NativeFieldWrapperClass1 { |
| 2897 VertexArrayObject.internal(); | 2851 VertexArrayObject.internal(); |
| 2898 | 2852 |
| 2899 } | 2853 } |
| OLD | NEW |