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 // DO NOT EDIT - unless you are editing documentation as per: | 10 // DO NOT EDIT - unless you are editing documentation as per: |
(...skipping 1695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1706 @DocsEditable | 1706 @DocsEditable |
1707 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 1707 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
1708 | 1708 |
1709 @DomName('WebGLRenderingContext.texImage2D') | 1709 @DomName('WebGLRenderingContext.texImage2D') |
1710 @DocsEditable | 1710 @DocsEditable |
1711 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]) { | 1711 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]) { |
1712 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null)) { | 1712 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas
_OR_image_OR_pixels_OR_video == null)) { |
1713 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); | 1713 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
1714 return; | 1714 return; |
1715 } | 1715 } |
1716 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) { | 1716 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) { |
1717 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); | 1717 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR
_pixels_OR_video); |
1718 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); | 1718 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
1719 return; | 1719 return; |
1720 } | 1720 } |
1721 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
) { | 1721 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) { |
1722 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 1722 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
1723 return; | 1723 return; |
1724 } | 1724 } |
1725 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) { | 1725 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) { |
1726 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 1726 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
1727 return; | 1727 return; |
1728 } | 1728 } |
1729 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
) { | 1729 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) { |
1730 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); | 1730 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
1731 return; | 1731 return; |
1732 } | 1732 } |
1733 throw new ArgumentError("Incorrect number or type of arguments"); | 1733 throw new ArgumentError("Incorrect number or type of arguments"); |
1734 } | 1734 } |
1735 @JSName('texImage2D') | 1735 @JSName('texImage2D') |
1736 @DomName('WebGLRenderingContext.texImage2D') | 1736 @DomName('WebGLRenderingContext.texImage2D') |
1737 @DocsEditable | 1737 @DocsEditable |
1738 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; | 1738 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; |
1739 @JSName('texImage2D') | 1739 @JSName('texImage2D') |
(...skipping 21 matching lines...) Expand all Loading... |
1761 @DocsEditable | 1761 @DocsEditable |
1762 void texParameteri(int target, int pname, int param) native; | 1762 void texParameteri(int target, int pname, int param) native; |
1763 | 1763 |
1764 @DomName('WebGLRenderingContext.texSubImage2D') | 1764 @DomName('WebGLRenderingContext.texSubImage2D') |
1765 @DocsEditable | 1765 @DocsEditable |
1766 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]) { | 1766 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]) { |
1767 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null)) { | 1767 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format
_OR_image_OR_pixels_OR_video == null)) { |
1768 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); | 1768 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
1769 return; | 1769 return; |
1770 } | 1770 } |
1771 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_
format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 1771 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) { |
1772 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); | 1772 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR
_pixels_OR_video); |
1773 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); | 1773 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
1774 return; | 1774 return; |
1775 } | 1775 } |
1776 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 1776 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
) { |
1777 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 1777 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
1778 return; | 1778 return; |
1779 } | 1779 } |
1780 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas
_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 1780 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) { |
1781 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 1781 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
1782 return; | 1782 return; |
1783 } | 1783 } |
1784 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_
OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) { | 1784 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
) { |
1785 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); | 1785 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
1786 return; | 1786 return; |
1787 } | 1787 } |
1788 throw new ArgumentError("Incorrect number or type of arguments"); | 1788 throw new ArgumentError("Incorrect number or type of arguments"); |
1789 } | 1789 } |
1790 @JSName('texSubImage2D') | 1790 @JSName('texSubImage2D') |
1791 @DomName('WebGLRenderingContext.texSubImage2D') | 1791 @DomName('WebGLRenderingContext.texSubImage2D') |
1792 @DocsEditable | 1792 @DocsEditable |
1793 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; | 1793 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; |
1794 @JSName('texSubImage2D') | 1794 @JSName('texSubImage2D') |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1982 } | 1982 } |
1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1984 // for details. All rights reserved. Use of this source code is governed by a | 1984 // for details. All rights reserved. Use of this source code is governed by a |
1985 // BSD-style license that can be found in the LICENSE file. | 1985 // BSD-style license that can be found in the LICENSE file. |
1986 | 1986 |
1987 | 1987 |
1988 @DocsEditable | 1988 @DocsEditable |
1989 @DomName('WebGLVertexArrayObjectOES') | 1989 @DomName('WebGLVertexArrayObjectOES') |
1990 class VertexArrayObject native "WebGLVertexArrayObjectOES" { | 1990 class VertexArrayObject native "WebGLVertexArrayObjectOES" { |
1991 } | 1991 } |
OLD | NEW |