| OLD | NEW |
| 1 library dart.dom.web_gl; | 1 library dart.dom.web_gl; |
| 2 | 2 |
| 3 import 'dart:collection'; | 3 import 'dart:collection'; |
| 4 import 'dart:_collection-dev'; | 4 import 'dart:_collection-dev'; |
| 5 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'dart:html_common'; | 6 import 'dart:html_common'; |
| 7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
| 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure
ToJS; | 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure
ToJS; |
| 9 import 'dart:_foreign_helper' show JS; | 9 import 'dart:_foreign_helper' show JS; |
| 10 import 'dart:_interceptors' show Interceptor; | 10 import 'dart:_interceptors' show Interceptor; |
| (...skipping 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2432 @DocsEditable | 2432 @DocsEditable |
| 2433 void stencilOp(int fail, int zfail, int zpass) native; | 2433 void stencilOp(int fail, int zfail, int zpass) native; |
| 2434 | 2434 |
| 2435 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2435 @DomName('WebGLRenderingContext.stencilOpSeparate') |
| 2436 @DocsEditable | 2436 @DocsEditable |
| 2437 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 2437 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
| 2438 | 2438 |
| 2439 @DomName('WebGLRenderingContext.texImage2D') | 2439 @DomName('WebGLRenderingContext.texImage2D') |
| 2440 @DocsEditable | 2440 @DocsEditable |
| 2441 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]) { | 2441 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]) { |
| 2442 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null) && ?format && ?type && ?pixels) { | 2442 if (pixels != null && type != null && format != null && (border_OR_canvas_OR
_image_OR_pixels_OR_video is int || border_OR_canvas_OR_image_OR_pixels_OR_video
== null)) { |
| 2443 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 2443 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
| 2444 return; | 2444 return; |
| 2445 } | 2445 } |
| 2446 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_
canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) { | 2446 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) { |
| 2447 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 2447 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
| 2448 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 2448 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
| 2449 return; | 2449 return; |
| 2450 } | 2450 } |
| 2451 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels
) { | 2451 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null
&& pixels == null) { |
| 2452 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2452 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2453 return; | 2453 return; |
| 2454 } | 2454 } |
| 2455 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border
_OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixel
s) { | 2455 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border
_OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == nul
l && pixels == null) { |
| 2456 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2456 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2457 return; | 2457 return; |
| 2458 } | 2458 } |
| 2459 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels
) { | 2459 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_
OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null
&& pixels == null) { |
| 2460 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2460 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2461 return; | 2461 return; |
| 2462 } | 2462 } |
| 2463 throw new ArgumentError("Incorrect number or type of arguments"); | 2463 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2464 } | 2464 } |
| 2465 @JSName('texImage2D') | 2465 @JSName('texImage2D') |
| 2466 @DomName('WebGLRenderingContext.texImage2D') | 2466 @DomName('WebGLRenderingContext.texImage2D') |
| 2467 @DocsEditable | 2467 @DocsEditable |
| 2468 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; | 2468 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; |
| 2469 @JSName('texImage2D') | 2469 @JSName('texImage2D') |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2487 @DocsEditable | 2487 @DocsEditable |
| 2488 void texParameterf(int target, int pname, num param) native; | 2488 void texParameterf(int target, int pname, num param) native; |
| 2489 | 2489 |
| 2490 @DomName('WebGLRenderingContext.texParameteri') | 2490 @DomName('WebGLRenderingContext.texParameteri') |
| 2491 @DocsEditable | 2491 @DocsEditable |
| 2492 void texParameteri(int target, int pname, int param) native; | 2492 void texParameteri(int target, int pname, int param) native; |
| 2493 | 2493 |
| 2494 @DomName('WebGLRenderingContext.texSubImage2D') | 2494 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2495 @DocsEditable | 2495 @DocsEditable |
| 2496 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]) { | 2496 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]) { |
| 2497 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null) && ?type && ?pixels) { | 2497 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O
R_video is int || canvas_OR_format_OR_image_OR_pixels_OR_video == null)) { |
| 2498 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 2498 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
| 2499 return; | 2499 return; |
| 2500 } | 2500 } |
| 2501 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2501 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) { |
| 2502 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 2502 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
| 2503 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 2503 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
| 2504 return; | 2504 return; |
| 2505 } | 2505 } |
| 2506 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2506 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null
) { |
| 2507 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2507 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2508 return; | 2508 return; |
| 2509 } | 2509 } |
| 2510 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2510 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == nul
l) { |
| 2511 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2511 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2512 return; | 2512 return; |
| 2513 } | 2513 } |
| 2514 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2514 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null
) { |
| 2515 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2515 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2516 return; | 2516 return; |
| 2517 } | 2517 } |
| 2518 throw new ArgumentError("Incorrect number or type of arguments"); | 2518 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2519 } | 2519 } |
| 2520 @JSName('texSubImage2D') | 2520 @JSName('texSubImage2D') |
| 2521 @DomName('WebGLRenderingContext.texSubImage2D') | 2521 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2522 @DocsEditable | 2522 @DocsEditable |
| 2523 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; | 2523 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; |
| 2524 @JSName('texSubImage2D') | 2524 @JSName('texSubImage2D') |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2714 // for details. All rights reserved. Use of this source code is governed by a | 2714 // for details. All rights reserved. Use of this source code is governed by a |
| 2715 // BSD-style license that can be found in the LICENSE file. | 2715 // BSD-style license that can be found in the LICENSE file. |
| 2716 | 2716 |
| 2717 | 2717 |
| 2718 @DocsEditable | 2718 @DocsEditable |
| 2719 @DomName('WebGLVertexArrayObjectOES') | 2719 @DomName('WebGLVertexArrayObjectOES') |
| 2720 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2720 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 2721 @Experimental // experimental | 2721 @Experimental // experimental |
| 2722 class VertexArrayObject native "WebGLVertexArrayObjectOES" { | 2722 class VertexArrayObject native "WebGLVertexArrayObjectOES" { |
| 2723 } | 2723 } |
| OLD | NEW |