OLD | NEW |
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'; | 7 import 'dart:_internal'; |
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 2368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2379 void blendEquationSeparate(int modeRGB, int modeAlpha) native; | 2379 void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
2380 | 2380 |
2381 @DomName('WebGLRenderingContext.blendFunc') | 2381 @DomName('WebGLRenderingContext.blendFunc') |
2382 @DocsEditable() | 2382 @DocsEditable() |
2383 void blendFunc(int sfactor, int dfactor) native; | 2383 void blendFunc(int sfactor, int dfactor) native; |
2384 | 2384 |
2385 @DomName('WebGLRenderingContext.blendFuncSeparate') | 2385 @DomName('WebGLRenderingContext.blendFuncSeparate') |
2386 @DocsEditable() | 2386 @DocsEditable() |
2387 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | 2387 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
2388 | 2388 |
| 2389 @JSName('bufferData') |
| 2390 /** |
| 2391 * Buffers the specified data. |
| 2392 * |
| 2393 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t |
| 2394 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
| 2395 * depending on your purposes. |
| 2396 */ |
| 2397 @DomName('WebGLRenderingContext.bufferData') |
| 2398 @DocsEditable() |
| 2399 void bufferByteData(int target, ByteBuffer data, int usage) native; |
| 2400 |
2389 /** | 2401 /** |
2390 * Buffers the specified data. | 2402 * Buffers the specified data. |
2391 * | 2403 * |
2392 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t | 2404 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t |
2393 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] | 2405 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
2394 * depending on your purposes. | 2406 * depending on your purposes. |
2395 */ | 2407 */ |
2396 @DomName('WebGLRenderingContext.bufferData') | 2408 @DomName('WebGLRenderingContext.bufferData') |
2397 @DocsEditable() | 2409 @DocsEditable() |
2398 void bufferData(int target, data_OR_size, int usage) native; | 2410 void bufferData(int target, data_OR_size, int usage) native; |
2399 | 2411 |
| 2412 @JSName('bufferData') |
| 2413 /** |
| 2414 * Buffers the specified data. |
| 2415 * |
| 2416 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t |
| 2417 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
| 2418 * depending on your purposes. |
| 2419 */ |
| 2420 @DomName('WebGLRenderingContext.bufferData') |
| 2421 @DocsEditable() |
| 2422 void bufferDataTyped(int target, TypedData data, int usage) native; |
| 2423 |
| 2424 @JSName('bufferSubData') |
| 2425 /** |
| 2426 * Buffers the specified subset of data. |
| 2427 * |
| 2428 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but |
| 2429 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] |
| 2430 * depending on your purposes. |
| 2431 */ |
| 2432 @DomName('WebGLRenderingContext.bufferSubData') |
| 2433 @DocsEditable() |
| 2434 void bufferSubByteData(int target, int offset, ByteBuffer data) native; |
| 2435 |
2400 /** | 2436 /** |
2401 * Buffers the specified subset of data. | 2437 * Buffers the specified subset of data. |
2402 * | 2438 * |
2403 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but | 2439 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but |
2404 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] | 2440 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] |
2405 * depending on your purposes. | 2441 * depending on your purposes. |
2406 */ | 2442 */ |
2407 @DomName('WebGLRenderingContext.bufferSubData') | 2443 @DomName('WebGLRenderingContext.bufferSubData') |
2408 @DocsEditable() | 2444 @DocsEditable() |
2409 void bufferSubData(int target, int offset, data) native; | 2445 void bufferSubData(int target, int offset, data) native; |
2410 | 2446 |
| 2447 @JSName('bufferSubData') |
| 2448 /** |
| 2449 * Buffers the specified subset of data. |
| 2450 * |
| 2451 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but |
| 2452 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] |
| 2453 * depending on your purposes. |
| 2454 */ |
| 2455 @DomName('WebGLRenderingContext.bufferSubData') |
| 2456 @DocsEditable() |
| 2457 void bufferSubDataTyped(int target, int offset, TypedData data) native; |
| 2458 |
2411 @DomName('WebGLRenderingContext.checkFramebufferStatus') | 2459 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
2412 @DocsEditable() | 2460 @DocsEditable() |
2413 int checkFramebufferStatus(int target) native; | 2461 int checkFramebufferStatus(int target) native; |
2414 | 2462 |
2415 @DomName('WebGLRenderingContext.clear') | 2463 @DomName('WebGLRenderingContext.clear') |
2416 @DocsEditable() | 2464 @DocsEditable() |
2417 void clear(int mask) native; | 2465 void clear(int mask) native; |
2418 | 2466 |
2419 @DomName('WebGLRenderingContext.clearColor') | 2467 @DomName('WebGLRenderingContext.clearColor') |
2420 @DocsEditable() | 2468 @DocsEditable() |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2870 * | 2918 * |
2871 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it | 2919 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
2872 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] | 2920 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
2873 * (or for more specificity, the more specialized [texImage2DImageData], | 2921 * (or for more specificity, the more specialized [texImage2DImageData], |
2874 * [texImage2DCanvas], [texImage2DVideo]). | 2922 * [texImage2DCanvas], [texImage2DVideo]). |
2875 */ | 2923 */ |
2876 @DomName('WebGLRenderingContext.texImage2D') | 2924 @DomName('WebGLRenderingContext.texImage2D') |
2877 @DocsEditable() | 2925 @DocsEditable() |
2878 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; | 2926 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; |
2879 | 2927 |
| 2928 @JSName('texImage2D') |
| 2929 /** |
| 2930 * Updates the currently bound texture to [data]. |
| 2931 * |
| 2932 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2933 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2934 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2935 * [texImage2DCanvas], [texImage2DVideo]). |
| 2936 */ |
| 2937 @DomName('WebGLRenderingContext.texImage2D') |
| 2938 @DocsEditable() |
| 2939 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native; |
| 2940 |
| 2941 @JSName('texImage2D') |
| 2942 /** |
| 2943 * Updates the currently bound texture to [data]. |
| 2944 * |
| 2945 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2946 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2947 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2948 * [texImage2DCanvas], [texImage2DVideo]). |
| 2949 */ |
| 2950 @DomName('WebGLRenderingContext.texImage2D') |
| 2951 @DocsEditable() |
| 2952 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native; |
| 2953 |
| 2954 /** |
| 2955 * Updates the currently bound texture to [data]. |
| 2956 * |
| 2957 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2958 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2959 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2960 * [texImage2DCanvas], [texImage2DVideo]). |
| 2961 */ |
| 2962 @DomName('WebGLRenderingContext.texImage2D') |
| 2963 @DocsEditable() |
| 2964 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) { |
| 2965 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 2966 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1
); |
| 2967 return; |
| 2968 } |
| 2969 @JSName('texImage2D') |
| 2970 /** |
| 2971 * Updates the currently bound texture to [data]. |
| 2972 * |
| 2973 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2974 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2975 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2976 * [texImage2DCanvas], [texImage2DVideo]). |
| 2977 */ |
| 2978 @DomName('WebGLRenderingContext.texImage2D') |
| 2979 @DocsEditable() |
| 2980 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel
s) native; |
| 2981 |
| 2982 @JSName('texImage2D') |
| 2983 /** |
| 2984 * Updates the currently bound texture to [data]. |
| 2985 * |
| 2986 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2987 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2988 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2989 * [texImage2DCanvas], [texImage2DVideo]). |
| 2990 */ |
| 2991 @DomName('WebGLRenderingContext.texImage2D') |
| 2992 @DocsEditable() |
| 2993 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native; |
| 2994 |
2880 @DomName('WebGLRenderingContext.texParameterf') | 2995 @DomName('WebGLRenderingContext.texParameterf') |
2881 @DocsEditable() | 2996 @DocsEditable() |
2882 void texParameterf(int target, int pname, num param) native; | 2997 void texParameterf(int target, int pname, num param) native; |
2883 | 2998 |
2884 @DomName('WebGLRenderingContext.texParameteri') | 2999 @DomName('WebGLRenderingContext.texParameteri') |
2885 @DocsEditable() | 3000 @DocsEditable() |
2886 void texParameteri(int target, int pname, int param) native; | 3001 void texParameteri(int target, int pname, int param) native; |
2887 | 3002 |
2888 /** | 3003 /** |
2889 * Updates a sub-rectangle of the currently bound texture to [data]. | 3004 * Updates a sub-rectangle of the currently bound texture to [data]. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2973 * | 3088 * |
2974 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it | 3089 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
2975 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] | 3090 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
2976 * (or for more specificity, the more specialized [texSubImage2DImageData], | 3091 * (or for more specificity, the more specialized [texSubImage2DImageData], |
2977 * [texSubImage2DCanvas], [texSubImage2DVideo]). | 3092 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
2978 */ | 3093 */ |
2979 @DomName('WebGLRenderingContext.texSubImage2D') | 3094 @DomName('WebGLRenderingContext.texSubImage2D') |
2980 @DocsEditable() | 3095 @DocsEditable() |
2981 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; | 3096 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; |
2982 | 3097 |
| 3098 @JSName('texSubImage2D') |
| 3099 /** |
| 3100 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3101 * |
| 3102 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3103 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3104 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3105 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3106 */ |
| 3107 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3108 @DocsEditable() |
| 3109 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native; |
| 3110 |
| 3111 @JSName('texSubImage2D') |
| 3112 /** |
| 3113 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3114 * |
| 3115 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3116 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3117 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3118 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3119 */ |
| 3120 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3121 @DocsEditable() |
| 3122 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native; |
| 3123 |
| 3124 /** |
| 3125 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3126 * |
| 3127 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3128 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3129 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3130 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3131 */ |
| 3132 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3133 @DocsEditable() |
| 3134 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i
nt format, int type, ImageData pixels) { |
| 3135 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 3136 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix
els_1); |
| 3137 return; |
| 3138 } |
| 3139 @JSName('texSubImage2D') |
| 3140 /** |
| 3141 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3142 * |
| 3143 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3144 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3145 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3146 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3147 */ |
| 3148 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3149 @DocsEditable() |
| 3150 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type,
pixels) native; |
| 3151 |
| 3152 @JSName('texSubImage2D') |
| 3153 /** |
| 3154 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3155 * |
| 3156 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3157 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3158 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3159 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3160 */ |
| 3161 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3162 @DocsEditable() |
| 3163 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native; |
| 3164 |
2983 @DomName('WebGLRenderingContext.uniform1f') | 3165 @DomName('WebGLRenderingContext.uniform1f') |
2984 @DocsEditable() | 3166 @DocsEditable() |
2985 void uniform1f(UniformLocation location, num x) native; | 3167 void uniform1f(UniformLocation location, num x) native; |
2986 | 3168 |
2987 @DomName('WebGLRenderingContext.uniform1fv') | 3169 @DomName('WebGLRenderingContext.uniform1fv') |
2988 @DocsEditable() | 3170 @DocsEditable() |
2989 void uniform1fv(UniformLocation location, v) native; | 3171 void uniform1fv(UniformLocation location, v) native; |
2990 | 3172 |
2991 @DomName('WebGLRenderingContext.uniform1i') | 3173 @DomName('WebGLRenderingContext.uniform1i') |
2992 @DocsEditable() | 3174 @DocsEditable() |
(...skipping 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5222 @DomName('WebGL2RenderingContext.blendFunc') | 5404 @DomName('WebGL2RenderingContext.blendFunc') |
5223 @DocsEditable() | 5405 @DocsEditable() |
5224 @Experimental() // untriaged | 5406 @Experimental() // untriaged |
5225 void blendFunc(int sfactor, int dfactor) native; | 5407 void blendFunc(int sfactor, int dfactor) native; |
5226 | 5408 |
5227 @DomName('WebGL2RenderingContext.blendFuncSeparate') | 5409 @DomName('WebGL2RenderingContext.blendFuncSeparate') |
5228 @DocsEditable() | 5410 @DocsEditable() |
5229 @Experimental() // untriaged | 5411 @Experimental() // untriaged |
5230 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; | 5412 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
5231 | 5413 |
| 5414 @JSName('bufferData') |
| 5415 @DomName('WebGL2RenderingContext.bufferData') |
| 5416 @DocsEditable() |
| 5417 @Experimental() // untriaged |
| 5418 void bufferByteData(int target, ByteBuffer data, int usage) native; |
| 5419 |
5232 @DomName('WebGL2RenderingContext.bufferData') | 5420 @DomName('WebGL2RenderingContext.bufferData') |
5233 @DocsEditable() | 5421 @DocsEditable() |
5234 @Experimental() // untriaged | 5422 @Experimental() // untriaged |
5235 void bufferData(int target, data_OR_size, int usage) native; | 5423 void bufferData(int target, data_OR_size, int usage) native; |
5236 | 5424 |
| 5425 @JSName('bufferData') |
| 5426 @DomName('WebGL2RenderingContext.bufferData') |
| 5427 @DocsEditable() |
| 5428 @Experimental() // untriaged |
| 5429 void bufferDataTyped(int target, TypedData data, int usage) native; |
| 5430 |
| 5431 @JSName('bufferSubData') |
| 5432 @DomName('WebGL2RenderingContext.bufferSubData') |
| 5433 @DocsEditable() |
| 5434 @Experimental() // untriaged |
| 5435 void bufferSubByteData(int target, int offset, ByteBuffer data) native; |
| 5436 |
5237 @DomName('WebGL2RenderingContext.bufferSubData') | 5437 @DomName('WebGL2RenderingContext.bufferSubData') |
5238 @DocsEditable() | 5438 @DocsEditable() |
5239 @Experimental() // untriaged | 5439 @Experimental() // untriaged |
5240 void bufferSubData(int target, int offset, data) native; | 5440 void bufferSubData(int target, int offset, data) native; |
5241 | 5441 |
| 5442 @JSName('bufferSubData') |
| 5443 @DomName('WebGL2RenderingContext.bufferSubData') |
| 5444 @DocsEditable() |
| 5445 @Experimental() // untriaged |
| 5446 void bufferSubDataTyped(int target, int offset, TypedData data) native; |
| 5447 |
5242 @DomName('WebGL2RenderingContext.checkFramebufferStatus') | 5448 @DomName('WebGL2RenderingContext.checkFramebufferStatus') |
5243 @DocsEditable() | 5449 @DocsEditable() |
5244 @Experimental() // untriaged | 5450 @Experimental() // untriaged |
5245 int checkFramebufferStatus(int target) native; | 5451 int checkFramebufferStatus(int target) native; |
5246 | 5452 |
5247 @DomName('WebGL2RenderingContext.clear') | 5453 @DomName('WebGL2RenderingContext.clear') |
5248 @DocsEditable() | 5454 @DocsEditable() |
5249 @Experimental() // untriaged | 5455 @Experimental() // untriaged |
5250 void clear(int mask) native; | 5456 void clear(int mask) native; |
5251 | 5457 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5727 @DomName('WebGL2RenderingContext.texImage2D') | 5933 @DomName('WebGL2RenderingContext.texImage2D') |
5728 @DocsEditable() | 5934 @DocsEditable() |
5729 @Experimental() // untriaged | 5935 @Experimental() // untriaged |
5730 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; | 5936 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; |
5731 @JSName('texImage2D') | 5937 @JSName('texImage2D') |
5732 @DomName('WebGL2RenderingContext.texImage2D') | 5938 @DomName('WebGL2RenderingContext.texImage2D') |
5733 @DocsEditable() | 5939 @DocsEditable() |
5734 @Experimental() // untriaged | 5940 @Experimental() // untriaged |
5735 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; | 5941 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; |
5736 | 5942 |
| 5943 @JSName('texImage2D') |
| 5944 @DomName('WebGL2RenderingContext.texImage2D') |
| 5945 @DocsEditable() |
| 5946 @Experimental() // untriaged |
| 5947 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native; |
| 5948 |
| 5949 @JSName('texImage2D') |
| 5950 @DomName('WebGL2RenderingContext.texImage2D') |
| 5951 @DocsEditable() |
| 5952 @Experimental() // untriaged |
| 5953 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native; |
| 5954 |
| 5955 @DomName('WebGL2RenderingContext.texImage2D') |
| 5956 @DocsEditable() |
| 5957 @Experimental() // untriaged |
| 5958 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) { |
| 5959 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 5960 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1
); |
| 5961 return; |
| 5962 } |
| 5963 @JSName('texImage2D') |
| 5964 @DomName('WebGL2RenderingContext.texImage2D') |
| 5965 @DocsEditable() |
| 5966 @Experimental() // untriaged |
| 5967 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel
s) native; |
| 5968 |
| 5969 @JSName('texImage2D') |
| 5970 @DomName('WebGL2RenderingContext.texImage2D') |
| 5971 @DocsEditable() |
| 5972 @Experimental() // untriaged |
| 5973 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native; |
| 5974 |
5737 @DomName('WebGL2RenderingContext.texParameterf') | 5975 @DomName('WebGL2RenderingContext.texParameterf') |
5738 @DocsEditable() | 5976 @DocsEditable() |
5739 @Experimental() // untriaged | 5977 @Experimental() // untriaged |
5740 void texParameterf(int target, int pname, num param) native; | 5978 void texParameterf(int target, int pname, num param) native; |
5741 | 5979 |
5742 @DomName('WebGL2RenderingContext.texParameteri') | 5980 @DomName('WebGL2RenderingContext.texParameteri') |
5743 @DocsEditable() | 5981 @DocsEditable() |
5744 @Experimental() // untriaged | 5982 @Experimental() // untriaged |
5745 void texParameteri(int target, int pname, int param) native; | 5983 void texParameteri(int target, int pname, int param) native; |
5746 | 5984 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5790 @DomName('WebGL2RenderingContext.texSubImage2D') | 6028 @DomName('WebGL2RenderingContext.texSubImage2D') |
5791 @DocsEditable() | 6029 @DocsEditable() |
5792 @Experimental() // untriaged | 6030 @Experimental() // untriaged |
5793 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native; | 6031 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native; |
5794 @JSName('texSubImage2D') | 6032 @JSName('texSubImage2D') |
5795 @DomName('WebGL2RenderingContext.texSubImage2D') | 6033 @DomName('WebGL2RenderingContext.texSubImage2D') |
5796 @DocsEditable() | 6034 @DocsEditable() |
5797 @Experimental() // untriaged | 6035 @Experimental() // untriaged |
5798 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; | 6036 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; |
5799 | 6037 |
| 6038 @JSName('texSubImage2D') |
| 6039 @DomName('WebGL2RenderingContext.texSubImage2D') |
| 6040 @DocsEditable() |
| 6041 @Experimental() // untriaged |
| 6042 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native; |
| 6043 |
| 6044 @JSName('texSubImage2D') |
| 6045 @DomName('WebGL2RenderingContext.texSubImage2D') |
| 6046 @DocsEditable() |
| 6047 @Experimental() // untriaged |
| 6048 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native; |
| 6049 |
| 6050 @DomName('WebGL2RenderingContext.texSubImage2D') |
| 6051 @DocsEditable() |
| 6052 @Experimental() // untriaged |
| 6053 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i
nt format, int type, ImageData pixels) { |
| 6054 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 6055 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix
els_1); |
| 6056 return; |
| 6057 } |
| 6058 @JSName('texSubImage2D') |
| 6059 @DomName('WebGL2RenderingContext.texSubImage2D') |
| 6060 @DocsEditable() |
| 6061 @Experimental() // untriaged |
| 6062 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type,
pixels) native; |
| 6063 |
| 6064 @JSName('texSubImage2D') |
| 6065 @DomName('WebGL2RenderingContext.texSubImage2D') |
| 6066 @DocsEditable() |
| 6067 @Experimental() // untriaged |
| 6068 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native; |
| 6069 |
5800 @DomName('WebGL2RenderingContext.uniform1f') | 6070 @DomName('WebGL2RenderingContext.uniform1f') |
5801 @DocsEditable() | 6071 @DocsEditable() |
5802 @Experimental() // untriaged | 6072 @Experimental() // untriaged |
5803 void uniform1f(UniformLocation location, num x) native; | 6073 void uniform1f(UniformLocation location, num x) native; |
5804 | 6074 |
5805 @DomName('WebGL2RenderingContext.uniform1fv') | 6075 @DomName('WebGL2RenderingContext.uniform1fv') |
5806 @DocsEditable() | 6076 @DocsEditable() |
5807 @Experimental() // untriaged | 6077 @Experimental() // untriaged |
5808 void uniform1fv(UniformLocation location, v) native; | 6078 void uniform1fv(UniformLocation location, v) native; |
5809 | 6079 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6098 // BSD-style license that can be found in the LICENSE file. | 6368 // BSD-style license that can be found in the LICENSE file. |
6099 | 6369 |
6100 | 6370 |
6101 @DocsEditable() | 6371 @DocsEditable() |
6102 @DomName('WebGLRenderingContextBase') | 6372 @DomName('WebGLRenderingContextBase') |
6103 @Experimental() // untriaged | 6373 @Experimental() // untriaged |
6104 abstract class _WebGLRenderingContextBase extends Interceptor { | 6374 abstract class _WebGLRenderingContextBase extends Interceptor { |
6105 // To suppress missing implicit constructor warnings. | 6375 // To suppress missing implicit constructor warnings. |
6106 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } | 6376 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } |
6107 } | 6377 } |
OLD | NEW |