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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 @DomName('EXTDrawBuffers.MAX_COLOR_ATTACHMENTS_EXT') | 730 @DomName('EXTDrawBuffers.MAX_COLOR_ATTACHMENTS_EXT') |
731 @DocsEditable | 731 @DocsEditable |
732 static const int MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF; | 732 static const int MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF; |
733 | 733 |
734 @DomName('EXTDrawBuffers.MAX_DRAW_BUFFERS_EXT') | 734 @DomName('EXTDrawBuffers.MAX_DRAW_BUFFERS_EXT') |
735 @DocsEditable | 735 @DocsEditable |
736 static const int MAX_DRAW_BUFFERS_EXT = 0x8824; | 736 static const int MAX_DRAW_BUFFERS_EXT = 0x8824; |
737 | 737 |
738 @DomName('EXTDrawBuffers.drawBuffersEXT') | 738 @DomName('EXTDrawBuffers.drawBuffersEXT') |
739 @DocsEditable | 739 @DocsEditable |
740 @Experimental // untriaged | |
741 void drawBuffersExt(List<int> buffers) native "EXTDrawBuffers_drawBuffersEXT_C
allback"; | 740 void drawBuffersExt(List<int> buffers) native "EXTDrawBuffers_drawBuffersEXT_C
allback"; |
742 | 741 |
743 } | 742 } |
744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
745 // for details. All rights reserved. Use of this source code is governed by a | 744 // for details. All rights reserved. Use of this source code is governed by a |
746 // BSD-style license that can be found in the LICENSE file. | 745 // BSD-style license that can be found in the LICENSE file. |
747 | 746 |
748 // WARNING: Do not edit - generated code. | 747 // WARNING: Do not edit - generated code. |
749 | 748 |
750 | 749 |
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2247 } | 2246 } |
2248 throw new ArgumentError("Incorrect number or type of arguments"); | 2247 throw new ArgumentError("Incorrect number or type of arguments"); |
2249 } | 2248 } |
2250 | 2249 |
2251 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_1_Callback"; | 2250 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_1_Callback"; |
2252 | 2251 |
2253 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_2_Callback"; | 2252 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_2_Callback"; |
2254 | 2253 |
2255 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_3_Callback"; | 2254 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_
_bufferData_3_Callback"; |
2256 | 2255 |
| 2256 @DomName('WebGLRenderingContext.bufferEmptyData') |
| 2257 @DocsEditable |
| 2258 void bufferEmptyData(int target, int size, int usage) native "WebGLRenderingCo
ntext_bufferEmptyData_Callback"; |
| 2259 |
2257 void bufferSubData(int target, int offset, data) { | 2260 void bufferSubData(int target, int offset, data) { |
2258 if ((data is TypedData || data == null) && (offset is int || offset == null)
&& (target is int || target == null)) { | 2261 if ((data is TypedData || data == null) && (offset is int || offset == null)
&& (target is int || target == null)) { |
2259 _bufferSubData_1(target, offset, data); | 2262 _bufferSubData_1(target, offset, data); |
2260 return; | 2263 return; |
2261 } | 2264 } |
2262 if ((data is ByteBuffer || data == null) && (offset is int || offset == null
) && (target is int || target == null)) { | 2265 if ((data is ByteBuffer || data == null) && (offset is int || offset == null
) && (target is int || target == null)) { |
2263 _bufferSubData_2(target, offset, data); | 2266 _bufferSubData_2(target, offset, data); |
2264 return; | 2267 return; |
2265 } | 2268 } |
2266 throw new ArgumentError("Incorrect number or type of arguments"); | 2269 throw new ArgumentError("Incorrect number or type of arguments"); |
2267 } | 2270 } |
2268 | 2271 |
2269 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_1_Callback"; | 2272 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_1_Callback"; |
2270 | 2273 |
2271 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_2_Callback"; | 2274 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf
ferSubData_2_Callback"; |
2272 | 2275 |
| 2276 @DomName('WebGLRenderingContext.bufferSubTypedData') |
| 2277 @DocsEditable |
| 2278 void bufferSubTypedData(int target, int offset, TypedData data) native "WebGLR
enderingContext_bufferSubTypedData_Callback"; |
| 2279 |
| 2280 @DomName('WebGLRenderingContext.bufferTypedData') |
| 2281 @DocsEditable |
| 2282 void bufferTypedData(int target, TypedData data, int usage) native "WebGLRende
ringContext_bufferTypedData_Callback"; |
| 2283 |
2273 @DomName('WebGLRenderingContext.checkFramebufferStatus') | 2284 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
2274 @DocsEditable | 2285 @DocsEditable |
2275 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram
ebufferStatus_Callback"; | 2286 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram
ebufferStatus_Callback"; |
2276 | 2287 |
2277 @DomName('WebGLRenderingContext.clear') | 2288 @DomName('WebGLRenderingContext.clear') |
2278 @DocsEditable | 2289 @DocsEditable |
2279 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; | 2290 void clear(int mask) native "WebGLRenderingContext_clear_Callback"; |
2280 | 2291 |
2281 @DomName('WebGLRenderingContext.clearColor') | 2292 @DomName('WebGLRenderingContext.clearColor') |
2282 @DocsEditable | 2293 @DocsEditable |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2645 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"; | 2656 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"; |
2646 | 2657 |
2647 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"; | 2658 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"; |
2648 | 2659 |
2649 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"; | 2660 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"; |
2650 | 2661 |
2651 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"; | 2662 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"; |
2652 | 2663 |
2653 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"; | 2664 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"; |
2654 | 2665 |
| 2666 @DomName('WebGLRenderingContext.texImage2DCanvas') |
| 2667 @DocsEditable |
| 2668 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native "WebGLRenderingContext_texImage2DCanvas_Ca
llback"; |
| 2669 |
| 2670 @DomName('WebGLRenderingContext.texImage2DData') |
| 2671 @DocsEditable |
| 2672 void texImage2DData(int target, int level, int internalformat, int format, int
type, ImageData pixels) native "WebGLRenderingContext_texImage2DData_Callback"; |
| 2673 |
| 2674 @DomName('WebGLRenderingContext.texImage2DImage') |
| 2675 @DocsEditable |
| 2676 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native "WebGLRenderingContext_texImage2DImage_Callba
ck"; |
| 2677 |
| 2678 @DomName('WebGLRenderingContext.texImage2DVideo') |
| 2679 @DocsEditable |
| 2680 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native "WebGLRenderingContext_texImage2DVideo_Callba
ck"; |
| 2681 |
2655 @DomName('WebGLRenderingContext.texParameterf') | 2682 @DomName('WebGLRenderingContext.texParameterf') |
2656 @DocsEditable | 2683 @DocsEditable |
2657 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon
text_texParameterf_Callback"; | 2684 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon
text_texParameterf_Callback"; |
2658 | 2685 |
2659 @DomName('WebGLRenderingContext.texParameteri') | 2686 @DomName('WebGLRenderingContext.texParameteri') |
2660 @DocsEditable | 2687 @DocsEditable |
2661 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon
text_texParameteri_Callback"; | 2688 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon
text_texParameteri_Callback"; |
2662 | 2689 |
2663 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]) { | 2690 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]) { |
2664 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)) { | 2691 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)) { |
(...skipping 22 matching lines...) Expand all Loading... |
2687 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"; | 2714 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"; |
2688 | 2715 |
2689 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"; | 2716 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"; |
2690 | 2717 |
2691 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"; | 2718 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"; |
2692 | 2719 |
2693 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"; | 2720 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"; |
2694 | 2721 |
2695 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"; | 2722 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"; |
2696 | 2723 |
| 2724 @DomName('WebGLRenderingContext.texSubImage2DCanvas') |
| 2725 @DocsEditable |
| 2726 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native "WebGLRenderingContext_texSubImag
e2DCanvas_Callback"; |
| 2727 |
| 2728 @DomName('WebGLRenderingContext.texSubImage2DData') |
| 2729 @DocsEditable |
| 2730 void texSubImage2DData(int target, int level, int xoffset, int yoffset, int fo
rmat, int type, ImageData pixels) native "WebGLRenderingContext_texSubImage2DDat
a_Callback"; |
| 2731 |
| 2732 @DomName('WebGLRenderingContext.texSubImage2DImage') |
| 2733 @DocsEditable |
| 2734 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native "WebGLRenderingContext_texSubImage2D
Image_Callback"; |
| 2735 |
| 2736 @DomName('WebGLRenderingContext.texSubImage2DVideo') |
| 2737 @DocsEditable |
| 2738 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native "WebGLRenderingContext_texSubImage2D
Video_Callback"; |
| 2739 |
2697 @DomName('WebGLRenderingContext.uniform1f') | 2740 @DomName('WebGLRenderingContext.uniform1f') |
2698 @DocsEditable | 2741 @DocsEditable |
2699 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_
uniform1f_Callback"; | 2742 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_
uniform1f_Callback"; |
2700 | 2743 |
2701 @DomName('WebGLRenderingContext.uniform1fv') | 2744 @DomName('WebGLRenderingContext.uniform1fv') |
2702 @DocsEditable | 2745 @DocsEditable |
2703 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin
gContext_uniform1fv_Callback"; | 2746 void uniform1fv(UniformLocation location, Float32List v) native "WebGLRenderin
gContext_uniform1fv_Callback"; |
2704 | 2747 |
2705 @DomName('WebGLRenderingContext.uniform1i') | 2748 @DomName('WebGLRenderingContext.uniform1i') |
2706 @DocsEditable | 2749 @DocsEditable |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2891 | 2934 |
2892 | 2935 |
2893 @DocsEditable | 2936 @DocsEditable |
2894 @DomName('WebGLVertexArrayObjectOES') | 2937 @DomName('WebGLVertexArrayObjectOES') |
2895 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2938 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
2896 @Experimental // experimental | 2939 @Experimental // experimental |
2897 class VertexArrayObject extends NativeFieldWrapperClass1 { | 2940 class VertexArrayObject extends NativeFieldWrapperClass1 { |
2898 VertexArrayObject.internal(); | 2941 VertexArrayObject.internal(); |
2899 | 2942 |
2900 } | 2943 } |
OLD | NEW |