| 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 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2453 @DocsEditable | 2453 @DocsEditable |
| 2454 void stencilOp(int fail, int zfail, int zpass) native; | 2454 void stencilOp(int fail, int zfail, int zpass) native; |
| 2455 | 2455 |
| 2456 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2456 @DomName('WebGLRenderingContext.stencilOpSeparate') |
| 2457 @DocsEditable | 2457 @DocsEditable |
| 2458 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 2458 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
| 2459 | 2459 |
| 2460 @DomName('WebGLRenderingContext.texImage2D') | 2460 @DomName('WebGLRenderingContext.texImage2D') |
| 2461 @DocsEditable | 2461 @DocsEditable |
| 2462 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]) { | 2462 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]) { |
| 2463 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) { | 2463 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)) { |
| 2464 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 2464 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
| 2465 return; | 2465 return; |
| 2466 } | 2466 } |
| 2467 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) { | 2467 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) { |
| 2468 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 2468 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
| 2469 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 2469 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
| 2470 return; | 2470 return; |
| 2471 } | 2471 } |
| 2472 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
) { | 2472 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) { |
| 2473 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2473 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2474 return; | 2474 return; |
| 2475 } | 2475 } |
| 2476 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) { | 2476 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) { |
| 2477 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2477 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2478 return; | 2478 return; |
| 2479 } | 2479 } |
| 2480 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
) { | 2480 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) { |
| 2481 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 2481 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2482 return; | 2482 return; |
| 2483 } | 2483 } |
| 2484 throw new ArgumentError("Incorrect number or type of arguments"); | 2484 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2485 } | 2485 } |
| 2486 @JSName('texImage2D') | 2486 @JSName('texImage2D') |
| 2487 @DomName('WebGLRenderingContext.texImage2D') | 2487 @DomName('WebGLRenderingContext.texImage2D') |
| 2488 @DocsEditable | 2488 @DocsEditable |
| 2489 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; | 2489 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; |
| 2490 @JSName('texImage2D') | 2490 @JSName('texImage2D') |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2508 @DocsEditable | 2508 @DocsEditable |
| 2509 void texParameterf(int target, int pname, num param) native; | 2509 void texParameterf(int target, int pname, num param) native; |
| 2510 | 2510 |
| 2511 @DomName('WebGLRenderingContext.texParameteri') | 2511 @DomName('WebGLRenderingContext.texParameteri') |
| 2512 @DocsEditable | 2512 @DocsEditable |
| 2513 void texParameteri(int target, int pname, int param) native; | 2513 void texParameteri(int target, int pname, int param) native; |
| 2514 | 2514 |
| 2515 @DomName('WebGLRenderingContext.texSubImage2D') | 2515 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2516 @DocsEditable | 2516 @DocsEditable |
| 2517 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]) { | 2517 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]) { |
| 2518 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null) && ?type && ?pixels) { | 2518 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)) { |
| 2519 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 2519 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
| 2520 return; | 2520 return; |
| 2521 } | 2521 } |
| 2522 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2522 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) { |
| 2523 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 2523 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
| 2524 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 2524 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
| 2525 return; | 2525 return; |
| 2526 } | 2526 } |
| 2527 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2527 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
) { |
| 2528 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2528 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2529 return; | 2529 return; |
| 2530 } | 2530 } |
| 2531 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2531 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) { |
| 2532 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2532 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2533 return; | 2533 return; |
| 2534 } | 2534 } |
| 2535 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 2535 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
) { |
| 2536 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 2536 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2537 return; | 2537 return; |
| 2538 } | 2538 } |
| 2539 throw new ArgumentError("Incorrect number or type of arguments"); | 2539 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2540 } | 2540 } |
| 2541 @JSName('texSubImage2D') | 2541 @JSName('texSubImage2D') |
| 2542 @DomName('WebGLRenderingContext.texSubImage2D') | 2542 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2543 @DocsEditable | 2543 @DocsEditable |
| 2544 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; | 2544 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; |
| 2545 @JSName('texSubImage2D') | 2545 @JSName('texSubImage2D') |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2735 // for details. All rights reserved. Use of this source code is governed by a | 2735 // for details. All rights reserved. Use of this source code is governed by a |
| 2736 // BSD-style license that can be found in the LICENSE file. | 2736 // BSD-style license that can be found in the LICENSE file. |
| 2737 | 2737 |
| 2738 | 2738 |
| 2739 @DocsEditable | 2739 @DocsEditable |
| 2740 @DomName('WebGLVertexArrayObjectOES') | 2740 @DomName('WebGLVertexArrayObjectOES') |
| 2741 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2741 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 2742 @Experimental // experimental | 2742 @Experimental // experimental |
| 2743 class VertexArrayObject native "WebGLVertexArrayObjectOES" { | 2743 class VertexArrayObject native "WebGLVertexArrayObjectOES" { |
| 2744 } | 2744 } |
| OLD | NEW |