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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2200 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC
ontext_blendEquationSeparate_Callback"; | 2200 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC
ontext_blendEquationSeparate_Callback"; |
2201 | 2201 |
2202 @DomName('WebGLRenderingContext.blendFunc') | 2202 @DomName('WebGLRenderingContext.blendFunc') |
2203 @DocsEditable() | 2203 @DocsEditable() |
2204 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu
nc_Callback"; | 2204 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu
nc_Callback"; |
2205 | 2205 |
2206 @DomName('WebGLRenderingContext.blendFuncSeparate') | 2206 @DomName('WebGLRenderingContext.blendFuncSeparate') |
2207 @DocsEditable() | 2207 @DocsEditable() |
2208 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive "WebGLRenderingContext_blendFuncSeparate_Callback"; | 2208 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive "WebGLRenderingContext_blendFuncSeparate_Callback"; |
2209 | 2209 |
2210 void bufferData(int target, data_OR_size, int usage) { | 2210 @DomName('WebGLRenderingContext.bufferByteData') |
2211 if ((usage is int || usage == null) && (data_OR_size is TypedData || data_OR
_size == null) && (target is int || target == null)) { | 2211 @DocsEditable() |
2212 _bufferData_1(target, data_OR_size, usage); | 2212 void bufferByteData(int target, ByteBuffer data, int usage) native "WebGLRende
ringContext_bufferByteData_Callback"; |
2213 return; | |
2214 } | |
2215 if ((usage is int || usage == null) && (data_OR_size is ByteBuffer || data_O
R_size == null) && (target is int || target == null)) { | |
2216 _bufferData_2(target, data_OR_size, usage); | |
2217 return; | |
2218 } | |
2219 if ((usage is int || usage == null) && (data_OR_size is int || data_OR_size
== null) && (target is int || target == null)) { | |
2220 _bufferData_3(target, data_OR_size, usage); | |
2221 return; | |
2222 } | |
2223 throw new ArgumentError("Incorrect number or type of arguments"); | |
2224 } | |
2225 | 2213 |
2226 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_1_Callback"; | 2214 @DomName('WebGLRenderingContext.bufferData') |
| 2215 @DocsEditable() |
| 2216 void bufferData(int target, int size, int usage) native "WebGLRenderingContext
_bufferData_Callback"; |
2227 | 2217 |
2228 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_2_Callback"; | 2218 @DomName('WebGLRenderingContext.bufferDataTyped') |
| 2219 @DocsEditable() |
| 2220 void bufferDataTyped(int target, TypedData data, int usage) native "WebGLRende
ringContext_bufferDataTyped_Callback"; |
2229 | 2221 |
2230 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_3_Callback"; | 2222 @DomName('WebGLRenderingContext.bufferSubByteData') |
| 2223 @DocsEditable() |
| 2224 void bufferSubByteData(int target, int offset, ByteBuffer data) native "WebGLR
enderingContext_bufferSubByteData_Callback"; |
2231 | 2225 |
2232 void bufferSubData(int target, int offset, data) { | 2226 @DomName('WebGLRenderingContext.bufferSubDataTyped') |
2233 if ((data is TypedData || data == null) && (offset is int || offset == null)
&& (target is int || target == null)) { | 2227 @DocsEditable() |
2234 _bufferSubData_1(target, offset, data); | 2228 void bufferSubDataTyped(int target, int offset, TypedData data) native "WebGLR
enderingContext_bufferSubDataTyped_Callback"; |
2235 return; | |
2236 } | |
2237 if ((data is ByteBuffer || data == null) && (offset is int || offset == null
) && (target is int || target == null)) { | |
2238 _bufferSubData_2(target, offset, data); | |
2239 return; | |
2240 } | |
2241 throw new ArgumentError("Incorrect number or type of arguments"); | |
2242 } | |
2243 | |
2244 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_1_Callback"; | |
2245 | |
2246 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_2_Callback"; | |
2247 | 2229 |
2248 @DomName('WebGLRenderingContext.checkFramebufferStatus') | 2230 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
2249 @DocsEditable() | 2231 @DocsEditable() |
2250 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram
ebufferStatus_Callback"; | 2232 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram
ebufferStatus_Callback"; |
2251 | 2233 |
2252 @DomName('WebGLRenderingContext.clear') | 2234 @DomName('WebGLRenderingContext.clear') |
2253 @DocsEditable() | 2235 @DocsEditable() |
2254 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; | 2236 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; |
2255 | 2237 |
2256 @DomName('WebGLRenderingContext.clearColor') | 2238 @DomName('WebGLRenderingContext.clearColor') |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2586 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste
ncilMaskSeparate_Callback"; | 2568 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste
ncilMaskSeparate_Callback"; |
2587 | 2569 |
2588 @DomName('WebGLRenderingContext.stencilOp') | 2570 @DomName('WebGLRenderingContext.stencilOp') |
2589 @DocsEditable() | 2571 @DocsEditable() |
2590 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s
tencilOp_Callback"; | 2572 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s
tencilOp_Callback"; |
2591 | 2573 |
2592 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2574 @DomName('WebGLRenderingContext.stencilOpSeparate') |
2593 @DocsEditable() | 2575 @DocsEditable() |
2594 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL
RenderingContext_stencilOpSeparate_Callback"; | 2576 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL
RenderingContext_stencilOpSeparate_Callback"; |
2595 | 2577 |
2596 void _texImage2D(int target, int level, int internalformat, int format_OR_widt
h, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format
, int type, TypedData pixels]) { | 2578 @DomName('WebGLRenderingContext.texImage2D') |
2597 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)) { | 2579 @DocsEditable() |
2598 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 2580 void _texImage2D(int target, int level, int internalformat, int width, int hei
ght, int border, int format, int type, TypedData pixels) native "WebGLRenderingC
ontext_texImage2D_Callback"; |
2599 return; | |
2600 } | |
2601 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) { | |
2602 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
2603 return; | |
2604 } | |
2605 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) { | |
2606 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
2607 return; | |
2608 } | |
2609 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) { | |
2610 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
2611 return; | |
2612 } | |
2613 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) { | |
2614 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | |
2615 return; | |
2616 } | |
2617 throw new ArgumentError("Incorrect number or type of arguments"); | |
2618 } | |
2619 | 2581 |
2620 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"; | 2582 @DomName('WebGLRenderingContext.texImage2DCanvas') |
| 2583 @DocsEditable() |
| 2584 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native "WebGLRenderingContext_texImage2DCanvas_Ca
llback"; |
2621 | 2585 |
2622 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"; | 2586 @DomName('WebGLRenderingContext.texImage2DImage') |
| 2587 @DocsEditable() |
| 2588 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native "WebGLRenderingContext_texImage2DImage_Callba
ck"; |
2623 | 2589 |
2624 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"; | 2590 @DomName('WebGLRenderingContext.texImage2DImageData') |
| 2591 @DocsEditable() |
| 2592 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) native "WebGLRenderingContext_texImage2DImageData_
Callback"; |
2625 | 2593 |
2626 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"; | 2594 @DomName('WebGLRenderingContext.texImage2DVideo') |
2627 | 2595 @DocsEditable() |
2628 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"; | 2596 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native "WebGLRenderingContext_texImage2DVideo_Callba
ck"; |
2629 | 2597 |
2630 @DomName('WebGLRenderingContext.texParameterf') | 2598 @DomName('WebGLRenderingContext.texParameterf') |
2631 @DocsEditable() | 2599 @DocsEditable() |
2632 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon
text_texParameterf_Callback"; | 2600 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon
text_texParameterf_Callback"; |
2633 | 2601 |
2634 @DomName('WebGLRenderingContext.texParameteri') | 2602 @DomName('WebGLRenderingContext.texParameteri') |
2635 @DocsEditable() | 2603 @DocsEditable() |
2636 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon
text_texParameteri_Callback"; | 2604 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon
text_texParameteri_Callback"; |
2637 | 2605 |
2638 void _texSubImageImage2D(int target, int level, int xoffset, int yoffset, int
format_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_vide
o, [int type, TypedData pixels]) { | 2606 @DomName('WebGLRenderingContext.texSubImage2D') |
2639 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)) { | 2607 @DocsEditable() |
2640 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 2608 void _texSubImageImage2D(int target, int level, int xoffset, int yoffset, int
width, int height, int format, int type, TypedData pixels) native "WebGLRenderin
gContext_texSubImage2D_Callback"; |
2641 return; | |
2642 } | |
2643 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) { | |
2644 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
2645 return; | |
2646 } | |
2647 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) { | |
2648 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
2649 return; | |
2650 } | |
2651 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) { | |
2652 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
2653 return; | |
2654 } | |
2655 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) { | |
2656 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | |
2657 return; | |
2658 } | |
2659 throw new ArgumentError("Incorrect number or type of arguments"); | |
2660 } | |
2661 | 2609 |
2662 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"; | 2610 @DomName('WebGLRenderingContext.texSubImage2DCanvas') |
| 2611 @DocsEditable() |
| 2612 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native "WebGLRenderingContext_texSubImag
e2DCanvas_Callback"; |
2663 | 2613 |
2664 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"; | 2614 @DomName('WebGLRenderingContext.texSubImage2DImage') |
| 2615 @DocsEditable() |
| 2616 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native "WebGLRenderingContext_texSubImage2D
Image_Callback"; |
2665 | 2617 |
2666 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"; | 2618 @DomName('WebGLRenderingContext.texSubImage2DImageData') |
| 2619 @DocsEditable() |
| 2620 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i
nt format, int type, ImageData pixels) native "WebGLRenderingContext_texSubImage
2DImageData_Callback"; |
2667 | 2621 |
2668 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"; | 2622 @DomName('WebGLRenderingContext.texSubImage2DVideo') |
2669 | 2623 @DocsEditable() |
2670 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"; | 2624 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native "WebGLRenderingContext_texSubImage2D
Video_Callback"; |
2671 | 2625 |
2672 @DomName('WebGLRenderingContext.uniform1f') | 2626 @DomName('WebGLRenderingContext.uniform1f') |
2673 @DocsEditable() | 2627 @DocsEditable() |
2674 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_
uniform1f_Callback"; | 2628 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_
uniform1f_Callback"; |
2675 | 2629 |
2676 @DomName('WebGLRenderingContext.uniform1fv') | 2630 @DomName('WebGLRenderingContext.uniform1fv') |
2677 @DocsEditable() | 2631 @DocsEditable() |
2678 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin
gContext_uniform1fv_Callback"; | 2632 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin
gContext_uniform1fv_Callback"; |
2679 | 2633 |
2680 @DomName('WebGLRenderingContext.uniform1i') | 2634 @DomName('WebGLRenderingContext.uniform1i') |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2912 // WARNING: Do not edit - generated code. | 2866 // WARNING: Do not edit - generated code. |
2913 | 2867 |
2914 | 2868 |
2915 @DocsEditable() | 2869 @DocsEditable() |
2916 @DomName('WebGLVertexArrayObjectOES') | 2870 @DomName('WebGLVertexArrayObjectOES') |
2917 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2871 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
2918 @Experimental() // experimental | 2872 @Experimental() // experimental |
2919 class VertexArrayObject extends NativeFieldWrapperClass1 { | 2873 class VertexArrayObject extends NativeFieldWrapperClass1 { |
2920 | 2874 |
2921 } | 2875 } |
OLD | NEW |