Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 301413002: Fixed docs for webGL method variants (overloaded methods were getting the same comments). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * 3D programming in the browser. 2 * 3D programming in the browser.
3 */ 3 */
4 library dart.dom.web_gl; 4 library dart.dom.web_gl;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:_internal' hide deprecated; 7 import 'dart:_internal' hide deprecated;
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:html_common'; 9 import 'dart:html_common';
10 import 'dart:_native_typed_data'; 10 import 'dart:_native_typed_data';
(...skipping 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 void blendFunc(int sfactor, int dfactor) native; 2227 void blendFunc(int sfactor, int dfactor) native;
2228 2228
2229 @DomName('WebGLRenderingContext.blendFuncSeparate') 2229 @DomName('WebGLRenderingContext.blendFuncSeparate')
2230 @DocsEditable() 2230 @DocsEditable()
2231 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 2231 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
2232 2232
2233 @JSName('bufferData') 2233 @JSName('bufferData')
2234 /** 2234 /**
2235 * Buffers the specified data. 2235 * Buffers the specified data.
2236 * 2236 *
2237 * This specific method is provided for WebGL API compatibility reasons, but 2237 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2238 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2238 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2239 * depending on your purposes. 2239 * depending on your purposes.
2240 */ 2240 */
2241 @DomName('WebGLRenderingContext.bufferData') 2241 @DomName('WebGLRenderingContext.bufferData')
2242 @DocsEditable() 2242 @DocsEditable()
2243 void bufferByteData(int target, ByteBuffer data, int usage) native; 2243 void bufferByteData(int target, ByteBuffer data, int usage) native;
2244 2244
2245 /** 2245 /**
2246 * Buffers the specified data. 2246 * Buffers the specified data.
2247 * 2247 *
2248 * This specific method is provided for WebGL API compatibility reasons, but 2248 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2249 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2249 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2250 * depending on your purposes. 2250 * depending on your purposes.
2251 */ 2251 */
2252 @DomName('WebGLRenderingContext.bufferData') 2252 @DomName('WebGLRenderingContext.bufferData')
2253 @DocsEditable() 2253 @DocsEditable()
2254 void bufferData(int target, data_OR_size, int usage) native; 2254 void bufferData(int target, data_OR_size, int usage) native;
2255 2255
2256 @JSName('bufferData') 2256 @JSName('bufferData')
2257 /** 2257 /**
2258 * Buffers the specified data. 2258 * Buffers the specified data.
2259 * 2259 *
2260 * This specific method is provided for WebGL API compatibility reasons, but 2260 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2261 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2261 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2262 * depending on your purposes. 2262 * depending on your purposes.
2263 */ 2263 */
2264 @DomName('WebGLRenderingContext.bufferData') 2264 @DomName('WebGLRenderingContext.bufferData')
2265 @DocsEditable() 2265 @DocsEditable()
2266 void bufferDataTyped(int target, TypedData data, int usage) native; 2266 void bufferDataTyped(int target, TypedData data, int usage) native;
2267 2267
2268 @JSName('bufferSubData') 2268 @JSName('bufferSubData')
2269 /** 2269 /**
2270 * Buffers the specified subset of data. 2270 * Buffers the specified subset of data.
2271 * 2271 *
2272 * This specific method is provided for WebGL API compatibility reasons, but 2272 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2273 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData] 2273 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2274 * depending on your purposes. 2274 * depending on your purposes.
2275 */ 2275 */
2276 @DomName('WebGLRenderingContext.bufferSubData') 2276 @DomName('WebGLRenderingContext.bufferSubData')
2277 @DocsEditable() 2277 @DocsEditable()
2278 void bufferSubByteData(int target, int offset, ByteBuffer data) native; 2278 void bufferSubByteData(int target, int offset, ByteBuffer data) native;
2279 2279
2280 /** 2280 /**
2281 * Buffers the specified subset of data. 2281 * Buffers the specified subset of data.
2282 * 2282 *
2283 * This specific method is provided for WebGL API compatibility reasons, but 2283 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2284 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData] 2284 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2285 * depending on your purposes. 2285 * depending on your purposes.
2286 */ 2286 */
2287 @DomName('WebGLRenderingContext.bufferSubData') 2287 @DomName('WebGLRenderingContext.bufferSubData')
2288 @DocsEditable() 2288 @DocsEditable()
2289 void bufferSubData(int target, int offset, data) native; 2289 void bufferSubData(int target, int offset, data) native;
2290 2290
2291 @JSName('bufferSubData') 2291 @JSName('bufferSubData')
2292 /** 2292 /**
2293 * Buffers the specified subset of data. 2293 * Buffers the specified subset of data.
2294 * 2294 *
2295 * This specific method is provided for WebGL API compatibility reasons, but 2295 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2296 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData] 2296 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2297 * depending on your purposes. 2297 * depending on your purposes.
2298 */ 2298 */
2299 @DomName('WebGLRenderingContext.bufferSubData') 2299 @DomName('WebGLRenderingContext.bufferSubData')
2300 @DocsEditable() 2300 @DocsEditable()
2301 void bufferSubDataTyped(int target, int offset, TypedData data) native; 2301 void bufferSubDataTyped(int target, int offset, TypedData data) native;
2302 2302
2303 @DomName('WebGLRenderingContext.checkFramebufferStatus') 2303 @DomName('WebGLRenderingContext.checkFramebufferStatus')
2304 @DocsEditable() 2304 @DocsEditable()
2305 int checkFramebufferStatus(int target) native; 2305 int checkFramebufferStatus(int target) native;
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2670 @DocsEditable() 2670 @DocsEditable()
2671 void stencilOp(int fail, int zfail, int zpass) native; 2671 void stencilOp(int fail, int zfail, int zpass) native;
2672 2672
2673 @DomName('WebGLRenderingContext.stencilOpSeparate') 2673 @DomName('WebGLRenderingContext.stencilOpSeparate')
2674 @DocsEditable() 2674 @DocsEditable()
2675 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 2675 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
2676 2676
2677 /** 2677 /**
2678 * Updates the currently bound texture to [data]. 2678 * Updates the currently bound texture to [data].
2679 * 2679 *
2680 * This specific method is provided for WebGL API compatibility reasons, but i t 2680 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2681 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2681 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2682 * (or for more specificity, the more specialized [texImage2DImageData], 2682 * (or for more specificity, the more specialized [texImage2DImageData],
2683 * [texImage2DCanvas], [texImage2DVideo]). 2683 * [texImage2DCanvas], [texImage2DVideo]).
2684 */ 2684 */
2685 @DomName('WebGLRenderingContext.texImage2D') 2685 @DomName('WebGLRenderingContext.texImage2D')
2686 @DocsEditable() 2686 @DocsEditable()
2687 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]) { 2687 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]) {
2688 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)) { 2688 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)) {
2689 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 2689 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
2690 return; 2690 return;
(...skipping 14 matching lines...) Expand all
2705 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) { 2705 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) {
2706 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2706 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2707 return; 2707 return;
2708 } 2708 }
2709 throw new ArgumentError("Incorrect number or type of arguments"); 2709 throw new ArgumentError("Incorrect number or type of arguments");
2710 } 2710 }
2711 @JSName('texImage2D') 2711 @JSName('texImage2D')
2712 /** 2712 /**
2713 * Updates the currently bound texture to [data]. 2713 * Updates the currently bound texture to [data].
2714 * 2714 *
2715 * This specific method is provided for WebGL API compatibility reasons, but i t 2715 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2716 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2716 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2717 * (or for more specificity, the more specialized [texImage2DImageData], 2717 * (or for more specificity, the more specialized [texImage2DImageData],
2718 * [texImage2DCanvas], [texImage2DVideo]). 2718 * [texImage2DCanvas], [texImage2DVideo]).
2719 */ 2719 */
2720 @DomName('WebGLRenderingContext.texImage2D') 2720 @DomName('WebGLRenderingContext.texImage2D')
2721 @DocsEditable() 2721 @DocsEditable()
2722 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, TypedData pixels) native; 2722 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, TypedData pixels) native;
2723 @JSName('texImage2D') 2723 @JSName('texImage2D')
2724 /** 2724 /**
2725 * Updates the currently bound texture to [data]. 2725 * Updates the currently bound texture to [data].
2726 * 2726 *
2727 * This specific method is provided for WebGL API compatibility reasons, but i t 2727 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2728 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2728 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2729 * (or for more specificity, the more specialized [texImage2DImageData], 2729 * (or for more specificity, the more specialized [texImage2DImageData],
2730 * [texImage2DCanvas], [texImage2DVideo]). 2730 * [texImage2DCanvas], [texImage2DVideo]).
2731 */ 2731 */
2732 @DomName('WebGLRenderingContext.texImage2D') 2732 @DomName('WebGLRenderingContext.texImage2D')
2733 @DocsEditable() 2733 @DocsEditable()
2734 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ; 2734 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ;
2735 @JSName('texImage2D') 2735 @JSName('texImage2D')
2736 /** 2736 /**
2737 * Updates the currently bound texture to [data]. 2737 * Updates the currently bound texture to [data].
2738 * 2738 *
2739 * This specific method is provided for WebGL API compatibility reasons, but i t 2739 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2740 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2740 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2741 * (or for more specificity, the more specialized [texImage2DImageData], 2741 * (or for more specificity, the more specialized [texImage2DImageData],
2742 * [texImage2DCanvas], [texImage2DVideo]). 2742 * [texImage2DCanvas], [texImage2DVideo]).
2743 */ 2743 */
2744 @DomName('WebGLRenderingContext.texImage2D') 2744 @DomName('WebGLRenderingContext.texImage2D')
2745 @DocsEditable() 2745 @DocsEditable()
2746 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native; 2746 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native;
2747 @JSName('texImage2D') 2747 @JSName('texImage2D')
2748 /** 2748 /**
2749 * Updates the currently bound texture to [data]. 2749 * Updates the currently bound texture to [data].
2750 * 2750 *
2751 * This specific method is provided for WebGL API compatibility reasons, but i t 2751 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2752 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2752 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2753 * (or for more specificity, the more specialized [texImage2DImageData], 2753 * (or for more specificity, the more specialized [texImage2DImageData],
2754 * [texImage2DCanvas], [texImage2DVideo]). 2754 * [texImage2DCanvas], [texImage2DVideo]).
2755 */ 2755 */
2756 @DomName('WebGLRenderingContext.texImage2D') 2756 @DomName('WebGLRenderingContext.texImage2D')
2757 @DocsEditable() 2757 @DocsEditable()
2758 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; 2758 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native;
2759 @JSName('texImage2D') 2759 @JSName('texImage2D')
2760 /** 2760 /**
2761 * Updates the currently bound texture to [data]. 2761 * Updates the currently bound texture to [data].
2762 * 2762 *
2763 * This specific method is provided for WebGL API compatibility reasons, but i t 2763 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2764 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2764 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2765 * (or for more specificity, the more specialized [texImage2DImageData], 2765 * (or for more specificity, the more specialized [texImage2DImageData],
2766 * [texImage2DCanvas], [texImage2DVideo]). 2766 * [texImage2DCanvas], [texImage2DVideo]).
2767 */ 2767 */
2768 @DomName('WebGLRenderingContext.texImage2D') 2768 @DomName('WebGLRenderingContext.texImage2D')
2769 @DocsEditable() 2769 @DocsEditable()
2770 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native; 2770 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native;
2771 2771
2772 @JSName('texImage2D') 2772 @JSName('texImage2D')
2773 /** 2773 /**
2774 * Updates the currently bound texture to [data]. 2774 * Updates the currently bound texture to [data].
2775 * 2775 *
2776 * This specific method is provided for WebGL API compatibility reasons, but i t 2776 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2777 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2777 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2778 * (or for more specificity, the more specialized [texImage2DImageData], 2778 * (or for more specificity, the more specialized [texImage2DImageData],
2779 * [texImage2DCanvas], [texImage2DVideo]). 2779 * [texImage2DCanvas], [texImage2DVideo]).
2780 */ 2780 */
2781 @DomName('WebGLRenderingContext.texImage2D') 2781 @DomName('WebGLRenderingContext.texImage2D')
2782 @DocsEditable() 2782 @DocsEditable()
2783 void texImage2DCanvas(int target, int level, int internalformat, int format, i nt type, CanvasElement canvas) native; 2783 void texImage2DCanvas(int target, int level, int internalformat, int format, i nt type, CanvasElement canvas) native;
2784 2784
2785 @JSName('texImage2D') 2785 @JSName('texImage2D')
2786 /** 2786 /**
2787 * Updates the currently bound texture to [data]. 2787 * Updates the currently bound texture to [data].
2788 * 2788 *
2789 * This specific method is provided for WebGL API compatibility reasons, but i t 2789 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2790 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2790 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2791 * (or for more specificity, the more specialized [texImage2DImageData], 2791 * (or for more specificity, the more specialized [texImage2DImageData],
2792 * [texImage2DCanvas], [texImage2DVideo]). 2792 * [texImage2DCanvas], [texImage2DVideo]).
2793 */ 2793 */
2794 @DomName('WebGLRenderingContext.texImage2D') 2794 @DomName('WebGLRenderingContext.texImage2D')
2795 @DocsEditable() 2795 @DocsEditable()
2796 void texImage2DImage(int target, int level, int internalformat, int format, in t type, ImageElement image) native; 2796 void texImage2DImage(int target, int level, int internalformat, int format, in t type, ImageElement image) native;
2797 2797
2798 /** 2798 /**
2799 * Updates the currently bound texture to [data]. 2799 * Updates the currently bound texture to [data].
2800 * 2800 *
2801 * This specific method is provided for WebGL API compatibility reasons, but i t 2801 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2802 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2802 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2803 * (or for more specificity, the more specialized [texImage2DImageData], 2803 * (or for more specificity, the more specialized [texImage2DImageData],
2804 * [texImage2DCanvas], [texImage2DVideo]). 2804 * [texImage2DCanvas], [texImage2DVideo]).
2805 */ 2805 */
2806 @DomName('WebGLRenderingContext.texImage2D') 2806 @DomName('WebGLRenderingContext.texImage2D')
2807 @DocsEditable() 2807 @DocsEditable()
2808 void texImage2DImageData(int target, int level, int internalformat, int format , int type, ImageData pixels) { 2808 void texImage2DImageData(int target, int level, int internalformat, int format , int type, ImageData pixels) {
2809 var pixels_1 = convertDartToNative_ImageData(pixels); 2809 var pixels_1 = convertDartToNative_ImageData(pixels);
2810 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1 ); 2810 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1 );
2811 return; 2811 return;
2812 } 2812 }
2813 @JSName('texImage2D') 2813 @JSName('texImage2D')
2814 /** 2814 /**
2815 * Updates the currently bound texture to [data]. 2815 * Updates the currently bound texture to [data].
2816 * 2816 *
2817 * This specific method is provided for WebGL API compatibility reasons, but i t 2817 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2818 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2818 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2819 * (or for more specificity, the more specialized [texImage2DImageData], 2819 * (or for more specificity, the more specialized [texImage2DImageData],
2820 * [texImage2DCanvas], [texImage2DVideo]). 2820 * [texImage2DCanvas], [texImage2DVideo]).
2821 */ 2821 */
2822 @DomName('WebGLRenderingContext.texImage2D') 2822 @DomName('WebGLRenderingContext.texImage2D')
2823 @DocsEditable() 2823 @DocsEditable()
2824 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel s) native; 2824 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel s) native;
2825 2825
2826 @JSName('texImage2D') 2826 @JSName('texImage2D')
2827 /** 2827 /**
2828 * Updates the currently bound texture to [data]. 2828 * Updates the currently bound texture to [data].
2829 * 2829 *
2830 * This specific method is provided for WebGL API compatibility reasons, but i t 2830 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2831 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2831 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2832 * (or for more specificity, the more specialized [texImage2DImageData], 2832 * (or for more specificity, the more specialized [texImage2DImageData],
2833 * [texImage2DCanvas], [texImage2DVideo]). 2833 * [texImage2DCanvas], [texImage2DVideo]).
2834 */ 2834 */
2835 @DomName('WebGLRenderingContext.texImage2D') 2835 @DomName('WebGLRenderingContext.texImage2D')
2836 @DocsEditable() 2836 @DocsEditable()
2837 void texImage2DVideo(int target, int level, int internalformat, int format, in t type, VideoElement video) native; 2837 void texImage2DVideo(int target, int level, int internalformat, int format, in t type, VideoElement video) native;
2838 2838
2839 @DomName('WebGLRenderingContext.texParameterf') 2839 @DomName('WebGLRenderingContext.texParameterf')
2840 @DocsEditable() 2840 @DocsEditable()
2841 void texParameterf(int target, int pname, num param) native; 2841 void texParameterf(int target, int pname, num param) native;
2842 2842
2843 @DomName('WebGLRenderingContext.texParameteri') 2843 @DomName('WebGLRenderingContext.texParameteri')
2844 @DocsEditable() 2844 @DocsEditable()
2845 void texParameteri(int target, int pname, int param) native; 2845 void texParameteri(int target, int pname, int param) native;
2846 2846
2847 /** 2847 /**
2848 * Updates a sub-rectangle of the currently bound texture to [data]. 2848 * Updates a sub-rectangle of the currently bound texture to [data].
2849 * 2849 *
2850 * This specific method is provided for WebGL API compatibility reasons, but i t 2850 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2851 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2851 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2852 * (or for more specificity, the more specialized [texSubImage2DImageData], 2852 * (or for more specificity, the more specialized [texSubImage2DImageData],
2853 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2853 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2854 */ 2854 */
2855 @DomName('WebGLRenderingContext.texSubImage2D') 2855 @DomName('WebGLRenderingContext.texSubImage2D')
2856 @DocsEditable() 2856 @DocsEditable()
2857 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]) { 2857 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]) {
2858 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)) { 2858 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)) {
2859 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 2859 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
2860 return; 2860 return;
(...skipping 14 matching lines...) Expand all
2875 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 ) { 2875 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 ) {
2876 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 2876 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2877 return; 2877 return;
2878 } 2878 }
2879 throw new ArgumentError("Incorrect number or type of arguments"); 2879 throw new ArgumentError("Incorrect number or type of arguments");
2880 } 2880 }
2881 @JSName('texSubImage2D') 2881 @JSName('texSubImage2D')
2882 /** 2882 /**
2883 * Updates a sub-rectangle of the currently bound texture to [data]. 2883 * Updates a sub-rectangle of the currently bound texture to [data].
2884 * 2884 *
2885 * This specific method is provided for WebGL API compatibility reasons, but i t 2885 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2886 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2886 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2887 * (or for more specificity, the more specialized [texSubImage2DImageData], 2887 * (or for more specificity, the more specialized [texSubImage2DImageData],
2888 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2888 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2889 */ 2889 */
2890 @DomName('WebGLRenderingContext.texSubImage2D') 2890 @DomName('WebGLRenderingContext.texSubImage2D')
2891 @DocsEditable() 2891 @DocsEditable()
2892 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, TypedData pixels) native; 2892 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, TypedData pixels) native;
2893 @JSName('texSubImage2D') 2893 @JSName('texSubImage2D')
2894 /** 2894 /**
2895 * Updates a sub-rectangle of the currently bound texture to [data]. 2895 * Updates a sub-rectangle of the currently bound texture to [data].
2896 * 2896 *
2897 * This specific method is provided for WebGL API compatibility reasons, but i t 2897 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2898 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2898 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2899 * (or for more specificity, the more specialized [texSubImage2DImageData], 2899 * (or for more specificity, the more specialized [texSubImage2DImageData],
2900 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2900 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2901 */ 2901 */
2902 @DomName('WebGLRenderingContext.texSubImage2D') 2902 @DomName('WebGLRenderingContext.texSubImage2D')
2903 @DocsEditable() 2903 @DocsEditable()
2904 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative; 2904 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative;
2905 @JSName('texSubImage2D') 2905 @JSName('texSubImage2D')
2906 /** 2906 /**
2907 * Updates a sub-rectangle of the currently bound texture to [data]. 2907 * Updates a sub-rectangle of the currently bound texture to [data].
2908 * 2908 *
2909 * This specific method is provided for WebGL API compatibility reasons, but i t 2909 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2910 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2910 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2911 * (or for more specificity, the more specialized [texSubImage2DImageData], 2911 * (or for more specificity, the more specialized [texSubImage2DImageData],
2912 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2912 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2913 */ 2913 */
2914 @DomName('WebGLRenderingContext.texSubImage2D') 2914 @DomName('WebGLRenderingContext.texSubImage2D')
2915 @DocsEditable() 2915 @DocsEditable()
2916 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native; 2916 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native;
2917 @JSName('texSubImage2D') 2917 @JSName('texSubImage2D')
2918 /** 2918 /**
2919 * Updates a sub-rectangle of the currently bound texture to [data]. 2919 * Updates a sub-rectangle of the currently bound texture to [data].
2920 * 2920 *
2921 * This specific method is provided for WebGL API compatibility reasons, but i t 2921 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2922 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2922 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2923 * (or for more specificity, the more specialized [texSubImage2DImageData], 2923 * (or for more specificity, the more specialized [texSubImage2DImageData],
2924 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2924 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2925 */ 2925 */
2926 @DomName('WebGLRenderingContext.texSubImage2D') 2926 @DomName('WebGLRenderingContext.texSubImage2D')
2927 @DocsEditable() 2927 @DocsEditable()
2928 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native; 2928 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native;
2929 @JSName('texSubImage2D') 2929 @JSName('texSubImage2D')
2930 /** 2930 /**
2931 * Updates a sub-rectangle of the currently bound texture to [data]. 2931 * Updates a sub-rectangle of the currently bound texture to [data].
2932 * 2932 *
2933 * This specific method is provided for WebGL API compatibility reasons, but i t 2933 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2934 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2934 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2935 * (or for more specificity, the more specialized [texSubImage2DImageData], 2935 * (or for more specificity, the more specialized [texSubImage2DImageData],
2936 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2936 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2937 */ 2937 */
2938 @DomName('WebGLRenderingContext.texSubImage2D') 2938 @DomName('WebGLRenderingContext.texSubImage2D')
2939 @DocsEditable() 2939 @DocsEditable()
2940 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native; 2940 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native;
2941 2941
2942 @JSName('texSubImage2D') 2942 @JSName('texSubImage2D')
2943 /** 2943 /**
2944 * Updates a sub-rectangle of the currently bound texture to [data]. 2944 * Updates a sub-rectangle of the currently bound texture to [data].
2945 * 2945 *
2946 * This specific method is provided for WebGL API compatibility reasons, but i t 2946 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2947 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2947 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2948 * (or for more specificity, the more specialized [texSubImage2DImageData], 2948 * (or for more specificity, the more specialized [texSubImage2DImageData],
2949 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2949 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2950 */ 2950 */
2951 @DomName('WebGLRenderingContext.texSubImage2D') 2951 @DomName('WebGLRenderingContext.texSubImage2D')
2952 @DocsEditable() 2952 @DocsEditable()
2953 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native; 2953 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native;
2954 2954
2955 @JSName('texSubImage2D') 2955 @JSName('texSubImage2D')
2956 /** 2956 /**
2957 * Updates a sub-rectangle of the currently bound texture to [data]. 2957 * Updates a sub-rectangle of the currently bound texture to [data].
2958 * 2958 *
2959 * This specific method is provided for WebGL API compatibility reasons, but i t 2959 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2960 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2960 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2961 * (or for more specificity, the more specialized [texSubImage2DImageData], 2961 * (or for more specificity, the more specialized [texSubImage2DImageData],
2962 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2962 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2963 */ 2963 */
2964 @DomName('WebGLRenderingContext.texSubImage2D') 2964 @DomName('WebGLRenderingContext.texSubImage2D')
2965 @DocsEditable() 2965 @DocsEditable()
2966 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f ormat, int type, ImageElement image) native; 2966 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f ormat, int type, ImageElement image) native;
2967 2967
2968 /** 2968 /**
2969 * Updates a sub-rectangle of the currently bound texture to [data]. 2969 * Updates a sub-rectangle of the currently bound texture to [data].
2970 * 2970 *
2971 * This specific method is provided for WebGL API compatibility reasons, but i t 2971 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2972 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2972 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2973 * (or for more specificity, the more specialized [texSubImage2DImageData], 2973 * (or for more specificity, the more specialized [texSubImage2DImageData],
2974 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2974 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2975 */ 2975 */
2976 @DomName('WebGLRenderingContext.texSubImage2D') 2976 @DomName('WebGLRenderingContext.texSubImage2D')
2977 @DocsEditable() 2977 @DocsEditable()
2978 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i nt format, int type, ImageData pixels) { 2978 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i nt format, int type, ImageData pixels) {
2979 var pixels_1 = convertDartToNative_ImageData(pixels); 2979 var pixels_1 = convertDartToNative_ImageData(pixels);
2980 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix els_1); 2980 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix els_1);
2981 return; 2981 return;
2982 } 2982 }
2983 @JSName('texSubImage2D') 2983 @JSName('texSubImage2D')
2984 /** 2984 /**
2985 * Updates a sub-rectangle of the currently bound texture to [data]. 2985 * Updates a sub-rectangle of the currently bound texture to [data].
2986 * 2986 *
2987 * This specific method is provided for WebGL API compatibility reasons, but i t 2987 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2988 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 2988 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2989 * (or for more specificity, the more specialized [texSubImage2DImageData], 2989 * (or for more specificity, the more specialized [texSubImage2DImageData],
2990 * [texSubImage2DCanvas], [texSubImage2DVideo]). 2990 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2991 */ 2991 */
2992 @DomName('WebGLRenderingContext.texSubImage2D') 2992 @DomName('WebGLRenderingContext.texSubImage2D')
2993 @DocsEditable() 2993 @DocsEditable()
2994 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels) native; 2994 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels) native;
2995 2995
2996 @JSName('texSubImage2D') 2996 @JSName('texSubImage2D')
2997 /** 2997 /**
2998 * Updates a sub-rectangle of the currently bound texture to [data]. 2998 * Updates a sub-rectangle of the currently bound texture to [data].
2999 * 2999 *
3000 * This specific method is provided for WebGL API compatibility reasons, but i t 3000 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3001 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3001 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3002 * (or for more specificity, the more specialized [texSubImage2DImageData], 3002 * (or for more specificity, the more specialized [texSubImage2DImageData],
3003 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3003 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3004 */ 3004 */
3005 @DomName('WebGLRenderingContext.texSubImage2D') 3005 @DomName('WebGLRenderingContext.texSubImage2D')
3006 @DocsEditable() 3006 @DocsEditable()
3007 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f ormat, int type, VideoElement video) native; 3007 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f ormat, int type, VideoElement video) native;
3008 3008
3009 @DomName('WebGLRenderingContext.uniform1f') 3009 @DomName('WebGLRenderingContext.uniform1f')
3010 @DocsEditable() 3010 @DocsEditable()
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
3235 3235
3236 3236
3237 @DocsEditable() 3237 @DocsEditable()
3238 @DomName('WebGLVertexArrayObjectOES') 3238 @DomName('WebGLVertexArrayObjectOES')
3239 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 3239 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
3240 @Experimental() // experimental 3240 @Experimental() // experimental
3241 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { 3241 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" {
3242 // To suppress missing implicit constructor warnings. 3242 // To suppress missing implicit constructor warnings.
3243 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } 3243 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
3244 } 3244 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698