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, JSExtendableArray; | 10 import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
(...skipping 2100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | 2111 void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
2112 | 2112 |
2113 @DomName('WebGLRenderingContext.blendFunc') | 2113 @DomName('WebGLRenderingContext.blendFunc') |
2114 @DocsEditable() | 2114 @DocsEditable() |
2115 void blendFunc(int sfactor, int dfactor) native; | 2115 void blendFunc(int sfactor, int dfactor) native; |
2116 | 2116 |
2117 @DomName('WebGLRenderingContext.blendFuncSeparate') | 2117 @DomName('WebGLRenderingContext.blendFuncSeparate') |
2118 @DocsEditable() | 2118 @DocsEditable() |
2119 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | 2119 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
2120 | 2120 |
| 2121 @JSName('bufferData') |
2121 @DomName('WebGLRenderingContext.bufferData') | 2122 @DomName('WebGLRenderingContext.bufferData') |
2122 @DocsEditable() | 2123 @DocsEditable() |
2123 void bufferData(int target, data_OR_size, int usage) native; | 2124 void bufferByteData(int target, ByteBuffer data, int usage) native; |
2124 | 2125 |
| 2126 @DomName('WebGLRenderingContext.bufferData') |
| 2127 @DocsEditable() |
| 2128 void bufferData(int target, int size, int usage) native; |
| 2129 |
| 2130 @JSName('bufferData') |
| 2131 @DomName('WebGLRenderingContext.bufferData') |
| 2132 @DocsEditable() |
| 2133 void bufferDataTyped(int target, TypedData data, int usage) native; |
| 2134 |
| 2135 @JSName('bufferSubData') |
2125 @DomName('WebGLRenderingContext.bufferSubData') | 2136 @DomName('WebGLRenderingContext.bufferSubData') |
2126 @DocsEditable() | 2137 @DocsEditable() |
2127 void bufferSubData(int target, int offset, data) native; | 2138 void bufferSubByteData(int target, int offset, ByteBuffer data) native; |
| 2139 |
| 2140 @JSName('bufferSubData') |
| 2141 @DomName('WebGLRenderingContext.bufferSubData') |
| 2142 @DocsEditable() |
| 2143 void bufferSubDataTyped(int target, int offset, TypedData data) native; |
2128 | 2144 |
2129 @DomName('WebGLRenderingContext.checkFramebufferStatus') | 2145 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
2130 @DocsEditable() | 2146 @DocsEditable() |
2131 int checkFramebufferStatus(int target) native; | 2147 int checkFramebufferStatus(int target) native; |
2132 | 2148 |
2133 @DomName('WebGLRenderingContext.clear') | 2149 @DomName('WebGLRenderingContext.clear') |
2134 @DocsEditable() | 2150 @DocsEditable() |
2135 void clear(int mask) native; | 2151 void clear(int mask) native; |
2136 | 2152 |
2137 @DomName('WebGLRenderingContext.clearColor') | 2153 @DomName('WebGLRenderingContext.clearColor') |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2485 void stencilMaskSeparate(int face, int mask) native; | 2501 void stencilMaskSeparate(int face, int mask) native; |
2486 | 2502 |
2487 @DomName('WebGLRenderingContext.stencilOp') | 2503 @DomName('WebGLRenderingContext.stencilOp') |
2488 @DocsEditable() | 2504 @DocsEditable() |
2489 void stencilOp(int fail, int zfail, int zpass) native; | 2505 void stencilOp(int fail, int zfail, int zpass) native; |
2490 | 2506 |
2491 @DomName('WebGLRenderingContext.stencilOpSeparate') | 2507 @DomName('WebGLRenderingContext.stencilOpSeparate') |
2492 @DocsEditable() | 2508 @DocsEditable() |
2493 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; | 2509 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
2494 | 2510 |
| 2511 @JSName('texImage2D') |
| 2512 @DomName('WebGLRenderingContext.texImage2D') |
| 2513 @DocsEditable() |
| 2514 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native; |
| 2515 |
| 2516 @JSName('texImage2D') |
| 2517 @DomName('WebGLRenderingContext.texImage2D') |
| 2518 @DocsEditable() |
| 2519 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native; |
| 2520 |
| 2521 @DomName('WebGLRenderingContext.texImage2D') |
| 2522 @DocsEditable() |
| 2523 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) { |
| 2524 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 2525 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1
); |
| 2526 return; |
| 2527 } |
| 2528 @JSName('texImage2D') |
| 2529 @DomName('WebGLRenderingContext.texImage2D') |
| 2530 @DocsEditable() |
| 2531 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel
s) native; |
| 2532 |
| 2533 @JSName('texImage2D') |
| 2534 @DomName('WebGLRenderingContext.texImage2D') |
| 2535 @DocsEditable() |
| 2536 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native; |
| 2537 |
2495 @DomName('WebGLRenderingContext.texParameterf') | 2538 @DomName('WebGLRenderingContext.texParameterf') |
2496 @DocsEditable() | 2539 @DocsEditable() |
2497 void texParameterf(int target, int pname, num param) native; | 2540 void texParameterf(int target, int pname, num param) native; |
2498 | 2541 |
2499 @DomName('WebGLRenderingContext.texParameteri') | 2542 @DomName('WebGLRenderingContext.texParameteri') |
2500 @DocsEditable() | 2543 @DocsEditable() |
2501 void texParameteri(int target, int pname, int param) native; | 2544 void texParameteri(int target, int pname, int param) native; |
2502 | 2545 |
| 2546 @JSName('texSubImage2D') |
| 2547 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2548 @DocsEditable() |
| 2549 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native; |
| 2550 |
| 2551 @JSName('texSubImage2D') |
| 2552 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2553 @DocsEditable() |
| 2554 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native; |
| 2555 |
| 2556 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2557 @DocsEditable() |
| 2558 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i
nt format, int type, ImageData pixels) { |
| 2559 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 2560 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix
els_1); |
| 2561 return; |
| 2562 } |
| 2563 @JSName('texSubImage2D') |
| 2564 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2565 @DocsEditable() |
| 2566 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type,
pixels) native; |
| 2567 |
| 2568 @JSName('texSubImage2D') |
| 2569 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2570 @DocsEditable() |
| 2571 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native; |
| 2572 |
2503 @DomName('WebGLRenderingContext.uniform1f') | 2573 @DomName('WebGLRenderingContext.uniform1f') |
2504 @DocsEditable() | 2574 @DocsEditable() |
2505 void uniform1f(UniformLocation location, num x) native; | 2575 void uniform1f(UniformLocation location, num x) native; |
2506 | 2576 |
2507 @DomName('WebGLRenderingContext.uniform1fv') | 2577 @DomName('WebGLRenderingContext.uniform1fv') |
2508 @DocsEditable() | 2578 @DocsEditable() |
2509 void uniform1fv(UniformLocation location, Float32List v) native; | 2579 void uniform1fv(UniformLocation location, Float32List v) native; |
2510 | 2580 |
2511 @DomName('WebGLRenderingContext.uniform1i') | 2581 @DomName('WebGLRenderingContext.uniform1i') |
2512 @DocsEditable() | 2582 @DocsEditable() |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2721 // for details. All rights reserved. Use of this source code is governed by a | 2791 // for details. All rights reserved. Use of this source code is governed by a |
2722 // BSD-style license that can be found in the LICENSE file. | 2792 // BSD-style license that can be found in the LICENSE file. |
2723 | 2793 |
2724 | 2794 |
2725 @DocsEditable() | 2795 @DocsEditable() |
2726 @DomName('WebGLVertexArrayObjectOES') | 2796 @DomName('WebGLVertexArrayObjectOES') |
2727 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2797 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
2728 @Experimental() // experimental | 2798 @Experimental() // experimental |
2729 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { | 2799 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { |
2730 } | 2800 } |
OLD | NEW |