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

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

Issue 1750283002: Revert "Test sdk/lib regen for dart2js" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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'; 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 498 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
499 @DocsEditable() 499 @DocsEditable()
500 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 500 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
501 } 501 }
502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
503 // for details. All rights reserved. Use of this source code is governed by a 503 // for details. All rights reserved. Use of this source code is governed by a
504 // BSD-style license that can be found in the LICENSE file. 504 // BSD-style license that can be found in the LICENSE file.
505 505
506 506
507 @DocsEditable() 507 @DocsEditable()
508 /**
509 * The properties of a WebGL rendering context.
510 *
511 * If [alpha] is `true`, then the context has an alpha channel.
512 *
513 * If [antialias] is `true`, then antialiasing is performed by the browser, but
514 * only if the browser's implementation of WebGL supports antialiasing.
515 *
516 * If [depth] is `true`, then the context has a depth buffer of at least 16
517 * bits.
518 *
519 * If [premultipliedAlpha] is `true`, then the context's colors are assumed to
520 * be premultiplied. This means that color values are assumed to have been
521 * multiplied by their alpha values. If [alpha] is `false`, then this flag is
522 * ignored.
523 *
524 * If [preserveDrawingBuffer] is `false`, then all contents of the context are
525 * cleared. If `true`, then all values will remain until changed or cleared.
526 *
527 * If [stencil] is `true`, then the context has a stencil buffer of at least 8
528 * bits.
529 */
530 @DomName('WebGLContextAttributes')
531 @Unstable()
532 @Native("WebGLContextAttributes")
533 class ContextAttributes extends Interceptor {
534 // To suppress missing implicit constructor warnings.
535 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); }
536
537 @DomName('WebGLContextAttributes.alpha')
538 @DocsEditable()
539 bool alpha;
540
541 @DomName('WebGLContextAttributes.antialias')
542 @DocsEditable()
543 bool antialias;
544
545 @DomName('WebGLContextAttributes.depth')
546 @DocsEditable()
547 bool depth;
548
549 @DomName('WebGLContextAttributes.failIfMajorPerformanceCaveat')
550 @DocsEditable()
551 @Experimental() // untriaged
552 bool failIfMajorPerformanceCaveat;
553
554 @DomName('WebGLContextAttributes.premultipliedAlpha')
555 @DocsEditable()
556 bool premultipliedAlpha;
557
558 @DomName('WebGLContextAttributes.preserveDrawingBuffer')
559 @DocsEditable()
560 bool preserveDrawingBuffer;
561
562 @DomName('WebGLContextAttributes.stencil')
563 @DocsEditable()
564 bool stencil;
565 }
566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
567 // for details. All rights reserved. Use of this source code is governed by a
568 // BSD-style license that can be found in the LICENSE file.
569
570
571 @DocsEditable()
508 @DomName('WebGLContextEvent') 572 @DomName('WebGLContextEvent')
509 @Unstable() 573 @Unstable()
510 @Native("WebGLContextEvent") 574 @Native("WebGLContextEvent")
511 class ContextEvent extends Event { 575 class ContextEvent extends Event {
512 // To suppress missing implicit constructor warnings. 576 // To suppress missing implicit constructor warnings.
513 factory ContextEvent._() { throw new UnsupportedError("Not supported"); } 577 factory ContextEvent._() { throw new UnsupportedError("Not supported"); }
514 578
515 @DomName('WebGLContextEvent.WebGLContextEvent')
516 @DocsEditable()
517 factory ContextEvent(String type, [Map eventInit]) {
518 if (eventInit != null) {
519 var eventInit_1 = convertDartToNative_Dictionary(eventInit);
520 return ContextEvent._create_1(type, eventInit_1);
521 }
522 return ContextEvent._create_2(type);
523 }
524 static ContextEvent _create_1(type, eventInit) => JS('ContextEvent', 'new WebG LContextEvent(#,#)', type, eventInit);
525 static ContextEvent _create_2(type) => JS('ContextEvent', 'new WebGLContextEve nt(#)', type);
526
527 @DomName('WebGLContextEvent.statusMessage') 579 @DomName('WebGLContextEvent.statusMessage')
528 @DocsEditable() 580 @DocsEditable()
529 final String statusMessage; 581 final String statusMessage;
530 } 582 }
531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
532 // for details. All rights reserved. Use of this source code is governed by a 584 // for details. All rights reserved. Use of this source code is governed by a
533 // BSD-style license that can be found in the LICENSE file. 585 // BSD-style license that can be found in the LICENSE file.
534 586
535 587
536 @DocsEditable() 588 @DocsEditable()
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 @DomName('WebGLDrawBuffers.drawBuffersWEBGL') 792 @DomName('WebGLDrawBuffers.drawBuffersWEBGL')
741 @DocsEditable() 793 @DocsEditable()
742 void drawBuffersWebgl(List<int> buffers) native; 794 void drawBuffersWebgl(List<int> buffers) native;
743 } 795 }
744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 796 // 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 797 // 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. 798 // BSD-style license that can be found in the LICENSE file.
747 799
748 800
749 @DocsEditable() 801 @DocsEditable()
750 @DomName('EXTsRGB')
751 @Experimental() // untriaged
752 @Native("EXTsRGB")
753 class EXTsRgb extends Interceptor {
754 // To suppress missing implicit constructor warnings.
755 factory EXTsRgb._() { throw new UnsupportedError("Not supported"); }
756
757 @DomName('EXTsRGB.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT')
758 @DocsEditable()
759 @Experimental() // untriaged
760 static const int FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210;
761
762 @DomName('EXTsRGB.SRGB8_ALPHA8_EXT')
763 @DocsEditable()
764 @Experimental() // untriaged
765 static const int SRGB8_ALPHA8_EXT = 0x8C43;
766
767 @DomName('EXTsRGB.SRGB_ALPHA_EXT')
768 @DocsEditable()
769 @Experimental() // untriaged
770 static const int SRGB_ALPHA_EXT = 0x8C42;
771
772 @DomName('EXTsRGB.SRGB_EXT')
773 @DocsEditable()
774 @Experimental() // untriaged
775 static const int SRGB_EXT = 0x8C40;
776 }
777 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
778 // for details. All rights reserved. Use of this source code is governed by a
779 // BSD-style license that can be found in the LICENSE file.
780
781
782 @DocsEditable()
783 @DomName('EXTBlendMinMax') 802 @DomName('EXTBlendMinMax')
784 @Experimental() // untriaged 803 @Experimental() // untriaged
785 @Native("EXTBlendMinMax") 804 @Native("EXTBlendMinMax")
786 class ExtBlendMinMax extends Interceptor { 805 class ExtBlendMinMax extends Interceptor {
787 // To suppress missing implicit constructor warnings. 806 // To suppress missing implicit constructor warnings.
788 factory ExtBlendMinMax._() { throw new UnsupportedError("Not supported"); } 807 factory ExtBlendMinMax._() { throw new UnsupportedError("Not supported"); }
789 808
790 @DomName('EXTBlendMinMax.MAX_EXT') 809 @DomName('EXTBlendMinMax.MAX_EXT')
791 @DocsEditable() 810 @DocsEditable()
792 @Experimental() // untriaged 811 @Experimental() // untriaged
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 // To suppress missing implicit constructor warnings. 1006 // To suppress missing implicit constructor warnings.
988 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported") ; } 1007 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported") ; }
989 1008
990 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 1009 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
991 @DocsEditable() 1010 @DocsEditable()
992 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 1011 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
993 1012
994 @JSName('bindVertexArrayOES') 1013 @JSName('bindVertexArrayOES')
995 @DomName('OESVertexArrayObject.bindVertexArrayOES') 1014 @DomName('OESVertexArrayObject.bindVertexArrayOES')
996 @DocsEditable() 1015 @DocsEditable()
997 void bindVertexArray(VertexArrayObjectOes arrayObject) native; 1016 void bindVertexArray(VertexArrayObject arrayObject) native;
998 1017
999 @JSName('createVertexArrayOES') 1018 @JSName('createVertexArrayOES')
1000 @DomName('OESVertexArrayObject.createVertexArrayOES') 1019 @DomName('OESVertexArrayObject.createVertexArrayOES')
1001 @DocsEditable() 1020 @DocsEditable()
1002 VertexArrayObjectOes createVertexArray() native; 1021 VertexArrayObject createVertexArray() native;
1003 1022
1004 @JSName('deleteVertexArrayOES') 1023 @JSName('deleteVertexArrayOES')
1005 @DomName('OESVertexArrayObject.deleteVertexArrayOES') 1024 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
1006 @DocsEditable() 1025 @DocsEditable()
1007 void deleteVertexArray(VertexArrayObjectOes arrayObject) native; 1026 void deleteVertexArray(VertexArrayObject arrayObject) native;
1008 1027
1009 @JSName('isVertexArrayOES') 1028 @JSName('isVertexArrayOES')
1010 @DomName('OESVertexArrayObject.isVertexArrayOES') 1029 @DomName('OESVertexArrayObject.isVertexArrayOES')
1011 @DocsEditable() 1030 @DocsEditable()
1012 bool isVertexArray(VertexArrayObjectOes arrayObject) native; 1031 bool isVertexArray(VertexArrayObject arrayObject) native;
1013 } 1032 }
1014 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1015 // for details. All rights reserved. Use of this source code is governed by a 1034 // for details. All rights reserved. Use of this source code is governed by a
1016 // BSD-style license that can be found in the LICENSE file. 1035 // BSD-style license that can be found in the LICENSE file.
1017 1036
1018 1037
1019 @DocsEditable() 1038 @DocsEditable()
1020 @DomName('WebGLProgram') 1039 @DomName('WebGLProgram')
1021 @Unstable() 1040 @Unstable()
1022 @Native("WebGLProgram") 1041 @Native("WebGLProgram")
1023 class Program extends Interceptor { 1042 class Program extends Interceptor {
1024 // To suppress missing implicit constructor warnings. 1043 // To suppress missing implicit constructor warnings.
1025 factory Program._() { throw new UnsupportedError("Not supported"); } 1044 factory Program._() { throw new UnsupportedError("Not supported"); }
1026 } 1045 }
1027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1028 // for details. All rights reserved. Use of this source code is governed by a 1047 // for details. All rights reserved. Use of this source code is governed by a
1029 // BSD-style license that can be found in the LICENSE file. 1048 // BSD-style license that can be found in the LICENSE file.
1030 1049
1031 1050
1032 @DocsEditable() 1051 @DocsEditable()
1033 @DomName('WebGLQuery')
1034 @Experimental() // untriaged
1035 @Native("WebGLQuery")
1036 class Query extends Interceptor {
1037 // To suppress missing implicit constructor warnings.
1038 factory Query._() { throw new UnsupportedError("Not supported"); }
1039 }
1040 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1041 // for details. All rights reserved. Use of this source code is governed by a
1042 // BSD-style license that can be found in the LICENSE file.
1043
1044
1045 @DocsEditable()
1046 @DomName('WebGLRenderbuffer') 1052 @DomName('WebGLRenderbuffer')
1047 @Unstable() 1053 @Unstable()
1048 @Native("WebGLRenderbuffer") 1054 @Native("WebGLRenderbuffer")
1049 class Renderbuffer extends Interceptor { 1055 class Renderbuffer extends Interceptor {
1050 // To suppress missing implicit constructor warnings. 1056 // To suppress missing implicit constructor warnings.
1051 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); } 1057 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); }
1052 } 1058 }
1053 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1059 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
1054 // for details. All rights reserved. Use of this source code is governed by a 1060 // for details. All rights reserved. Use of this source code is governed by a
1055 // BSD-style license that can be found in the LICENSE file. 1061 // BSD-style license that can be found in the LICENSE file.
1056 1062
1057 1063
1058 @DomName('WebGLRenderingContext') 1064 @DomName('WebGLRenderingContext')
1059 @SupportedBrowser(SupportedBrowser.CHROME) 1065 @SupportedBrowser(SupportedBrowser.CHROME)
1060 @SupportedBrowser(SupportedBrowser.FIREFOX) 1066 @SupportedBrowser(SupportedBrowser.FIREFOX)
1061 @Experimental() 1067 @Experimental()
1062 @Unstable() 1068 @Unstable()
1063 @Native("WebGLRenderingContext") 1069 @Native("WebGLRenderingContext")
1064 class RenderingContext extends Interceptor implements CanvasRenderingContext { 1070 class RenderingContext extends Interceptor implements CanvasRenderingContext {
1065 // To suppress missing implicit constructor warnings. 1071 // To suppress missing implicit constructor warnings.
1066 factory RenderingContext._() { throw new UnsupportedError("Not supported"); } 1072 factory RenderingContext._() { throw new UnsupportedError("Not supported"); }
1067 1073
1068 /// Checks if this type is supported on the current platform. 1074 /// Checks if this type is supported on the current platform.
1069 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); 1075 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
1070 1076
1071 @DomName('WebGLRenderingContext.getBufferParameter')
1072 @DocsEditable()
1073 @Creates('int|Null')
1074 @Returns('int|Null')
1075 Object getBufferParameter(int target, int pname) native;
1076
1077 @DomName('WebGLRenderingContext.getExtension')
1078 @DocsEditable()
1079 Object getExtension(String name) native;
1080
1081 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
1082 @DocsEditable()
1083 @Creates('int|Renderbuffer|Texture|Null')
1084 @Returns('int|Renderbuffer|Texture|Null')
1085 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
1086
1087 @DomName('WebGLRenderingContext.getParameter')
1088 @DocsEditable()
1089 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List|Framebuffer|Renderbuffer|Texture')
1090 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List|Framebuffer|Renderbuffer|Texture')
1091 Object getParameter(int pname) native;
1092
1093 @DomName('WebGLRenderingContext.getProgramParameter')
1094 @DocsEditable()
1095 @Creates('int|bool|Null')
1096 @Returns('int|bool|Null')
1097 Object getProgramParameter(Program program, int pname) native;
1098
1099 @DomName('WebGLRenderingContext.getRenderbufferParameter')
1100 @DocsEditable()
1101 @Creates('int|Null')
1102 @Returns('int|Null')
1103 Object getRenderbufferParameter(int target, int pname) native;
1104
1105 @DomName('WebGLRenderingContext.getShaderParameter')
1106 @DocsEditable()
1107 @Creates('int|bool|Null')
1108 @Returns('int|bool|Null')
1109 Object getShaderParameter(Shader shader, int pname) native;
1110
1111 @DomName('WebGLRenderingContext.getTexParameter')
1112 @DocsEditable()
1113 @Creates('int|Null')
1114 @Returns('int|Null')
1115 Object getTexParameter(int target, int pname) native;
1116
1117 @DomName('WebGLRenderingContext.getVertexAttrib')
1118 @DocsEditable()
1119 @Creates('Null|num|bool|NativeFloat32List|Buffer')
1120 @Returns('Null|num|bool|NativeFloat32List|Buffer')
1121 Object getVertexAttrib(int index, int pname) native;
1122
1123 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') 1077 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES')
1124 @DocsEditable() 1078 @DocsEditable()
1125 static const int ACTIVE_ATTRIBUTES = 0x8B89; 1079 static const int ACTIVE_ATTRIBUTES = 0x8B89;
1126 1080
1127 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') 1081 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE')
1128 @DocsEditable() 1082 @DocsEditable()
1129 static const int ACTIVE_TEXTURE = 0x84E0; 1083 static const int ACTIVE_TEXTURE = 0x84E0;
1130 1084
1131 @DomName('WebGLRenderingContext.ACTIVE_UNIFORMS') 1085 @DomName('WebGLRenderingContext.ACTIVE_UNIFORMS')
1132 @DocsEditable() 1086 @DocsEditable()
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 @DocsEditable() 2264 @DocsEditable()
2311 static const int ZERO = 0; 2265 static const int ZERO = 0;
2312 2266
2313 // From WebGLRenderingContextBase 2267 // From WebGLRenderingContextBase
2314 2268
2315 @DomName('WebGLRenderingContext.canvas') 2269 @DomName('WebGLRenderingContext.canvas')
2316 @DocsEditable() 2270 @DocsEditable()
2317 @Experimental() // untriaged 2271 @Experimental() // untriaged
2318 final CanvasElement canvas; 2272 final CanvasElement canvas;
2319 2273
2274 @DomName('WebGLRenderingContext.drawingBufferHeight')
2275 @DocsEditable()
2276 final int drawingBufferHeight;
2277
2278 @DomName('WebGLRenderingContext.drawingBufferWidth')
2279 @DocsEditable()
2280 final int drawingBufferWidth;
2281
2320 @DomName('WebGLRenderingContext.activeTexture') 2282 @DomName('WebGLRenderingContext.activeTexture')
2321 @DocsEditable() 2283 @DocsEditable()
2322 void activeTexture(int texture) native; 2284 void activeTexture(int texture) native;
2323 2285
2324 @DomName('WebGLRenderingContext.attachShader') 2286 @DomName('WebGLRenderingContext.attachShader')
2325 @DocsEditable() 2287 @DocsEditable()
2326 void attachShader(Program program, Shader shader) native; 2288 void attachShader(Program program, Shader shader) native;
2327 2289
2290 @DomName('WebGLRenderingContext.bindAttribLocation')
2291 @DocsEditable()
2292 void bindAttribLocation(Program program, int index, String name) native;
2293
2328 @DomName('WebGLRenderingContext.bindBuffer') 2294 @DomName('WebGLRenderingContext.bindBuffer')
2329 @DocsEditable() 2295 @DocsEditable()
2330 void bindBuffer(int target, Buffer buffer) native; 2296 void bindBuffer(int target, Buffer buffer) native;
2331 2297
2332 @DomName('WebGLRenderingContext.bindFramebuffer') 2298 @DomName('WebGLRenderingContext.bindFramebuffer')
2333 @DocsEditable() 2299 @DocsEditable()
2334 void bindFramebuffer(int target, Framebuffer framebuffer) native; 2300 void bindFramebuffer(int target, Framebuffer framebuffer) native;
2335 2301
2336 @DomName('WebGLRenderingContext.bindRenderbuffer') 2302 @DomName('WebGLRenderingContext.bindRenderbuffer')
2337 @DocsEditable() 2303 @DocsEditable()
2338 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native; 2304 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native;
2339 2305
2340 @DomName('WebGLRenderingContext.bindTexture') 2306 @DomName('WebGLRenderingContext.bindTexture')
2341 @DocsEditable() 2307 @DocsEditable()
2342 void bindTexture(int target, Texture texture) native; 2308 void bindTexture(int target, Texture texture) native;
2343 2309
2310 @DomName('WebGLRenderingContext.blendColor')
2311 @DocsEditable()
2312 void blendColor(num red, num green, num blue, num alpha) native;
2313
2344 @DomName('WebGLRenderingContext.blendEquation') 2314 @DomName('WebGLRenderingContext.blendEquation')
2345 @DocsEditable() 2315 @DocsEditable()
2346 void blendEquation(int mode) native; 2316 void blendEquation(int mode) native;
2347 2317
2348 @DomName('WebGLRenderingContext.blendEquationSeparate') 2318 @DomName('WebGLRenderingContext.blendEquationSeparate')
2349 @DocsEditable() 2319 @DocsEditable()
2350 void blendEquationSeparate(int modeRGB, int modeAlpha) native; 2320 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
2351 2321
2352 @DomName('WebGLRenderingContext.blendFunc') 2322 @DomName('WebGLRenderingContext.blendFunc')
2353 @DocsEditable() 2323 @DocsEditable()
2354 void blendFunc(int sfactor, int dfactor) native; 2324 void blendFunc(int sfactor, int dfactor) native;
2355 2325
2356 @DomName('WebGLRenderingContext.blendFuncSeparate') 2326 @DomName('WebGLRenderingContext.blendFuncSeparate')
2357 @DocsEditable() 2327 @DocsEditable()
2358 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 2328 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
2359 2329
2330 @JSName('bufferData')
2331 /**
2332 * Buffers the specified data.
2333 *
2334 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2335 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2336 * depending on your purposes.
2337 */
2338 @DomName('WebGLRenderingContext.bufferData')
2339 @DocsEditable()
2340 void bufferByteData(int target, ByteBuffer data, int usage) native;
2341
2360 /** 2342 /**
2361 * Buffers the specified data. 2343 * Buffers the specified data.
2362 * 2344 *
2345 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2346 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2347 * depending on your purposes.
2348 */
2349 @DomName('WebGLRenderingContext.bufferData')
2350 @DocsEditable()
2351 void bufferData(int target, data_OR_size, int usage) native;
2352
2353 @JSName('bufferData')
2354 /**
2355 * Buffers the specified data.
2356 *
2363 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t 2357 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2364 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2358 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2365 * depending on your purposes. 2359 * depending on your purposes.
2366 */ 2360 */
2367 @DomName('WebGLRenderingContext.bufferData') 2361 @DomName('WebGLRenderingContext.bufferData')
2368 @DocsEditable() 2362 @DocsEditable()
2369 void bufferData(int target, data, int usage) native; 2363 void bufferDataTyped(int target, TypedData data, int usage) native;
2364
2365 @JSName('bufferSubData')
2366 /**
2367 * Buffers the specified subset of data.
2368 *
2369 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2370 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2371 * depending on your purposes.
2372 */
2373 @DomName('WebGLRenderingContext.bufferSubData')
2374 @DocsEditable()
2375 void bufferSubByteData(int target, int offset, ByteBuffer data) native;
2376
2377 /**
2378 * Buffers the specified subset of data.
2379 *
2380 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2381 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2382 * depending on your purposes.
2383 */
2384 @DomName('WebGLRenderingContext.bufferSubData')
2385 @DocsEditable()
2386 void bufferSubData(int target, int offset, data) native;
2387
2388 @JSName('bufferSubData')
2389 /**
2390 * Buffers the specified subset of data.
2391 *
2392 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2393 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2394 * depending on your purposes.
2395 */
2396 @DomName('WebGLRenderingContext.bufferSubData')
2397 @DocsEditable()
2398 void bufferSubDataTyped(int target, int offset, TypedData data) native;
2370 2399
2371 @DomName('WebGLRenderingContext.checkFramebufferStatus') 2400 @DomName('WebGLRenderingContext.checkFramebufferStatus')
2372 @DocsEditable() 2401 @DocsEditable()
2373 int checkFramebufferStatus(int target) native; 2402 int checkFramebufferStatus(int target) native;
2374 2403
2404 @DomName('WebGLRenderingContext.clear')
2405 @DocsEditable()
2406 void clear(int mask) native;
2407
2408 @DomName('WebGLRenderingContext.clearColor')
2409 @DocsEditable()
2410 void clearColor(num red, num green, num blue, num alpha) native;
2411
2412 @DomName('WebGLRenderingContext.clearDepth')
2413 @DocsEditable()
2414 void clearDepth(num depth) native;
2415
2416 @DomName('WebGLRenderingContext.clearStencil')
2417 @DocsEditable()
2418 void clearStencil(int s) native;
2419
2420 @DomName('WebGLRenderingContext.colorMask')
2421 @DocsEditable()
2422 void colorMask(bool red, bool green, bool blue, bool alpha) native;
2423
2375 @DomName('WebGLRenderingContext.compileShader') 2424 @DomName('WebGLRenderingContext.compileShader')
2376 @DocsEditable() 2425 @DocsEditable()
2377 void compileShader(Shader shader) native; 2426 void compileShader(Shader shader) native;
2378 2427
2428 @DomName('WebGLRenderingContext.compressedTexImage2D')
2429 @DocsEditable()
2430 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, TypedData data) native;
2431
2432 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
2433 @DocsEditable()
2434 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) native;
2435
2436 @DomName('WebGLRenderingContext.copyTexImage2D')
2437 @DocsEditable()
2438 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
2439
2440 @DomName('WebGLRenderingContext.copyTexSubImage2D')
2441 @DocsEditable()
2442 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
2443
2379 @DomName('WebGLRenderingContext.createBuffer') 2444 @DomName('WebGLRenderingContext.createBuffer')
2380 @DocsEditable() 2445 @DocsEditable()
2381 Buffer createBuffer() native; 2446 Buffer createBuffer() native;
2382 2447
2383 @DomName('WebGLRenderingContext.createFramebuffer') 2448 @DomName('WebGLRenderingContext.createFramebuffer')
2384 @DocsEditable() 2449 @DocsEditable()
2385 Framebuffer createFramebuffer() native; 2450 Framebuffer createFramebuffer() native;
2386 2451
2387 @DomName('WebGLRenderingContext.createProgram') 2452 @DomName('WebGLRenderingContext.createProgram')
2388 @DocsEditable() 2453 @DocsEditable()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2425 void deleteShader(Shader shader) native; 2490 void deleteShader(Shader shader) native;
2426 2491
2427 @DomName('WebGLRenderingContext.deleteTexture') 2492 @DomName('WebGLRenderingContext.deleteTexture')
2428 @DocsEditable() 2493 @DocsEditable()
2429 void deleteTexture(Texture texture) native; 2494 void deleteTexture(Texture texture) native;
2430 2495
2431 @DomName('WebGLRenderingContext.depthFunc') 2496 @DomName('WebGLRenderingContext.depthFunc')
2432 @DocsEditable() 2497 @DocsEditable()
2433 void depthFunc(int func) native; 2498 void depthFunc(int func) native;
2434 2499
2500 @DomName('WebGLRenderingContext.depthMask')
2501 @DocsEditable()
2502 void depthMask(bool flag) native;
2503
2504 @DomName('WebGLRenderingContext.depthRange')
2505 @DocsEditable()
2506 void depthRange(num zNear, num zFar) native;
2507
2435 @DomName('WebGLRenderingContext.detachShader') 2508 @DomName('WebGLRenderingContext.detachShader')
2436 @DocsEditable() 2509 @DocsEditable()
2437 void detachShader(Program program, Shader shader) native; 2510 void detachShader(Program program, Shader shader) native;
2438 2511
2439 @DomName('WebGLRenderingContext.disable') 2512 @DomName('WebGLRenderingContext.disable')
2440 @DocsEditable() 2513 @DocsEditable()
2441 void disable(int cap) native; 2514 void disable(int cap) native;
2442 2515
2516 @DomName('WebGLRenderingContext.disableVertexAttribArray')
2517 @DocsEditable()
2518 void disableVertexAttribArray(int index) native;
2519
2520 @DomName('WebGLRenderingContext.drawArrays')
2521 @DocsEditable()
2522 void drawArrays(int mode, int first, int count) native;
2523
2524 @DomName('WebGLRenderingContext.drawElements')
2525 @DocsEditable()
2526 void drawElements(int mode, int count, int type, int offset) native;
2527
2443 @DomName('WebGLRenderingContext.enable') 2528 @DomName('WebGLRenderingContext.enable')
2444 @DocsEditable() 2529 @DocsEditable()
2445 void enable(int cap) native; 2530 void enable(int cap) native;
2446 2531
2532 @DomName('WebGLRenderingContext.enableVertexAttribArray')
2533 @DocsEditable()
2534 void enableVertexAttribArray(int index) native;
2535
2447 @DomName('WebGLRenderingContext.finish') 2536 @DomName('WebGLRenderingContext.finish')
2448 @DocsEditable() 2537 @DocsEditable()
2449 void finish() native; 2538 void finish() native;
2450 2539
2451 @DomName('WebGLRenderingContext.flush') 2540 @DomName('WebGLRenderingContext.flush')
2452 @DocsEditable() 2541 @DocsEditable()
2453 void flush() native; 2542 void flush() native;
2454 2543
2455 @DomName('WebGLRenderingContext.framebufferRenderbuffer') 2544 @DomName('WebGLRenderingContext.framebufferRenderbuffer')
2456 @DocsEditable() 2545 @DocsEditable()
2457 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) native; 2546 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) native;
2458 2547
2548 @DomName('WebGLRenderingContext.framebufferTexture2D')
2549 @DocsEditable()
2550 void framebufferTexture2D(int target, int attachment, int textarget, Texture t exture, int level) native;
2551
2459 @DomName('WebGLRenderingContext.frontFace') 2552 @DomName('WebGLRenderingContext.frontFace')
2460 @DocsEditable() 2553 @DocsEditable()
2461 void frontFace(int mode) native; 2554 void frontFace(int mode) native;
2462 2555
2463 @DomName('WebGLRenderingContext.generateMipmap') 2556 @DomName('WebGLRenderingContext.generateMipmap')
2464 @DocsEditable() 2557 @DocsEditable()
2465 void generateMipmap(int target) native; 2558 void generateMipmap(int target) native;
2466 2559
2560 @DomName('WebGLRenderingContext.getActiveAttrib')
2561 @DocsEditable()
2562 ActiveInfo getActiveAttrib(Program program, int index) native;
2563
2564 @DomName('WebGLRenderingContext.getActiveUniform')
2565 @DocsEditable()
2566 ActiveInfo getActiveUniform(Program program, int index) native;
2567
2467 @DomName('WebGLRenderingContext.getAttachedShaders') 2568 @DomName('WebGLRenderingContext.getAttachedShaders')
2468 @DocsEditable() 2569 @DocsEditable()
2469 List<Shader> getAttachedShaders(Program program) native; 2570 List<Shader> getAttachedShaders(Program program) native;
2470 2571
2572 @DomName('WebGLRenderingContext.getAttribLocation')
2573 @DocsEditable()
2574 int getAttribLocation(Program program, String name) native;
2575
2576 @DomName('WebGLRenderingContext.getBufferParameter')
2577 @DocsEditable()
2578 @Creates('int|Null')
2579 @Returns('int|Null')
2580 Object getBufferParameter(int target, int pname) native;
2581
2471 @DomName('WebGLRenderingContext.getContextAttributes') 2582 @DomName('WebGLRenderingContext.getContextAttributes')
2472 @DocsEditable() 2583 @DocsEditable()
2473 @Creates('ContextAttributes|Null') 2584 @Creates('ContextAttributes|=Object')
2474 Map getContextAttributes() { 2585 ContextAttributes getContextAttributes() {
2475 return convertNativeToDart_Dictionary(_getContextAttributes_1()); 2586 return convertNativeToDart_ContextAttributes(_getContextAttributes_1());
2476 } 2587 }
2477 @JSName('getContextAttributes') 2588 @JSName('getContextAttributes')
2478 @DomName('WebGLRenderingContext.getContextAttributes') 2589 @DomName('WebGLRenderingContext.getContextAttributes')
2479 @DocsEditable() 2590 @DocsEditable()
2480 @Creates('ContextAttributes|Null') 2591 @Creates('ContextAttributes|=Object')
2481 _getContextAttributes_1() native; 2592 _getContextAttributes_1() native;
2482 2593
2483 @DomName('WebGLRenderingContext.getError') 2594 @DomName('WebGLRenderingContext.getError')
2484 @DocsEditable() 2595 @DocsEditable()
2485 int getError() native; 2596 int getError() native;
2486 2597
2598 @DomName('WebGLRenderingContext.getExtension')
2599 @DocsEditable()
2600 Object getExtension(String name) native;
2601
2602 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
2603 @DocsEditable()
2604 @Creates('int|Renderbuffer|Texture|Null')
2605 @Returns('int|Renderbuffer|Texture|Null')
2606 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
2607
2608 @DomName('WebGLRenderingContext.getParameter')
2609 @DocsEditable()
2610 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List|Framebuffer|Renderbuffer|Texture')
2611 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List|Framebuffer|Renderbuffer|Texture')
2612 Object getParameter(int pname) native;
2613
2487 @DomName('WebGLRenderingContext.getProgramInfoLog') 2614 @DomName('WebGLRenderingContext.getProgramInfoLog')
2488 @DocsEditable() 2615 @DocsEditable()
2489 String getProgramInfoLog(Program program) native; 2616 String getProgramInfoLog(Program program) native;
2490 2617
2618 @DomName('WebGLRenderingContext.getProgramParameter')
2619 @DocsEditable()
2620 @Creates('int|bool|Null')
2621 @Returns('int|bool|Null')
2622 Object getProgramParameter(Program program, int pname) native;
2623
2624 @DomName('WebGLRenderingContext.getRenderbufferParameter')
2625 @DocsEditable()
2626 @Creates('int|Null')
2627 @Returns('int|Null')
2628 Object getRenderbufferParameter(int target, int pname) native;
2629
2491 @DomName('WebGLRenderingContext.getShaderInfoLog') 2630 @DomName('WebGLRenderingContext.getShaderInfoLog')
2492 @DocsEditable() 2631 @DocsEditable()
2493 String getShaderInfoLog(Shader shader) native; 2632 String getShaderInfoLog(Shader shader) native;
2494 2633
2634 @DomName('WebGLRenderingContext.getShaderParameter')
2635 @DocsEditable()
2636 @Creates('int|bool|Null')
2637 @Returns('int|bool|Null')
2638 Object getShaderParameter(Shader shader, int pname) native;
2639
2495 @DomName('WebGLRenderingContext.getShaderPrecisionFormat') 2640 @DomName('WebGLRenderingContext.getShaderPrecisionFormat')
2496 @DocsEditable() 2641 @DocsEditable()
2497 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) native; 2642 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) native;
2498 2643
2499 @DomName('WebGLRenderingContext.getShaderSource') 2644 @DomName('WebGLRenderingContext.getShaderSource')
2500 @DocsEditable() 2645 @DocsEditable()
2501 String getShaderSource(Shader shader) native; 2646 String getShaderSource(Shader shader) native;
2502 2647
2503 @DomName('WebGLRenderingContext.getSupportedExtensions') 2648 @DomName('WebGLRenderingContext.getSupportedExtensions')
2504 @DocsEditable() 2649 @DocsEditable()
2505 List<String> getSupportedExtensions() native; 2650 List<String> getSupportedExtensions() native;
2506 2651
2652 @DomName('WebGLRenderingContext.getTexParameter')
2653 @DocsEditable()
2654 @Creates('int|Null')
2655 @Returns('int|Null')
2656 Object getTexParameter(int target, int pname) native;
2657
2507 @DomName('WebGLRenderingContext.getUniform') 2658 @DomName('WebGLRenderingContext.getUniform')
2508 @DocsEditable() 2659 @DocsEditable()
2509 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List') 2660 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List')
2510 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List') 2661 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List')
2511 Object getUniform(Program program, UniformLocation location) native; 2662 Object getUniform(Program program, UniformLocation location) native;
2512 2663
2513 @DomName('WebGLRenderingContext.getUniformLocation') 2664 @DomName('WebGLRenderingContext.getUniformLocation')
2514 @DocsEditable() 2665 @DocsEditable()
2515 UniformLocation getUniformLocation(Program program, String name) native; 2666 UniformLocation getUniformLocation(Program program, String name) native;
2516 2667
2668 @DomName('WebGLRenderingContext.getVertexAttrib')
2669 @DocsEditable()
2670 @Creates('Null|num|bool|NativeFloat32List|Buffer')
2671 @Returns('Null|num|bool|NativeFloat32List|Buffer')
2672 Object getVertexAttrib(int index, int pname) native;
2673
2674 @DomName('WebGLRenderingContext.getVertexAttribOffset')
2675 @DocsEditable()
2676 int getVertexAttribOffset(int index, int pname) native;
2677
2517 @DomName('WebGLRenderingContext.hint') 2678 @DomName('WebGLRenderingContext.hint')
2518 @DocsEditable() 2679 @DocsEditable()
2519 void hint(int target, int mode) native; 2680 void hint(int target, int mode) native;
2520 2681
2682 @DomName('WebGLRenderingContext.isBuffer')
2683 @DocsEditable()
2684 bool isBuffer(Buffer buffer) native;
2685
2686 @DomName('WebGLRenderingContext.isContextLost')
2687 @DocsEditable()
2688 bool isContextLost() native;
2689
2690 @DomName('WebGLRenderingContext.isEnabled')
2691 @DocsEditable()
2692 bool isEnabled(int cap) native;
2693
2694 @DomName('WebGLRenderingContext.isFramebuffer')
2695 @DocsEditable()
2696 bool isFramebuffer(Framebuffer framebuffer) native;
2697
2698 @DomName('WebGLRenderingContext.isProgram')
2699 @DocsEditable()
2700 bool isProgram(Program program) native;
2701
2702 @DomName('WebGLRenderingContext.isRenderbuffer')
2703 @DocsEditable()
2704 bool isRenderbuffer(Renderbuffer renderbuffer) native;
2705
2706 @DomName('WebGLRenderingContext.isShader')
2707 @DocsEditable()
2708 bool isShader(Shader shader) native;
2709
2710 @DomName('WebGLRenderingContext.isTexture')
2711 @DocsEditable()
2712 bool isTexture(Texture texture) native;
2713
2714 @DomName('WebGLRenderingContext.lineWidth')
2715 @DocsEditable()
2716 void lineWidth(num width) native;
2717
2521 @DomName('WebGLRenderingContext.linkProgram') 2718 @DomName('WebGLRenderingContext.linkProgram')
2522 @DocsEditable() 2719 @DocsEditable()
2523 void linkProgram(Program program) native; 2720 void linkProgram(Program program) native;
2524 2721
2722 @DomName('WebGLRenderingContext.pixelStorei')
2723 @DocsEditable()
2724 void pixelStorei(int pname, int param) native;
2725
2726 @DomName('WebGLRenderingContext.polygonOffset')
2727 @DocsEditable()
2728 void polygonOffset(num factor, num units) native;
2729
2730 @DomName('WebGLRenderingContext.readPixels')
2731 @DocsEditable()
2732 void readPixels(int x, int y, int width, int height, int format, int type, Typ edData pixels) native;
2733
2734 @DomName('WebGLRenderingContext.renderbufferStorage')
2735 @DocsEditable()
2736 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
2737
2738 @DomName('WebGLRenderingContext.sampleCoverage')
2739 @DocsEditable()
2740 void sampleCoverage(num value, bool invert) native;
2741
2742 @DomName('WebGLRenderingContext.scissor')
2743 @DocsEditable()
2744 void scissor(int x, int y, int width, int height) native;
2745
2525 @DomName('WebGLRenderingContext.shaderSource') 2746 @DomName('WebGLRenderingContext.shaderSource')
2526 @DocsEditable() 2747 @DocsEditable()
2527 void shaderSource(Shader shader, String string) native; 2748 void shaderSource(Shader shader, String string) native;
2528 2749
2750 @DomName('WebGLRenderingContext.stencilFunc')
2751 @DocsEditable()
2752 void stencilFunc(int func, int ref, int mask) native;
2753
2754 @DomName('WebGLRenderingContext.stencilFuncSeparate')
2755 @DocsEditable()
2756 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
2757
2758 @DomName('WebGLRenderingContext.stencilMask')
2759 @DocsEditable()
2760 void stencilMask(int mask) native;
2761
2762 @DomName('WebGLRenderingContext.stencilMaskSeparate')
2763 @DocsEditable()
2764 void stencilMaskSeparate(int face, int mask) native;
2765
2529 @DomName('WebGLRenderingContext.stencilOp') 2766 @DomName('WebGLRenderingContext.stencilOp')
2530 @DocsEditable() 2767 @DocsEditable()
2531 void stencilOp(int fail, int zfail, int zpass) native; 2768 void stencilOp(int fail, int zfail, int zpass) native;
2532 2769
2533 @DomName('WebGLRenderingContext.stencilOpSeparate') 2770 @DomName('WebGLRenderingContext.stencilOpSeparate')
2534 @DocsEditable() 2771 @DocsEditable()
2535 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 2772 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
2536 2773
2774 /**
2775 * Updates the currently bound texture to [data].
2776 *
2777 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2778 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2779 * (or for more specificity, the more specialized [texImage2DImageData],
2780 * [texImage2DCanvas], [texImage2DVideo]).
2781 */
2782 @DomName('WebGLRenderingContext.texImage2D')
2783 @DocsEditable()
2784 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]) {
2785 if (pixels != null && type != null && format != null && (border_OR_canvas_OR _image_OR_pixels_OR_video is int)) {
2786 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
2787 return;
2788 }
2789 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) {
2790 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_ pixels_OR_video);
2791 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1);
2792 return;
2793 }
2794 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format == null && type == null && pixels == null) {
2795 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2796 return;
2797 }
2798 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement) && forma t == null && type == null && pixels == null) {
2799 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2800 return;
2801 }
2802 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement) && format == null && type == null && pixels == null) {
2803 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
2804 return;
2805 }
2806 throw new ArgumentError("Incorrect number or type of arguments");
2807 }
2808 @JSName('texImage2D')
2809 /**
2810 * Updates the currently bound texture to [data].
2811 *
2812 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2813 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2814 * (or for more specificity, the more specialized [texImage2DImageData],
2815 * [texImage2DCanvas], [texImage2DVideo]).
2816 */
2817 @DomName('WebGLRenderingContext.texImage2D')
2818 @DocsEditable()
2819 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, TypedData pixels) native;
2820 @JSName('texImage2D')
2821 /**
2822 * Updates the currently bound texture to [data].
2823 *
2824 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2825 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2826 * (or for more specificity, the more specialized [texImage2DImageData],
2827 * [texImage2DCanvas], [texImage2DVideo]).
2828 */
2829 @DomName('WebGLRenderingContext.texImage2D')
2830 @DocsEditable()
2831 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ;
2832 @JSName('texImage2D')
2833 /**
2834 * Updates the currently bound texture to [data].
2835 *
2836 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2837 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2838 * (or for more specificity, the more specialized [texImage2DImageData],
2839 * [texImage2DCanvas], [texImage2DVideo]).
2840 */
2841 @DomName('WebGLRenderingContext.texImage2D')
2842 @DocsEditable()
2843 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native;
2844 @JSName('texImage2D')
2845 /**
2846 * Updates the currently bound texture to [data].
2847 *
2848 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2849 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2850 * (or for more specificity, the more specialized [texImage2DImageData],
2851 * [texImage2DCanvas], [texImage2DVideo]).
2852 */
2853 @DomName('WebGLRenderingContext.texImage2D')
2854 @DocsEditable()
2855 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native;
2856 @JSName('texImage2D')
2857 /**
2858 * Updates the currently bound texture to [data].
2859 *
2860 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2861 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2862 * (or for more specificity, the more specialized [texImage2DImageData],
2863 * [texImage2DCanvas], [texImage2DVideo]).
2864 */
2865 @DomName('WebGLRenderingContext.texImage2D')
2866 @DocsEditable()
2867 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native;
2868
2869 @JSName('texImage2D')
2870 /**
2871 * Updates the currently bound texture to [data].
2872 *
2873 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2874 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2875 * (or for more specificity, the more specialized [texImage2DImageData],
2876 * [texImage2DCanvas], [texImage2DVideo]).
2877 */
2878 @DomName('WebGLRenderingContext.texImage2D')
2879 @DocsEditable()
2880 void texImage2DCanvas(int target, int level, int internalformat, int format, i nt type, CanvasElement canvas) native;
2881
2882 @JSName('texImage2D')
2883 /**
2884 * Updates the currently bound texture to [data].
2885 *
2886 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2887 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2888 * (or for more specificity, the more specialized [texImage2DImageData],
2889 * [texImage2DCanvas], [texImage2DVideo]).
2890 */
2891 @DomName('WebGLRenderingContext.texImage2D')
2892 @DocsEditable()
2893 void texImage2DImage(int target, int level, int internalformat, int format, in t type, ImageElement image) native;
2894
2895 /**
2896 * Updates the currently bound texture to [data].
2897 *
2898 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2899 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2900 * (or for more specificity, the more specialized [texImage2DImageData],
2901 * [texImage2DCanvas], [texImage2DVideo]).
2902 */
2903 @DomName('WebGLRenderingContext.texImage2D')
2904 @DocsEditable()
2905 void texImage2DImageData(int target, int level, int internalformat, int format , int type, ImageData pixels) {
2906 var pixels_1 = convertDartToNative_ImageData(pixels);
2907 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1 );
2908 return;
2909 }
2910 @JSName('texImage2D')
2911 /**
2912 * Updates the currently bound texture to [data].
2913 *
2914 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2915 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2916 * (or for more specificity, the more specialized [texImage2DImageData],
2917 * [texImage2DCanvas], [texImage2DVideo]).
2918 */
2919 @DomName('WebGLRenderingContext.texImage2D')
2920 @DocsEditable()
2921 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel s) native;
2922
2923 @JSName('texImage2D')
2924 /**
2925 * Updates the currently bound texture to [data].
2926 *
2927 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2928 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2929 * (or for more specificity, the more specialized [texImage2DImageData],
2930 * [texImage2DCanvas], [texImage2DVideo]).
2931 */
2932 @DomName('WebGLRenderingContext.texImage2D')
2933 @DocsEditable()
2934 void texImage2DVideo(int target, int level, int internalformat, int format, in t type, VideoElement video) native;
2935
2936 @DomName('WebGLRenderingContext.texParameterf')
2937 @DocsEditable()
2938 void texParameterf(int target, int pname, num param) native;
2939
2940 @DomName('WebGLRenderingContext.texParameteri')
2941 @DocsEditable()
2942 void texParameteri(int target, int pname, int param) native;
2943
2944 /**
2945 * Updates a sub-rectangle of the currently bound texture to [data].
2946 *
2947 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2948 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2949 * (or for more specificity, the more specialized [texSubImage2DImageData],
2950 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2951 */
2952 @DomName('WebGLRenderingContext.texSubImage2D')
2953 @DocsEditable()
2954 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]) {
2955 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O R_video is int)) {
2956 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
2957 return;
2958 }
2959 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) {
2960 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_ pixels_OR_video);
2961 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1);
2962 return;
2963 }
2964 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type = = null && pixels == null) {
2965 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2966 return;
2967 }
2968 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement) && type == null && pixels == null) {
2969 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2970 return;
2971 }
2972 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement) && type = = null && pixels == null) {
2973 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2974 return;
2975 }
2976 throw new ArgumentError("Incorrect number or type of arguments");
2977 }
2978 @JSName('texSubImage2D')
2979 /**
2980 * Updates a sub-rectangle of the currently bound texture to [data].
2981 *
2982 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2983 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2984 * (or for more specificity, the more specialized [texSubImage2DImageData],
2985 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2986 */
2987 @DomName('WebGLRenderingContext.texSubImage2D')
2988 @DocsEditable()
2989 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, TypedData pixels) native;
2990 @JSName('texSubImage2D')
2991 /**
2992 * Updates a sub-rectangle of the currently bound texture to [data].
2993 *
2994 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2995 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2996 * (or for more specificity, the more specialized [texSubImage2DImageData],
2997 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2998 */
2999 @DomName('WebGLRenderingContext.texSubImage2D')
3000 @DocsEditable()
3001 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative;
3002 @JSName('texSubImage2D')
3003 /**
3004 * Updates a sub-rectangle of the currently bound texture to [data].
3005 *
3006 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3007 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3008 * (or for more specificity, the more specialized [texSubImage2DImageData],
3009 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3010 */
3011 @DomName('WebGLRenderingContext.texSubImage2D')
3012 @DocsEditable()
3013 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native;
3014 @JSName('texSubImage2D')
3015 /**
3016 * Updates a sub-rectangle of the currently bound texture to [data].
3017 *
3018 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3019 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3020 * (or for more specificity, the more specialized [texSubImage2DImageData],
3021 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3022 */
3023 @DomName('WebGLRenderingContext.texSubImage2D')
3024 @DocsEditable()
3025 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native;
3026 @JSName('texSubImage2D')
3027 /**
3028 * Updates a sub-rectangle of the currently bound texture to [data].
3029 *
3030 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3031 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3032 * (or for more specificity, the more specialized [texSubImage2DImageData],
3033 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3034 */
3035 @DomName('WebGLRenderingContext.texSubImage2D')
3036 @DocsEditable()
3037 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native;
3038
3039 @JSName('texSubImage2D')
3040 /**
3041 * Updates a sub-rectangle of the currently bound texture to [data].
3042 *
3043 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3044 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3045 * (or for more specificity, the more specialized [texSubImage2DImageData],
3046 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3047 */
3048 @DomName('WebGLRenderingContext.texSubImage2D')
3049 @DocsEditable()
3050 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native;
3051
3052 @JSName('texSubImage2D')
3053 /**
3054 * Updates a sub-rectangle of the currently bound texture to [data].
3055 *
3056 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3057 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3058 * (or for more specificity, the more specialized [texSubImage2DImageData],
3059 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3060 */
3061 @DomName('WebGLRenderingContext.texSubImage2D')
3062 @DocsEditable()
3063 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f ormat, int type, ImageElement image) native;
3064
3065 /**
3066 * Updates a sub-rectangle of the currently bound texture to [data].
3067 *
3068 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3069 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3070 * (or for more specificity, the more specialized [texSubImage2DImageData],
3071 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3072 */
3073 @DomName('WebGLRenderingContext.texSubImage2D')
3074 @DocsEditable()
3075 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i nt format, int type, ImageData pixels) {
3076 var pixels_1 = convertDartToNative_ImageData(pixels);
3077 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix els_1);
3078 return;
3079 }
3080 @JSName('texSubImage2D')
3081 /**
3082 * Updates a sub-rectangle of the currently bound texture to [data].
3083 *
3084 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3085 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3086 * (or for more specificity, the more specialized [texSubImage2DImageData],
3087 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3088 */
3089 @DomName('WebGLRenderingContext.texSubImage2D')
3090 @DocsEditable()
3091 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels) native;
3092
3093 @JSName('texSubImage2D')
3094 /**
3095 * Updates a sub-rectangle of the currently bound texture to [data].
3096 *
3097 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3098 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3099 * (or for more specificity, the more specialized [texSubImage2DImageData],
3100 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3101 */
3102 @DomName('WebGLRenderingContext.texSubImage2D')
3103 @DocsEditable()
3104 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f ormat, int type, VideoElement video) native;
3105
3106 @DomName('WebGLRenderingContext.uniform1f')
3107 @DocsEditable()
3108 void uniform1f(UniformLocation location, num x) native;
3109
2537 @DomName('WebGLRenderingContext.uniform1fv') 3110 @DomName('WebGLRenderingContext.uniform1fv')
2538 @DocsEditable() 3111 @DocsEditable()
2539 void uniform1fv(UniformLocation location, Float32List v) native; 3112 void uniform1fv(UniformLocation location, Float32List v) native;
2540 3113
3114 @DomName('WebGLRenderingContext.uniform1i')
3115 @DocsEditable()
3116 void uniform1i(UniformLocation location, int x) native;
3117
2541 @DomName('WebGLRenderingContext.uniform1iv') 3118 @DomName('WebGLRenderingContext.uniform1iv')
2542 @DocsEditable() 3119 @DocsEditable()
2543 void uniform1iv(UniformLocation location, Int32List v) native; 3120 void uniform1iv(UniformLocation location, Int32List v) native;
2544 3121
3122 @DomName('WebGLRenderingContext.uniform2f')
3123 @DocsEditable()
3124 void uniform2f(UniformLocation location, num x, num y) native;
3125
2545 @DomName('WebGLRenderingContext.uniform2fv') 3126 @DomName('WebGLRenderingContext.uniform2fv')
2546 @DocsEditable() 3127 @DocsEditable()
2547 void uniform2fv(UniformLocation location, Float32List v) native; 3128 void uniform2fv(UniformLocation location, Float32List v) native;
2548 3129
3130 @DomName('WebGLRenderingContext.uniform2i')
3131 @DocsEditable()
3132 void uniform2i(UniformLocation location, int x, int y) native;
3133
2549 @DomName('WebGLRenderingContext.uniform2iv') 3134 @DomName('WebGLRenderingContext.uniform2iv')
2550 @DocsEditable() 3135 @DocsEditable()
2551 void uniform2iv(UniformLocation location, Int32List v) native; 3136 void uniform2iv(UniformLocation location, Int32List v) native;
2552 3137
3138 @DomName('WebGLRenderingContext.uniform3f')
3139 @DocsEditable()
3140 void uniform3f(UniformLocation location, num x, num y, num z) native;
3141
2553 @DomName('WebGLRenderingContext.uniform3fv') 3142 @DomName('WebGLRenderingContext.uniform3fv')
2554 @DocsEditable() 3143 @DocsEditable()
2555 void uniform3fv(UniformLocation location, Float32List v) native; 3144 void uniform3fv(UniformLocation location, Float32List v) native;
2556 3145
3146 @DomName('WebGLRenderingContext.uniform3i')
3147 @DocsEditable()
3148 void uniform3i(UniformLocation location, int x, int y, int z) native;
3149
2557 @DomName('WebGLRenderingContext.uniform3iv') 3150 @DomName('WebGLRenderingContext.uniform3iv')
2558 @DocsEditable() 3151 @DocsEditable()
2559 void uniform3iv(UniformLocation location, Int32List v) native; 3152 void uniform3iv(UniformLocation location, Int32List v) native;
2560 3153
3154 @DomName('WebGLRenderingContext.uniform4f')
3155 @DocsEditable()
3156 void uniform4f(UniformLocation location, num x, num y, num z, num w) native;
3157
2561 @DomName('WebGLRenderingContext.uniform4fv') 3158 @DomName('WebGLRenderingContext.uniform4fv')
2562 @DocsEditable() 3159 @DocsEditable()
2563 void uniform4fv(UniformLocation location, Float32List v) native; 3160 void uniform4fv(UniformLocation location, Float32List v) native;
2564 3161
3162 @DomName('WebGLRenderingContext.uniform4i')
3163 @DocsEditable()
3164 void uniform4i(UniformLocation location, int x, int y, int z, int w) native;
3165
2565 @DomName('WebGLRenderingContext.uniform4iv') 3166 @DomName('WebGLRenderingContext.uniform4iv')
2566 @DocsEditable() 3167 @DocsEditable()
2567 void uniform4iv(UniformLocation location, Int32List v) native; 3168 void uniform4iv(UniformLocation location, Int32List v) native;
2568 3169
3170 @DomName('WebGLRenderingContext.uniformMatrix2fv')
3171 @DocsEditable()
3172 void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List ar ray) native;
3173
3174 @DomName('WebGLRenderingContext.uniformMatrix3fv')
3175 @DocsEditable()
3176 void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List ar ray) native;
3177
3178 @DomName('WebGLRenderingContext.uniformMatrix4fv')
3179 @DocsEditable()
3180 void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List ar ray) native;
3181
2569 @DomName('WebGLRenderingContext.useProgram') 3182 @DomName('WebGLRenderingContext.useProgram')
2570 @DocsEditable() 3183 @DocsEditable()
2571 void useProgram(Program program) native; 3184 void useProgram(Program program) native;
2572 3185
2573 @DomName('WebGLRenderingContext.validateProgram') 3186 @DomName('WebGLRenderingContext.validateProgram')
2574 @DocsEditable() 3187 @DocsEditable()
2575 void validateProgram(Program program) native; 3188 void validateProgram(Program program) native;
2576 3189
3190 @DomName('WebGLRenderingContext.vertexAttrib1f')
3191 @DocsEditable()
3192 void vertexAttrib1f(int indx, num x) native;
3193
3194 @DomName('WebGLRenderingContext.vertexAttrib1fv')
3195 @DocsEditable()
3196 void vertexAttrib1fv(int indx, Float32List values) native;
3197
3198 @DomName('WebGLRenderingContext.vertexAttrib2f')
3199 @DocsEditable()
3200 void vertexAttrib2f(int indx, num x, num y) native;
3201
3202 @DomName('WebGLRenderingContext.vertexAttrib2fv')
3203 @DocsEditable()
3204 void vertexAttrib2fv(int indx, Float32List values) native;
3205
3206 @DomName('WebGLRenderingContext.vertexAttrib3f')
3207 @DocsEditable()
3208 void vertexAttrib3f(int indx, num x, num y, num z) native;
3209
3210 @DomName('WebGLRenderingContext.vertexAttrib3fv')
3211 @DocsEditable()
3212 void vertexAttrib3fv(int indx, Float32List values) native;
3213
3214 @DomName('WebGLRenderingContext.vertexAttrib4f')
3215 @DocsEditable()
3216 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
3217
3218 @DomName('WebGLRenderingContext.vertexAttrib4fv')
3219 @DocsEditable()
3220 void vertexAttrib4fv(int indx, Float32List values) native;
3221
3222 @DomName('WebGLRenderingContext.vertexAttribPointer')
3223 @DocsEditable()
3224 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
3225
3226 @DomName('WebGLRenderingContext.viewport')
3227 @DocsEditable()
3228 void viewport(int x, int y, int width, int height) native;
3229
2577 3230
2578 /** 3231 /**
2579 * Sets the currently bound texture to [data]. 3232 * Sets the currently bound texture to [data].
2580 * 3233 *
2581 * [data] can be either an [ImageElement], a 3234 * [data] can be either an [ImageElement], a
2582 * [CanvasElement], a [VideoElement], or an [ImageData] object. 3235 * [CanvasElement], a [VideoElement], or an [ImageData] object.
2583 * 3236 *
2584 * To use [texImage2d] with a TypedData object, use [texImage2dTyped]. 3237 * To use [texImage2d] with a TypedData object, use [texImage2dTyped].
2585 * 3238 *
2586 */ 3239 */
(...skipping 25 matching lines...) Expand all
2612 /** 3265 /**
2613 * Updates a sub-rectangle of the currently bound texture to [data]. 3266 * Updates a sub-rectangle of the currently bound texture to [data].
2614 */ 3267 */
2615 @JSName('texSubImage2D') 3268 @JSName('texSubImage2D')
2616 void texSubImage2DTyped(int targetTexture, int levelOfDetail, 3269 void texSubImage2DTyped(int targetTexture, int levelOfDetail,
2617 int xOffset, int yOffset, int width, int height, int border, int format, 3270 int xOffset, int yOffset, int width, int height, int border, int format,
2618 int type, TypedData data) native; 3271 int type, TypedData data) native;
2619 } 3272 }
2620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2621 // for details. All rights reserved. Use of this source code is governed by a 3274 // for details. All rights reserved. Use of this source code is governed by a
2622 // BSD-style license that can be found in the LICENSE file.
2623
2624
2625 @DocsEditable()
2626 @DomName('WebGL2RenderingContext')
2627 @Experimental() // untriaged
2628 @Native("WebGL2RenderingContext")
2629 class RenderingContext2 extends Interceptor implements _WebGL2RenderingContextBa se, _WebGLRenderingContextBase {
2630 // To suppress missing implicit constructor warnings.
2631 factory RenderingContext2._() { throw new UnsupportedError("Not supported"); }
2632
2633 @DomName('WebGL2RenderingContext.ACTIVE_ATTRIBUTES')
2634 @DocsEditable()
2635 @Experimental() // untriaged
2636 static const int ACTIVE_ATTRIBUTES = 0x8B89;
2637
2638 @DomName('WebGL2RenderingContext.ACTIVE_TEXTURE')
2639 @DocsEditable()
2640 @Experimental() // untriaged
2641 static const int ACTIVE_TEXTURE = 0x84E0;
2642
2643 @DomName('WebGL2RenderingContext.ACTIVE_UNIFORMS')
2644 @DocsEditable()
2645 @Experimental() // untriaged
2646 static const int ACTIVE_UNIFORMS = 0x8B86;
2647
2648 @DomName('WebGL2RenderingContext.ALIASED_LINE_WIDTH_RANGE')
2649 @DocsEditable()
2650 @Experimental() // untriaged
2651 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
2652
2653 @DomName('WebGL2RenderingContext.ALIASED_POINT_SIZE_RANGE')
2654 @DocsEditable()
2655 @Experimental() // untriaged
2656 static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
2657
2658 @DomName('WebGL2RenderingContext.ALPHA')
2659 @DocsEditable()
2660 @Experimental() // untriaged
2661 static const int ALPHA = 0x1906;
2662
2663 @DomName('WebGL2RenderingContext.ALPHA_BITS')
2664 @DocsEditable()
2665 @Experimental() // untriaged
2666 static const int ALPHA_BITS = 0x0D55;
2667
2668 @DomName('WebGL2RenderingContext.ALWAYS')
2669 @DocsEditable()
2670 @Experimental() // untriaged
2671 static const int ALWAYS = 0x0207;
2672
2673 @DomName('WebGL2RenderingContext.ARRAY_BUFFER')
2674 @DocsEditable()
2675 @Experimental() // untriaged
2676 static const int ARRAY_BUFFER = 0x8892;
2677
2678 @DomName('WebGL2RenderingContext.ARRAY_BUFFER_BINDING')
2679 @DocsEditable()
2680 @Experimental() // untriaged
2681 static const int ARRAY_BUFFER_BINDING = 0x8894;
2682
2683 @DomName('WebGL2RenderingContext.ATTACHED_SHADERS')
2684 @DocsEditable()
2685 @Experimental() // untriaged
2686 static const int ATTACHED_SHADERS = 0x8B85;
2687
2688 @DomName('WebGL2RenderingContext.BACK')
2689 @DocsEditable()
2690 @Experimental() // untriaged
2691 static const int BACK = 0x0405;
2692
2693 @DomName('WebGL2RenderingContext.BLEND')
2694 @DocsEditable()
2695 @Experimental() // untriaged
2696 static const int BLEND = 0x0BE2;
2697
2698 @DomName('WebGL2RenderingContext.BLEND_COLOR')
2699 @DocsEditable()
2700 @Experimental() // untriaged
2701 static const int BLEND_COLOR = 0x8005;
2702
2703 @DomName('WebGL2RenderingContext.BLEND_DST_ALPHA')
2704 @DocsEditable()
2705 @Experimental() // untriaged
2706 static const int BLEND_DST_ALPHA = 0x80CA;
2707
2708 @DomName('WebGL2RenderingContext.BLEND_DST_RGB')
2709 @DocsEditable()
2710 @Experimental() // untriaged
2711 static const int BLEND_DST_RGB = 0x80C8;
2712
2713 @DomName('WebGL2RenderingContext.BLEND_EQUATION')
2714 @DocsEditable()
2715 @Experimental() // untriaged
2716 static const int BLEND_EQUATION = 0x8009;
2717
2718 @DomName('WebGL2RenderingContext.BLEND_EQUATION_ALPHA')
2719 @DocsEditable()
2720 @Experimental() // untriaged
2721 static const int BLEND_EQUATION_ALPHA = 0x883D;
2722
2723 @DomName('WebGL2RenderingContext.BLEND_EQUATION_RGB')
2724 @DocsEditable()
2725 @Experimental() // untriaged
2726 static const int BLEND_EQUATION_RGB = 0x8009;
2727
2728 @DomName('WebGL2RenderingContext.BLEND_SRC_ALPHA')
2729 @DocsEditable()
2730 @Experimental() // untriaged
2731 static const int BLEND_SRC_ALPHA = 0x80CB;
2732
2733 @DomName('WebGL2RenderingContext.BLEND_SRC_RGB')
2734 @DocsEditable()
2735 @Experimental() // untriaged
2736 static const int BLEND_SRC_RGB = 0x80C9;
2737
2738 @DomName('WebGL2RenderingContext.BLUE_BITS')
2739 @DocsEditable()
2740 @Experimental() // untriaged
2741 static const int BLUE_BITS = 0x0D54;
2742
2743 @DomName('WebGL2RenderingContext.BOOL')
2744 @DocsEditable()
2745 @Experimental() // untriaged
2746 static const int BOOL = 0x8B56;
2747
2748 @DomName('WebGL2RenderingContext.BOOL_VEC2')
2749 @DocsEditable()
2750 @Experimental() // untriaged
2751 static const int BOOL_VEC2 = 0x8B57;
2752
2753 @DomName('WebGL2RenderingContext.BOOL_VEC3')
2754 @DocsEditable()
2755 @Experimental() // untriaged
2756 static const int BOOL_VEC3 = 0x8B58;
2757
2758 @DomName('WebGL2RenderingContext.BOOL_VEC4')
2759 @DocsEditable()
2760 @Experimental() // untriaged
2761 static const int BOOL_VEC4 = 0x8B59;
2762
2763 @DomName('WebGL2RenderingContext.BROWSER_DEFAULT_WEBGL')
2764 @DocsEditable()
2765 @Experimental() // untriaged
2766 static const int BROWSER_DEFAULT_WEBGL = 0x9244;
2767
2768 @DomName('WebGL2RenderingContext.BUFFER_SIZE')
2769 @DocsEditable()
2770 @Experimental() // untriaged
2771 static const int BUFFER_SIZE = 0x8764;
2772
2773 @DomName('WebGL2RenderingContext.BUFFER_USAGE')
2774 @DocsEditable()
2775 @Experimental() // untriaged
2776 static const int BUFFER_USAGE = 0x8765;
2777
2778 @DomName('WebGL2RenderingContext.BYTE')
2779 @DocsEditable()
2780 @Experimental() // untriaged
2781 static const int BYTE = 0x1400;
2782
2783 @DomName('WebGL2RenderingContext.CCW')
2784 @DocsEditable()
2785 @Experimental() // untriaged
2786 static const int CCW = 0x0901;
2787
2788 @DomName('WebGL2RenderingContext.CLAMP_TO_EDGE')
2789 @DocsEditable()
2790 @Experimental() // untriaged
2791 static const int CLAMP_TO_EDGE = 0x812F;
2792
2793 @DomName('WebGL2RenderingContext.COLOR_ATTACHMENT0')
2794 @DocsEditable()
2795 @Experimental() // untriaged
2796 static const int COLOR_ATTACHMENT0 = 0x8CE0;
2797
2798 @DomName('WebGL2RenderingContext.COLOR_BUFFER_BIT')
2799 @DocsEditable()
2800 @Experimental() // untriaged
2801 static const int COLOR_BUFFER_BIT = 0x00004000;
2802
2803 @DomName('WebGL2RenderingContext.COLOR_CLEAR_VALUE')
2804 @DocsEditable()
2805 @Experimental() // untriaged
2806 static const int COLOR_CLEAR_VALUE = 0x0C22;
2807
2808 @DomName('WebGL2RenderingContext.COLOR_WRITEMASK')
2809 @DocsEditable()
2810 @Experimental() // untriaged
2811 static const int COLOR_WRITEMASK = 0x0C23;
2812
2813 @DomName('WebGL2RenderingContext.COMPILE_STATUS')
2814 @DocsEditable()
2815 @Experimental() // untriaged
2816 static const int COMPILE_STATUS = 0x8B81;
2817
2818 @DomName('WebGL2RenderingContext.COMPRESSED_TEXTURE_FORMATS')
2819 @DocsEditable()
2820 @Experimental() // untriaged
2821 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
2822
2823 @DomName('WebGL2RenderingContext.CONSTANT_ALPHA')
2824 @DocsEditable()
2825 @Experimental() // untriaged
2826 static const int CONSTANT_ALPHA = 0x8003;
2827
2828 @DomName('WebGL2RenderingContext.CONSTANT_COLOR')
2829 @DocsEditable()
2830 @Experimental() // untriaged
2831 static const int CONSTANT_COLOR = 0x8001;
2832
2833 @DomName('WebGL2RenderingContext.CONTEXT_LOST_WEBGL')
2834 @DocsEditable()
2835 @Experimental() // untriaged
2836 static const int CONTEXT_LOST_WEBGL = 0x9242;
2837
2838 @DomName('WebGL2RenderingContext.CULL_FACE')
2839 @DocsEditable()
2840 @Experimental() // untriaged
2841 static const int CULL_FACE = 0x0B44;
2842
2843 @DomName('WebGL2RenderingContext.CULL_FACE_MODE')
2844 @DocsEditable()
2845 @Experimental() // untriaged
2846 static const int CULL_FACE_MODE = 0x0B45;
2847
2848 @DomName('WebGL2RenderingContext.CURRENT_PROGRAM')
2849 @DocsEditable()
2850 @Experimental() // untriaged
2851 static const int CURRENT_PROGRAM = 0x8B8D;
2852
2853 @DomName('WebGL2RenderingContext.CURRENT_VERTEX_ATTRIB')
2854 @DocsEditable()
2855 @Experimental() // untriaged
2856 static const int CURRENT_VERTEX_ATTRIB = 0x8626;
2857
2858 @DomName('WebGL2RenderingContext.CW')
2859 @DocsEditable()
2860 @Experimental() // untriaged
2861 static const int CW = 0x0900;
2862
2863 @DomName('WebGL2RenderingContext.DECR')
2864 @DocsEditable()
2865 @Experimental() // untriaged
2866 static const int DECR = 0x1E03;
2867
2868 @DomName('WebGL2RenderingContext.DECR_WRAP')
2869 @DocsEditable()
2870 @Experimental() // untriaged
2871 static const int DECR_WRAP = 0x8508;
2872
2873 @DomName('WebGL2RenderingContext.DELETE_STATUS')
2874 @DocsEditable()
2875 @Experimental() // untriaged
2876 static const int DELETE_STATUS = 0x8B80;
2877
2878 @DomName('WebGL2RenderingContext.DEPTH_ATTACHMENT')
2879 @DocsEditable()
2880 @Experimental() // untriaged
2881 static const int DEPTH_ATTACHMENT = 0x8D00;
2882
2883 @DomName('WebGL2RenderingContext.DEPTH_BITS')
2884 @DocsEditable()
2885 @Experimental() // untriaged
2886 static const int DEPTH_BITS = 0x0D56;
2887
2888 @DomName('WebGL2RenderingContext.DEPTH_BUFFER_BIT')
2889 @DocsEditable()
2890 @Experimental() // untriaged
2891 static const int DEPTH_BUFFER_BIT = 0x00000100;
2892
2893 @DomName('WebGL2RenderingContext.DEPTH_CLEAR_VALUE')
2894 @DocsEditable()
2895 @Experimental() // untriaged
2896 static const int DEPTH_CLEAR_VALUE = 0x0B73;
2897
2898 @DomName('WebGL2RenderingContext.DEPTH_COMPONENT')
2899 @DocsEditable()
2900 @Experimental() // untriaged
2901 static const int DEPTH_COMPONENT = 0x1902;
2902
2903 @DomName('WebGL2RenderingContext.DEPTH_COMPONENT16')
2904 @DocsEditable()
2905 @Experimental() // untriaged
2906 static const int DEPTH_COMPONENT16 = 0x81A5;
2907
2908 @DomName('WebGL2RenderingContext.DEPTH_FUNC')
2909 @DocsEditable()
2910 @Experimental() // untriaged
2911 static const int DEPTH_FUNC = 0x0B74;
2912
2913 @DomName('WebGL2RenderingContext.DEPTH_RANGE')
2914 @DocsEditable()
2915 @Experimental() // untriaged
2916 static const int DEPTH_RANGE = 0x0B70;
2917
2918 @DomName('WebGL2RenderingContext.DEPTH_STENCIL')
2919 @DocsEditable()
2920 @Experimental() // untriaged
2921 static const int DEPTH_STENCIL = 0x84F9;
2922
2923 @DomName('WebGL2RenderingContext.DEPTH_STENCIL_ATTACHMENT')
2924 @DocsEditable()
2925 @Experimental() // untriaged
2926 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
2927
2928 @DomName('WebGL2RenderingContext.DEPTH_TEST')
2929 @DocsEditable()
2930 @Experimental() // untriaged
2931 static const int DEPTH_TEST = 0x0B71;
2932
2933 @DomName('WebGL2RenderingContext.DEPTH_WRITEMASK')
2934 @DocsEditable()
2935 @Experimental() // untriaged
2936 static const int DEPTH_WRITEMASK = 0x0B72;
2937
2938 @DomName('WebGL2RenderingContext.DITHER')
2939 @DocsEditable()
2940 @Experimental() // untriaged
2941 static const int DITHER = 0x0BD0;
2942
2943 @DomName('WebGL2RenderingContext.DONT_CARE')
2944 @DocsEditable()
2945 @Experimental() // untriaged
2946 static const int DONT_CARE = 0x1100;
2947
2948 @DomName('WebGL2RenderingContext.DST_ALPHA')
2949 @DocsEditable()
2950 @Experimental() // untriaged
2951 static const int DST_ALPHA = 0x0304;
2952
2953 @DomName('WebGL2RenderingContext.DST_COLOR')
2954 @DocsEditable()
2955 @Experimental() // untriaged
2956 static const int DST_COLOR = 0x0306;
2957
2958 @DomName('WebGL2RenderingContext.DYNAMIC_DRAW')
2959 @DocsEditable()
2960 @Experimental() // untriaged
2961 static const int DYNAMIC_DRAW = 0x88E8;
2962
2963 @DomName('WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER')
2964 @DocsEditable()
2965 @Experimental() // untriaged
2966 static const int ELEMENT_ARRAY_BUFFER = 0x8893;
2967
2968 @DomName('WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING')
2969 @DocsEditable()
2970 @Experimental() // untriaged
2971 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
2972
2973 @DomName('WebGL2RenderingContext.EQUAL')
2974 @DocsEditable()
2975 @Experimental() // untriaged
2976 static const int EQUAL = 0x0202;
2977
2978 @DomName('WebGL2RenderingContext.FASTEST')
2979 @DocsEditable()
2980 @Experimental() // untriaged
2981 static const int FASTEST = 0x1101;
2982
2983 @DomName('WebGL2RenderingContext.FLOAT')
2984 @DocsEditable()
2985 @Experimental() // untriaged
2986 static const int FLOAT = 0x1406;
2987
2988 @DomName('WebGL2RenderingContext.FLOAT_MAT2')
2989 @DocsEditable()
2990 @Experimental() // untriaged
2991 static const int FLOAT_MAT2 = 0x8B5A;
2992
2993 @DomName('WebGL2RenderingContext.FLOAT_MAT3')
2994 @DocsEditable()
2995 @Experimental() // untriaged
2996 static const int FLOAT_MAT3 = 0x8B5B;
2997
2998 @DomName('WebGL2RenderingContext.FLOAT_MAT4')
2999 @DocsEditable()
3000 @Experimental() // untriaged
3001 static const int FLOAT_MAT4 = 0x8B5C;
3002
3003 @DomName('WebGL2RenderingContext.FLOAT_VEC2')
3004 @DocsEditable()
3005 @Experimental() // untriaged
3006 static const int FLOAT_VEC2 = 0x8B50;
3007
3008 @DomName('WebGL2RenderingContext.FLOAT_VEC3')
3009 @DocsEditable()
3010 @Experimental() // untriaged
3011 static const int FLOAT_VEC3 = 0x8B51;
3012
3013 @DomName('WebGL2RenderingContext.FLOAT_VEC4')
3014 @DocsEditable()
3015 @Experimental() // untriaged
3016 static const int FLOAT_VEC4 = 0x8B52;
3017
3018 @DomName('WebGL2RenderingContext.FRAGMENT_SHADER')
3019 @DocsEditable()
3020 @Experimental() // untriaged
3021 static const int FRAGMENT_SHADER = 0x8B30;
3022
3023 @DomName('WebGL2RenderingContext.FRAMEBUFFER')
3024 @DocsEditable()
3025 @Experimental() // untriaged
3026 static const int FRAMEBUFFER = 0x8D40;
3027
3028 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME')
3029 @DocsEditable()
3030 @Experimental() // untriaged
3031 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
3032
3033 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE')
3034 @DocsEditable()
3035 @Experimental() // untriaged
3036 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
3037
3038 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE' )
3039 @DocsEditable()
3040 @Experimental() // untriaged
3041 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
3042
3043 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL')
3044 @DocsEditable()
3045 @Experimental() // untriaged
3046 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
3047
3048 @DomName('WebGL2RenderingContext.FRAMEBUFFER_BINDING')
3049 @DocsEditable()
3050 @Experimental() // untriaged
3051 static const int FRAMEBUFFER_BINDING = 0x8CA6;
3052
3053 @DomName('WebGL2RenderingContext.FRAMEBUFFER_COMPLETE')
3054 @DocsEditable()
3055 @Experimental() // untriaged
3056 static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
3057
3058 @DomName('WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT')
3059 @DocsEditable()
3060 @Experimental() // untriaged
3061 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
3062
3063 @DomName('WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS')
3064 @DocsEditable()
3065 @Experimental() // untriaged
3066 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
3067
3068 @DomName('WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT')
3069 @DocsEditable()
3070 @Experimental() // untriaged
3071 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
3072
3073 @DomName('WebGL2RenderingContext.FRAMEBUFFER_UNSUPPORTED')
3074 @DocsEditable()
3075 @Experimental() // untriaged
3076 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
3077
3078 @DomName('WebGL2RenderingContext.FRONT')
3079 @DocsEditable()
3080 @Experimental() // untriaged
3081 static const int FRONT = 0x0404;
3082
3083 @DomName('WebGL2RenderingContext.FRONT_AND_BACK')
3084 @DocsEditable()
3085 @Experimental() // untriaged
3086 static const int FRONT_AND_BACK = 0x0408;
3087
3088 @DomName('WebGL2RenderingContext.FRONT_FACE')
3089 @DocsEditable()
3090 @Experimental() // untriaged
3091 static const int FRONT_FACE = 0x0B46;
3092
3093 @DomName('WebGL2RenderingContext.FUNC_ADD')
3094 @DocsEditable()
3095 @Experimental() // untriaged
3096 static const int FUNC_ADD = 0x8006;
3097
3098 @DomName('WebGL2RenderingContext.FUNC_REVERSE_SUBTRACT')
3099 @DocsEditable()
3100 @Experimental() // untriaged
3101 static const int FUNC_REVERSE_SUBTRACT = 0x800B;
3102
3103 @DomName('WebGL2RenderingContext.FUNC_SUBTRACT')
3104 @DocsEditable()
3105 @Experimental() // untriaged
3106 static const int FUNC_SUBTRACT = 0x800A;
3107
3108 @DomName('WebGL2RenderingContext.GENERATE_MIPMAP_HINT')
3109 @DocsEditable()
3110 @Experimental() // untriaged
3111 static const int GENERATE_MIPMAP_HINT = 0x8192;
3112
3113 @DomName('WebGL2RenderingContext.GEQUAL')
3114 @DocsEditable()
3115 @Experimental() // untriaged
3116 static const int GEQUAL = 0x0206;
3117
3118 @DomName('WebGL2RenderingContext.GREATER')
3119 @DocsEditable()
3120 @Experimental() // untriaged
3121 static const int GREATER = 0x0204;
3122
3123 @DomName('WebGL2RenderingContext.GREEN_BITS')
3124 @DocsEditable()
3125 @Experimental() // untriaged
3126 static const int GREEN_BITS = 0x0D53;
3127
3128 @DomName('WebGL2RenderingContext.HIGH_FLOAT')
3129 @DocsEditable()
3130 @Experimental() // untriaged
3131 static const int HIGH_FLOAT = 0x8DF2;
3132
3133 @DomName('WebGL2RenderingContext.HIGH_INT')
3134 @DocsEditable()
3135 @Experimental() // untriaged
3136 static const int HIGH_INT = 0x8DF5;
3137
3138 @DomName('WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT')
3139 @DocsEditable()
3140 @Experimental() // untriaged
3141 static const int IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B;
3142
3143 @DomName('WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_TYPE')
3144 @DocsEditable()
3145 @Experimental() // untriaged
3146 static const int IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A;
3147
3148 @DomName('WebGL2RenderingContext.INCR')
3149 @DocsEditable()
3150 @Experimental() // untriaged
3151 static const int INCR = 0x1E02;
3152
3153 @DomName('WebGL2RenderingContext.INCR_WRAP')
3154 @DocsEditable()
3155 @Experimental() // untriaged
3156 static const int INCR_WRAP = 0x8507;
3157
3158 @DomName('WebGL2RenderingContext.INT')
3159 @DocsEditable()
3160 @Experimental() // untriaged
3161 static const int INT = 0x1404;
3162
3163 @DomName('WebGL2RenderingContext.INT_VEC2')
3164 @DocsEditable()
3165 @Experimental() // untriaged
3166 static const int INT_VEC2 = 0x8B53;
3167
3168 @DomName('WebGL2RenderingContext.INT_VEC3')
3169 @DocsEditable()
3170 @Experimental() // untriaged
3171 static const int INT_VEC3 = 0x8B54;
3172
3173 @DomName('WebGL2RenderingContext.INT_VEC4')
3174 @DocsEditable()
3175 @Experimental() // untriaged
3176 static const int INT_VEC4 = 0x8B55;
3177
3178 @DomName('WebGL2RenderingContext.INVALID_ENUM')
3179 @DocsEditable()
3180 @Experimental() // untriaged
3181 static const int INVALID_ENUM = 0x0500;
3182
3183 @DomName('WebGL2RenderingContext.INVALID_FRAMEBUFFER_OPERATION')
3184 @DocsEditable()
3185 @Experimental() // untriaged
3186 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
3187
3188 @DomName('WebGL2RenderingContext.INVALID_OPERATION')
3189 @DocsEditable()
3190 @Experimental() // untriaged
3191 static const int INVALID_OPERATION = 0x0502;
3192
3193 @DomName('WebGL2RenderingContext.INVALID_VALUE')
3194 @DocsEditable()
3195 @Experimental() // untriaged
3196 static const int INVALID_VALUE = 0x0501;
3197
3198 @DomName('WebGL2RenderingContext.INVERT')
3199 @DocsEditable()
3200 @Experimental() // untriaged
3201 static const int INVERT = 0x150A;
3202
3203 @DomName('WebGL2RenderingContext.KEEP')
3204 @DocsEditable()
3205 @Experimental() // untriaged
3206 static const int KEEP = 0x1E00;
3207
3208 @DomName('WebGL2RenderingContext.LEQUAL')
3209 @DocsEditable()
3210 @Experimental() // untriaged
3211 static const int LEQUAL = 0x0203;
3212
3213 @DomName('WebGL2RenderingContext.LESS')
3214 @DocsEditable()
3215 @Experimental() // untriaged
3216 static const int LESS = 0x0201;
3217
3218 @DomName('WebGL2RenderingContext.LINEAR')
3219 @DocsEditable()
3220 @Experimental() // untriaged
3221 static const int LINEAR = 0x2601;
3222
3223 @DomName('WebGL2RenderingContext.LINEAR_MIPMAP_LINEAR')
3224 @DocsEditable()
3225 @Experimental() // untriaged
3226 static const int LINEAR_MIPMAP_LINEAR = 0x2703;
3227
3228 @DomName('WebGL2RenderingContext.LINEAR_MIPMAP_NEAREST')
3229 @DocsEditable()
3230 @Experimental() // untriaged
3231 static const int LINEAR_MIPMAP_NEAREST = 0x2701;
3232
3233 @DomName('WebGL2RenderingContext.LINES')
3234 @DocsEditable()
3235 @Experimental() // untriaged
3236 static const int LINES = 0x0001;
3237
3238 @DomName('WebGL2RenderingContext.LINE_LOOP')
3239 @DocsEditable()
3240 @Experimental() // untriaged
3241 static const int LINE_LOOP = 0x0002;
3242
3243 @DomName('WebGL2RenderingContext.LINE_STRIP')
3244 @DocsEditable()
3245 @Experimental() // untriaged
3246 static const int LINE_STRIP = 0x0003;
3247
3248 @DomName('WebGL2RenderingContext.LINE_WIDTH')
3249 @DocsEditable()
3250 @Experimental() // untriaged
3251 static const int LINE_WIDTH = 0x0B21;
3252
3253 @DomName('WebGL2RenderingContext.LINK_STATUS')
3254 @DocsEditable()
3255 @Experimental() // untriaged
3256 static const int LINK_STATUS = 0x8B82;
3257
3258 @DomName('WebGL2RenderingContext.LOW_FLOAT')
3259 @DocsEditable()
3260 @Experimental() // untriaged
3261 static const int LOW_FLOAT = 0x8DF0;
3262
3263 @DomName('WebGL2RenderingContext.LOW_INT')
3264 @DocsEditable()
3265 @Experimental() // untriaged
3266 static const int LOW_INT = 0x8DF3;
3267
3268 @DomName('WebGL2RenderingContext.LUMINANCE')
3269 @DocsEditable()
3270 @Experimental() // untriaged
3271 static const int LUMINANCE = 0x1909;
3272
3273 @DomName('WebGL2RenderingContext.LUMINANCE_ALPHA')
3274 @DocsEditable()
3275 @Experimental() // untriaged
3276 static const int LUMINANCE_ALPHA = 0x190A;
3277
3278 @DomName('WebGL2RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS')
3279 @DocsEditable()
3280 @Experimental() // untriaged
3281 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
3282
3283 @DomName('WebGL2RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE')
3284 @DocsEditable()
3285 @Experimental() // untriaged
3286 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
3287
3288 @DomName('WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS')
3289 @DocsEditable()
3290 @Experimental() // untriaged
3291 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
3292
3293 @DomName('WebGL2RenderingContext.MAX_RENDERBUFFER_SIZE')
3294 @DocsEditable()
3295 @Experimental() // untriaged
3296 static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
3297
3298 @DomName('WebGL2RenderingContext.MAX_TEXTURE_IMAGE_UNITS')
3299 @DocsEditable()
3300 @Experimental() // untriaged
3301 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
3302
3303 @DomName('WebGL2RenderingContext.MAX_TEXTURE_SIZE')
3304 @DocsEditable()
3305 @Experimental() // untriaged
3306 static const int MAX_TEXTURE_SIZE = 0x0D33;
3307
3308 @DomName('WebGL2RenderingContext.MAX_VARYING_VECTORS')
3309 @DocsEditable()
3310 @Experimental() // untriaged
3311 static const int MAX_VARYING_VECTORS = 0x8DFC;
3312
3313 @DomName('WebGL2RenderingContext.MAX_VERTEX_ATTRIBS')
3314 @DocsEditable()
3315 @Experimental() // untriaged
3316 static const int MAX_VERTEX_ATTRIBS = 0x8869;
3317
3318 @DomName('WebGL2RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS')
3319 @DocsEditable()
3320 @Experimental() // untriaged
3321 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
3322
3323 @DomName('WebGL2RenderingContext.MAX_VERTEX_UNIFORM_VECTORS')
3324 @DocsEditable()
3325 @Experimental() // untriaged
3326 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
3327
3328 @DomName('WebGL2RenderingContext.MAX_VIEWPORT_DIMS')
3329 @DocsEditable()
3330 @Experimental() // untriaged
3331 static const int MAX_VIEWPORT_DIMS = 0x0D3A;
3332
3333 @DomName('WebGL2RenderingContext.MEDIUM_FLOAT')
3334 @DocsEditable()
3335 @Experimental() // untriaged
3336 static const int MEDIUM_FLOAT = 0x8DF1;
3337
3338 @DomName('WebGL2RenderingContext.MEDIUM_INT')
3339 @DocsEditable()
3340 @Experimental() // untriaged
3341 static const int MEDIUM_INT = 0x8DF4;
3342
3343 @DomName('WebGL2RenderingContext.MIRRORED_REPEAT')
3344 @DocsEditable()
3345 @Experimental() // untriaged
3346 static const int MIRRORED_REPEAT = 0x8370;
3347
3348 @DomName('WebGL2RenderingContext.NEAREST')
3349 @DocsEditable()
3350 @Experimental() // untriaged
3351 static const int NEAREST = 0x2600;
3352
3353 @DomName('WebGL2RenderingContext.NEAREST_MIPMAP_LINEAR')
3354 @DocsEditable()
3355 @Experimental() // untriaged
3356 static const int NEAREST_MIPMAP_LINEAR = 0x2702;
3357
3358 @DomName('WebGL2RenderingContext.NEAREST_MIPMAP_NEAREST')
3359 @DocsEditable()
3360 @Experimental() // untriaged
3361 static const int NEAREST_MIPMAP_NEAREST = 0x2700;
3362
3363 @DomName('WebGL2RenderingContext.NEVER')
3364 @DocsEditable()
3365 @Experimental() // untriaged
3366 static const int NEVER = 0x0200;
3367
3368 @DomName('WebGL2RenderingContext.NICEST')
3369 @DocsEditable()
3370 @Experimental() // untriaged
3371 static const int NICEST = 0x1102;
3372
3373 @DomName('WebGL2RenderingContext.NONE')
3374 @DocsEditable()
3375 @Experimental() // untriaged
3376 static const int NONE = 0;
3377
3378 @DomName('WebGL2RenderingContext.NOTEQUAL')
3379 @DocsEditable()
3380 @Experimental() // untriaged
3381 static const int NOTEQUAL = 0x0205;
3382
3383 @DomName('WebGL2RenderingContext.NO_ERROR')
3384 @DocsEditable()
3385 @Experimental() // untriaged
3386 static const int NO_ERROR = 0;
3387
3388 @DomName('WebGL2RenderingContext.ONE')
3389 @DocsEditable()
3390 @Experimental() // untriaged
3391 static const int ONE = 1;
3392
3393 @DomName('WebGL2RenderingContext.ONE_MINUS_CONSTANT_ALPHA')
3394 @DocsEditable()
3395 @Experimental() // untriaged
3396 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
3397
3398 @DomName('WebGL2RenderingContext.ONE_MINUS_CONSTANT_COLOR')
3399 @DocsEditable()
3400 @Experimental() // untriaged
3401 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
3402
3403 @DomName('WebGL2RenderingContext.ONE_MINUS_DST_ALPHA')
3404 @DocsEditable()
3405 @Experimental() // untriaged
3406 static const int ONE_MINUS_DST_ALPHA = 0x0305;
3407
3408 @DomName('WebGL2RenderingContext.ONE_MINUS_DST_COLOR')
3409 @DocsEditable()
3410 @Experimental() // untriaged
3411 static const int ONE_MINUS_DST_COLOR = 0x0307;
3412
3413 @DomName('WebGL2RenderingContext.ONE_MINUS_SRC_ALPHA')
3414 @DocsEditable()
3415 @Experimental() // untriaged
3416 static const int ONE_MINUS_SRC_ALPHA = 0x0303;
3417
3418 @DomName('WebGL2RenderingContext.ONE_MINUS_SRC_COLOR')
3419 @DocsEditable()
3420 @Experimental() // untriaged
3421 static const int ONE_MINUS_SRC_COLOR = 0x0301;
3422
3423 @DomName('WebGL2RenderingContext.OUT_OF_MEMORY')
3424 @DocsEditable()
3425 @Experimental() // untriaged
3426 static const int OUT_OF_MEMORY = 0x0505;
3427
3428 @DomName('WebGL2RenderingContext.PACK_ALIGNMENT')
3429 @DocsEditable()
3430 @Experimental() // untriaged
3431 static const int PACK_ALIGNMENT = 0x0D05;
3432
3433 @DomName('WebGL2RenderingContext.POINTS')
3434 @DocsEditable()
3435 @Experimental() // untriaged
3436 static const int POINTS = 0x0000;
3437
3438 @DomName('WebGL2RenderingContext.POLYGON_OFFSET_FACTOR')
3439 @DocsEditable()
3440 @Experimental() // untriaged
3441 static const int POLYGON_OFFSET_FACTOR = 0x8038;
3442
3443 @DomName('WebGL2RenderingContext.POLYGON_OFFSET_FILL')
3444 @DocsEditable()
3445 @Experimental() // untriaged
3446 static const int POLYGON_OFFSET_FILL = 0x8037;
3447
3448 @DomName('WebGL2RenderingContext.POLYGON_OFFSET_UNITS')
3449 @DocsEditable()
3450 @Experimental() // untriaged
3451 static const int POLYGON_OFFSET_UNITS = 0x2A00;
3452
3453 @DomName('WebGL2RenderingContext.RED_BITS')
3454 @DocsEditable()
3455 @Experimental() // untriaged
3456 static const int RED_BITS = 0x0D52;
3457
3458 @DomName('WebGL2RenderingContext.RENDERBUFFER')
3459 @DocsEditable()
3460 @Experimental() // untriaged
3461 static const int RENDERBUFFER = 0x8D41;
3462
3463 @DomName('WebGL2RenderingContext.RENDERBUFFER_ALPHA_SIZE')
3464 @DocsEditable()
3465 @Experimental() // untriaged
3466 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
3467
3468 @DomName('WebGL2RenderingContext.RENDERBUFFER_BINDING')
3469 @DocsEditable()
3470 @Experimental() // untriaged
3471 static const int RENDERBUFFER_BINDING = 0x8CA7;
3472
3473 @DomName('WebGL2RenderingContext.RENDERBUFFER_BLUE_SIZE')
3474 @DocsEditable()
3475 @Experimental() // untriaged
3476 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
3477
3478 @DomName('WebGL2RenderingContext.RENDERBUFFER_DEPTH_SIZE')
3479 @DocsEditable()
3480 @Experimental() // untriaged
3481 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
3482
3483 @DomName('WebGL2RenderingContext.RENDERBUFFER_GREEN_SIZE')
3484 @DocsEditable()
3485 @Experimental() // untriaged
3486 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
3487
3488 @DomName('WebGL2RenderingContext.RENDERBUFFER_HEIGHT')
3489 @DocsEditable()
3490 @Experimental() // untriaged
3491 static const int RENDERBUFFER_HEIGHT = 0x8D43;
3492
3493 @DomName('WebGL2RenderingContext.RENDERBUFFER_INTERNAL_FORMAT')
3494 @DocsEditable()
3495 @Experimental() // untriaged
3496 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
3497
3498 @DomName('WebGL2RenderingContext.RENDERBUFFER_RED_SIZE')
3499 @DocsEditable()
3500 @Experimental() // untriaged
3501 static const int RENDERBUFFER_RED_SIZE = 0x8D50;
3502
3503 @DomName('WebGL2RenderingContext.RENDERBUFFER_STENCIL_SIZE')
3504 @DocsEditable()
3505 @Experimental() // untriaged
3506 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
3507
3508 @DomName('WebGL2RenderingContext.RENDERBUFFER_WIDTH')
3509 @DocsEditable()
3510 @Experimental() // untriaged
3511 static const int RENDERBUFFER_WIDTH = 0x8D42;
3512
3513 @DomName('WebGL2RenderingContext.RENDERER')
3514 @DocsEditable()
3515 @Experimental() // untriaged
3516 static const int RENDERER = 0x1F01;
3517
3518 @DomName('WebGL2RenderingContext.REPEAT')
3519 @DocsEditable()
3520 @Experimental() // untriaged
3521 static const int REPEAT = 0x2901;
3522
3523 @DomName('WebGL2RenderingContext.REPLACE')
3524 @DocsEditable()
3525 @Experimental() // untriaged
3526 static const int REPLACE = 0x1E01;
3527
3528 @DomName('WebGL2RenderingContext.RGB')
3529 @DocsEditable()
3530 @Experimental() // untriaged
3531 static const int RGB = 0x1907;
3532
3533 @DomName('WebGL2RenderingContext.RGB565')
3534 @DocsEditable()
3535 @Experimental() // untriaged
3536 static const int RGB565 = 0x8D62;
3537
3538 @DomName('WebGL2RenderingContext.RGB5_A1')
3539 @DocsEditable()
3540 @Experimental() // untriaged
3541 static const int RGB5_A1 = 0x8057;
3542
3543 @DomName('WebGL2RenderingContext.RGBA')
3544 @DocsEditable()
3545 @Experimental() // untriaged
3546 static const int RGBA = 0x1908;
3547
3548 @DomName('WebGL2RenderingContext.RGBA4')
3549 @DocsEditable()
3550 @Experimental() // untriaged
3551 static const int RGBA4 = 0x8056;
3552
3553 @DomName('WebGL2RenderingContext.SAMPLER_2D')
3554 @DocsEditable()
3555 @Experimental() // untriaged
3556 static const int SAMPLER_2D = 0x8B5E;
3557
3558 @DomName('WebGL2RenderingContext.SAMPLER_CUBE')
3559 @DocsEditable()
3560 @Experimental() // untriaged
3561 static const int SAMPLER_CUBE = 0x8B60;
3562
3563 @DomName('WebGL2RenderingContext.SAMPLES')
3564 @DocsEditable()
3565 @Experimental() // untriaged
3566 static const int SAMPLES = 0x80A9;
3567
3568 @DomName('WebGL2RenderingContext.SAMPLE_ALPHA_TO_COVERAGE')
3569 @DocsEditable()
3570 @Experimental() // untriaged
3571 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
3572
3573 @DomName('WebGL2RenderingContext.SAMPLE_BUFFERS')
3574 @DocsEditable()
3575 @Experimental() // untriaged
3576 static const int SAMPLE_BUFFERS = 0x80A8;
3577
3578 @DomName('WebGL2RenderingContext.SAMPLE_COVERAGE')
3579 @DocsEditable()
3580 @Experimental() // untriaged
3581 static const int SAMPLE_COVERAGE = 0x80A0;
3582
3583 @DomName('WebGL2RenderingContext.SAMPLE_COVERAGE_INVERT')
3584 @DocsEditable()
3585 @Experimental() // untriaged
3586 static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
3587
3588 @DomName('WebGL2RenderingContext.SAMPLE_COVERAGE_VALUE')
3589 @DocsEditable()
3590 @Experimental() // untriaged
3591 static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
3592
3593 @DomName('WebGL2RenderingContext.SCISSOR_BOX')
3594 @DocsEditable()
3595 @Experimental() // untriaged
3596 static const int SCISSOR_BOX = 0x0C10;
3597
3598 @DomName('WebGL2RenderingContext.SCISSOR_TEST')
3599 @DocsEditable()
3600 @Experimental() // untriaged
3601 static const int SCISSOR_TEST = 0x0C11;
3602
3603 @DomName('WebGL2RenderingContext.SHADER_TYPE')
3604 @DocsEditable()
3605 @Experimental() // untriaged
3606 static const int SHADER_TYPE = 0x8B4F;
3607
3608 @DomName('WebGL2RenderingContext.SHADING_LANGUAGE_VERSION')
3609 @DocsEditable()
3610 @Experimental() // untriaged
3611 static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
3612
3613 @DomName('WebGL2RenderingContext.SHORT')
3614 @DocsEditable()
3615 @Experimental() // untriaged
3616 static const int SHORT = 0x1402;
3617
3618 @DomName('WebGL2RenderingContext.SRC_ALPHA')
3619 @DocsEditable()
3620 @Experimental() // untriaged
3621 static const int SRC_ALPHA = 0x0302;
3622
3623 @DomName('WebGL2RenderingContext.SRC_ALPHA_SATURATE')
3624 @DocsEditable()
3625 @Experimental() // untriaged
3626 static const int SRC_ALPHA_SATURATE = 0x0308;
3627
3628 @DomName('WebGL2RenderingContext.SRC_COLOR')
3629 @DocsEditable()
3630 @Experimental() // untriaged
3631 static const int SRC_COLOR = 0x0300;
3632
3633 @DomName('WebGL2RenderingContext.STATIC_DRAW')
3634 @DocsEditable()
3635 @Experimental() // untriaged
3636 static const int STATIC_DRAW = 0x88E4;
3637
3638 @DomName('WebGL2RenderingContext.STENCIL_ATTACHMENT')
3639 @DocsEditable()
3640 @Experimental() // untriaged
3641 static const int STENCIL_ATTACHMENT = 0x8D20;
3642
3643 @DomName('WebGL2RenderingContext.STENCIL_BACK_FAIL')
3644 @DocsEditable()
3645 @Experimental() // untriaged
3646 static const int STENCIL_BACK_FAIL = 0x8801;
3647
3648 @DomName('WebGL2RenderingContext.STENCIL_BACK_FUNC')
3649 @DocsEditable()
3650 @Experimental() // untriaged
3651 static const int STENCIL_BACK_FUNC = 0x8800;
3652
3653 @DomName('WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL')
3654 @DocsEditable()
3655 @Experimental() // untriaged
3656 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
3657
3658 @DomName('WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS')
3659 @DocsEditable()
3660 @Experimental() // untriaged
3661 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
3662
3663 @DomName('WebGL2RenderingContext.STENCIL_BACK_REF')
3664 @DocsEditable()
3665 @Experimental() // untriaged
3666 static const int STENCIL_BACK_REF = 0x8CA3;
3667
3668 @DomName('WebGL2RenderingContext.STENCIL_BACK_VALUE_MASK')
3669 @DocsEditable()
3670 @Experimental() // untriaged
3671 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
3672
3673 @DomName('WebGL2RenderingContext.STENCIL_BACK_WRITEMASK')
3674 @DocsEditable()
3675 @Experimental() // untriaged
3676 static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
3677
3678 @DomName('WebGL2RenderingContext.STENCIL_BITS')
3679 @DocsEditable()
3680 @Experimental() // untriaged
3681 static const int STENCIL_BITS = 0x0D57;
3682
3683 @DomName('WebGL2RenderingContext.STENCIL_BUFFER_BIT')
3684 @DocsEditable()
3685 @Experimental() // untriaged
3686 static const int STENCIL_BUFFER_BIT = 0x00000400;
3687
3688 @DomName('WebGL2RenderingContext.STENCIL_CLEAR_VALUE')
3689 @DocsEditable()
3690 @Experimental() // untriaged
3691 static const int STENCIL_CLEAR_VALUE = 0x0B91;
3692
3693 @DomName('WebGL2RenderingContext.STENCIL_FAIL')
3694 @DocsEditable()
3695 @Experimental() // untriaged
3696 static const int STENCIL_FAIL = 0x0B94;
3697
3698 @DomName('WebGL2RenderingContext.STENCIL_FUNC')
3699 @DocsEditable()
3700 @Experimental() // untriaged
3701 static const int STENCIL_FUNC = 0x0B92;
3702
3703 @DomName('WebGL2RenderingContext.STENCIL_INDEX')
3704 @DocsEditable()
3705 @Experimental() // untriaged
3706 static const int STENCIL_INDEX = 0x1901;
3707
3708 @DomName('WebGL2RenderingContext.STENCIL_INDEX8')
3709 @DocsEditable()
3710 @Experimental() // untriaged
3711 static const int STENCIL_INDEX8 = 0x8D48;
3712
3713 @DomName('WebGL2RenderingContext.STENCIL_PASS_DEPTH_FAIL')
3714 @DocsEditable()
3715 @Experimental() // untriaged
3716 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
3717
3718 @DomName('WebGL2RenderingContext.STENCIL_PASS_DEPTH_PASS')
3719 @DocsEditable()
3720 @Experimental() // untriaged
3721 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
3722
3723 @DomName('WebGL2RenderingContext.STENCIL_REF')
3724 @DocsEditable()
3725 @Experimental() // untriaged
3726 static const int STENCIL_REF = 0x0B97;
3727
3728 @DomName('WebGL2RenderingContext.STENCIL_TEST')
3729 @DocsEditable()
3730 @Experimental() // untriaged
3731 static const int STENCIL_TEST = 0x0B90;
3732
3733 @DomName('WebGL2RenderingContext.STENCIL_VALUE_MASK')
3734 @DocsEditable()
3735 @Experimental() // untriaged
3736 static const int STENCIL_VALUE_MASK = 0x0B93;
3737
3738 @DomName('WebGL2RenderingContext.STENCIL_WRITEMASK')
3739 @DocsEditable()
3740 @Experimental() // untriaged
3741 static const int STENCIL_WRITEMASK = 0x0B98;
3742
3743 @DomName('WebGL2RenderingContext.STREAM_DRAW')
3744 @DocsEditable()
3745 @Experimental() // untriaged
3746 static const int STREAM_DRAW = 0x88E0;
3747
3748 @DomName('WebGL2RenderingContext.SUBPIXEL_BITS')
3749 @DocsEditable()
3750 @Experimental() // untriaged
3751 static const int SUBPIXEL_BITS = 0x0D50;
3752
3753 @DomName('WebGL2RenderingContext.TEXTURE')
3754 @DocsEditable()
3755 @Experimental() // untriaged
3756 static const int TEXTURE = 0x1702;
3757
3758 @DomName('WebGL2RenderingContext.TEXTURE0')
3759 @DocsEditable()
3760 @Experimental() // untriaged
3761 static const int TEXTURE0 = 0x84C0;
3762
3763 @DomName('WebGL2RenderingContext.TEXTURE1')
3764 @DocsEditable()
3765 @Experimental() // untriaged
3766 static const int TEXTURE1 = 0x84C1;
3767
3768 @DomName('WebGL2RenderingContext.TEXTURE10')
3769 @DocsEditable()
3770 @Experimental() // untriaged
3771 static const int TEXTURE10 = 0x84CA;
3772
3773 @DomName('WebGL2RenderingContext.TEXTURE11')
3774 @DocsEditable()
3775 @Experimental() // untriaged
3776 static const int TEXTURE11 = 0x84CB;
3777
3778 @DomName('WebGL2RenderingContext.TEXTURE12')
3779 @DocsEditable()
3780 @Experimental() // untriaged
3781 static const int TEXTURE12 = 0x84CC;
3782
3783 @DomName('WebGL2RenderingContext.TEXTURE13')
3784 @DocsEditable()
3785 @Experimental() // untriaged
3786 static const int TEXTURE13 = 0x84CD;
3787
3788 @DomName('WebGL2RenderingContext.TEXTURE14')
3789 @DocsEditable()
3790 @Experimental() // untriaged
3791 static const int TEXTURE14 = 0x84CE;
3792
3793 @DomName('WebGL2RenderingContext.TEXTURE15')
3794 @DocsEditable()
3795 @Experimental() // untriaged
3796 static const int TEXTURE15 = 0x84CF;
3797
3798 @DomName('WebGL2RenderingContext.TEXTURE16')
3799 @DocsEditable()
3800 @Experimental() // untriaged
3801 static const int TEXTURE16 = 0x84D0;
3802
3803 @DomName('WebGL2RenderingContext.TEXTURE17')
3804 @DocsEditable()
3805 @Experimental() // untriaged
3806 static const int TEXTURE17 = 0x84D1;
3807
3808 @DomName('WebGL2RenderingContext.TEXTURE18')
3809 @DocsEditable()
3810 @Experimental() // untriaged
3811 static const int TEXTURE18 = 0x84D2;
3812
3813 @DomName('WebGL2RenderingContext.TEXTURE19')
3814 @DocsEditable()
3815 @Experimental() // untriaged
3816 static const int TEXTURE19 = 0x84D3;
3817
3818 @DomName('WebGL2RenderingContext.TEXTURE2')
3819 @DocsEditable()
3820 @Experimental() // untriaged
3821 static const int TEXTURE2 = 0x84C2;
3822
3823 @DomName('WebGL2RenderingContext.TEXTURE20')
3824 @DocsEditable()
3825 @Experimental() // untriaged
3826 static const int TEXTURE20 = 0x84D4;
3827
3828 @DomName('WebGL2RenderingContext.TEXTURE21')
3829 @DocsEditable()
3830 @Experimental() // untriaged
3831 static const int TEXTURE21 = 0x84D5;
3832
3833 @DomName('WebGL2RenderingContext.TEXTURE22')
3834 @DocsEditable()
3835 @Experimental() // untriaged
3836 static const int TEXTURE22 = 0x84D6;
3837
3838 @DomName('WebGL2RenderingContext.TEXTURE23')
3839 @DocsEditable()
3840 @Experimental() // untriaged
3841 static const int TEXTURE23 = 0x84D7;
3842
3843 @DomName('WebGL2RenderingContext.TEXTURE24')
3844 @DocsEditable()
3845 @Experimental() // untriaged
3846 static const int TEXTURE24 = 0x84D8;
3847
3848 @DomName('WebGL2RenderingContext.TEXTURE25')
3849 @DocsEditable()
3850 @Experimental() // untriaged
3851 static const int TEXTURE25 = 0x84D9;
3852
3853 @DomName('WebGL2RenderingContext.TEXTURE26')
3854 @DocsEditable()
3855 @Experimental() // untriaged
3856 static const int TEXTURE26 = 0x84DA;
3857
3858 @DomName('WebGL2RenderingContext.TEXTURE27')
3859 @DocsEditable()
3860 @Experimental() // untriaged
3861 static const int TEXTURE27 = 0x84DB;
3862
3863 @DomName('WebGL2RenderingContext.TEXTURE28')
3864 @DocsEditable()
3865 @Experimental() // untriaged
3866 static const int TEXTURE28 = 0x84DC;
3867
3868 @DomName('WebGL2RenderingContext.TEXTURE29')
3869 @DocsEditable()
3870 @Experimental() // untriaged
3871 static const int TEXTURE29 = 0x84DD;
3872
3873 @DomName('WebGL2RenderingContext.TEXTURE3')
3874 @DocsEditable()
3875 @Experimental() // untriaged
3876 static const int TEXTURE3 = 0x84C3;
3877
3878 @DomName('WebGL2RenderingContext.TEXTURE30')
3879 @DocsEditable()
3880 @Experimental() // untriaged
3881 static const int TEXTURE30 = 0x84DE;
3882
3883 @DomName('WebGL2RenderingContext.TEXTURE31')
3884 @DocsEditable()
3885 @Experimental() // untriaged
3886 static const int TEXTURE31 = 0x84DF;
3887
3888 @DomName('WebGL2RenderingContext.TEXTURE4')
3889 @DocsEditable()
3890 @Experimental() // untriaged
3891 static const int TEXTURE4 = 0x84C4;
3892
3893 @DomName('WebGL2RenderingContext.TEXTURE5')
3894 @DocsEditable()
3895 @Experimental() // untriaged
3896 static const int TEXTURE5 = 0x84C5;
3897
3898 @DomName('WebGL2RenderingContext.TEXTURE6')
3899 @DocsEditable()
3900 @Experimental() // untriaged
3901 static const int TEXTURE6 = 0x84C6;
3902
3903 @DomName('WebGL2RenderingContext.TEXTURE7')
3904 @DocsEditable()
3905 @Experimental() // untriaged
3906 static const int TEXTURE7 = 0x84C7;
3907
3908 @DomName('WebGL2RenderingContext.TEXTURE8')
3909 @DocsEditable()
3910 @Experimental() // untriaged
3911 static const int TEXTURE8 = 0x84C8;
3912
3913 @DomName('WebGL2RenderingContext.TEXTURE9')
3914 @DocsEditable()
3915 @Experimental() // untriaged
3916 static const int TEXTURE9 = 0x84C9;
3917
3918 @DomName('WebGL2RenderingContext.TEXTURE_2D')
3919 @DocsEditable()
3920 @Experimental() // untriaged
3921 static const int TEXTURE_2D = 0x0DE1;
3922
3923 @DomName('WebGL2RenderingContext.TEXTURE_BINDING_2D')
3924 @DocsEditable()
3925 @Experimental() // untriaged
3926 static const int TEXTURE_BINDING_2D = 0x8069;
3927
3928 @DomName('WebGL2RenderingContext.TEXTURE_BINDING_CUBE_MAP')
3929 @DocsEditable()
3930 @Experimental() // untriaged
3931 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
3932
3933 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP')
3934 @DocsEditable()
3935 @Experimental() // untriaged
3936 static const int TEXTURE_CUBE_MAP = 0x8513;
3937
3938 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X')
3939 @DocsEditable()
3940 @Experimental() // untriaged
3941 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
3942
3943 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y')
3944 @DocsEditable()
3945 @Experimental() // untriaged
3946 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
3947
3948 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z')
3949 @DocsEditable()
3950 @Experimental() // untriaged
3951 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
3952
3953 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X')
3954 @DocsEditable()
3955 @Experimental() // untriaged
3956 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
3957
3958 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y')
3959 @DocsEditable()
3960 @Experimental() // untriaged
3961 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
3962
3963 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z')
3964 @DocsEditable()
3965 @Experimental() // untriaged
3966 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
3967
3968 @DomName('WebGL2RenderingContext.TEXTURE_MAG_FILTER')
3969 @DocsEditable()
3970 @Experimental() // untriaged
3971 static const int TEXTURE_MAG_FILTER = 0x2800;
3972
3973 @DomName('WebGL2RenderingContext.TEXTURE_MIN_FILTER')
3974 @DocsEditable()
3975 @Experimental() // untriaged
3976 static const int TEXTURE_MIN_FILTER = 0x2801;
3977
3978 @DomName('WebGL2RenderingContext.TEXTURE_WRAP_S')
3979 @DocsEditable()
3980 @Experimental() // untriaged
3981 static const int TEXTURE_WRAP_S = 0x2802;
3982
3983 @DomName('WebGL2RenderingContext.TEXTURE_WRAP_T')
3984 @DocsEditable()
3985 @Experimental() // untriaged
3986 static const int TEXTURE_WRAP_T = 0x2803;
3987
3988 @DomName('WebGL2RenderingContext.TRIANGLES')
3989 @DocsEditable()
3990 @Experimental() // untriaged
3991 static const int TRIANGLES = 0x0004;
3992
3993 @DomName('WebGL2RenderingContext.TRIANGLE_FAN')
3994 @DocsEditable()
3995 @Experimental() // untriaged
3996 static const int TRIANGLE_FAN = 0x0006;
3997
3998 @DomName('WebGL2RenderingContext.TRIANGLE_STRIP')
3999 @DocsEditable()
4000 @Experimental() // untriaged
4001 static const int TRIANGLE_STRIP = 0x0005;
4002
4003 @DomName('WebGL2RenderingContext.UNPACK_ALIGNMENT')
4004 @DocsEditable()
4005 @Experimental() // untriaged
4006 static const int UNPACK_ALIGNMENT = 0x0CF5;
4007
4008 @DomName('WebGL2RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL')
4009 @DocsEditable()
4010 @Experimental() // untriaged
4011 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
4012
4013 @DomName('WebGL2RenderingContext.UNPACK_FLIP_Y_WEBGL')
4014 @DocsEditable()
4015 @Experimental() // untriaged
4016 static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
4017
4018 @DomName('WebGL2RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL')
4019 @DocsEditable()
4020 @Experimental() // untriaged
4021 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
4022
4023 @DomName('WebGL2RenderingContext.UNSIGNED_BYTE')
4024 @DocsEditable()
4025 @Experimental() // untriaged
4026 static const int UNSIGNED_BYTE = 0x1401;
4027
4028 @DomName('WebGL2RenderingContext.UNSIGNED_INT')
4029 @DocsEditable()
4030 @Experimental() // untriaged
4031 static const int UNSIGNED_INT = 0x1405;
4032
4033 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT')
4034 @DocsEditable()
4035 @Experimental() // untriaged
4036 static const int UNSIGNED_SHORT = 0x1403;
4037
4038 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT_4_4_4_4')
4039 @DocsEditable()
4040 @Experimental() // untriaged
4041 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
4042
4043 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT_5_5_5_1')
4044 @DocsEditable()
4045 @Experimental() // untriaged
4046 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
4047
4048 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT_5_6_5')
4049 @DocsEditable()
4050 @Experimental() // untriaged
4051 static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
4052
4053 @DomName('WebGL2RenderingContext.VALIDATE_STATUS')
4054 @DocsEditable()
4055 @Experimental() // untriaged
4056 static const int VALIDATE_STATUS = 0x8B83;
4057
4058 @DomName('WebGL2RenderingContext.VENDOR')
4059 @DocsEditable()
4060 @Experimental() // untriaged
4061 static const int VENDOR = 0x1F00;
4062
4063 @DomName('WebGL2RenderingContext.VERSION')
4064 @DocsEditable()
4065 @Experimental() // untriaged
4066 static const int VERSION = 0x1F02;
4067
4068 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING')
4069 @DocsEditable()
4070 @Experimental() // untriaged
4071 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
4072
4073 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED')
4074 @DocsEditable()
4075 @Experimental() // untriaged
4076 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
4077
4078 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED')
4079 @DocsEditable()
4080 @Experimental() // untriaged
4081 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
4082
4083 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER')
4084 @DocsEditable()
4085 @Experimental() // untriaged
4086 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
4087
4088 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE')
4089 @DocsEditable()
4090 @Experimental() // untriaged
4091 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
4092
4093 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE')
4094 @DocsEditable()
4095 @Experimental() // untriaged
4096 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
4097
4098 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE')
4099 @DocsEditable()
4100 @Experimental() // untriaged
4101 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
4102
4103 @DomName('WebGL2RenderingContext.VERTEX_SHADER')
4104 @DocsEditable()
4105 @Experimental() // untriaged
4106 static const int VERTEX_SHADER = 0x8B31;
4107
4108 @DomName('WebGL2RenderingContext.VIEWPORT')
4109 @DocsEditable()
4110 @Experimental() // untriaged
4111 static const int VIEWPORT = 0x0BA2;
4112
4113 @DomName('WebGL2RenderingContext.ZERO')
4114 @DocsEditable()
4115 @Experimental() // untriaged
4116 static const int ZERO = 0;
4117
4118 // From WebGL2RenderingContextBase
4119
4120 @DomName('WebGL2RenderingContext.beginQuery')
4121 @DocsEditable()
4122 @Experimental() // untriaged
4123 void beginQuery(int target, Query query) native;
4124
4125 @DomName('WebGL2RenderingContext.beginTransformFeedback')
4126 @DocsEditable()
4127 @Experimental() // untriaged
4128 void beginTransformFeedback(int primitiveMode) native;
4129
4130 @DomName('WebGL2RenderingContext.bindBufferBase')
4131 @DocsEditable()
4132 @Experimental() // untriaged
4133 void bindBufferBase(int target, int index, Buffer buffer) native;
4134
4135 @DomName('WebGL2RenderingContext.bindBufferRange')
4136 @DocsEditable()
4137 @Experimental() // untriaged
4138 void bindBufferRange(int target, int index, Buffer buffer, int offset, int siz e) native;
4139
4140 @DomName('WebGL2RenderingContext.bindSampler')
4141 @DocsEditable()
4142 @Experimental() // untriaged
4143 void bindSampler(int unit, Sampler sampler) native;
4144
4145 @DomName('WebGL2RenderingContext.bindTransformFeedback')
4146 @DocsEditable()
4147 @Experimental() // untriaged
4148 void bindTransformFeedback(int target, TransformFeedback feedback) native;
4149
4150 @DomName('WebGL2RenderingContext.bindVertexArray')
4151 @DocsEditable()
4152 @Experimental() // untriaged
4153 void bindVertexArray(VertexArrayObject vertexArray) native;
4154
4155 @DomName('WebGL2RenderingContext.blitFramebuffer')
4156 @DocsEditable()
4157 @Experimental() // untriaged
4158 void blitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, in t dstY0, int dstX1, int dstY1, int mask, int filter) native;
4159
4160 @DomName('WebGL2RenderingContext.clearBufferfi')
4161 @DocsEditable()
4162 @Experimental() // untriaged
4163 void clearBufferfi(int buffer, int drawbuffer, num depth, int stencil) native;
4164
4165 @DomName('WebGL2RenderingContext.clearBufferfv')
4166 @DocsEditable()
4167 @Experimental() // untriaged
4168 void clearBufferfv(int buffer, int drawbuffer, Float32List value) native;
4169
4170 @DomName('WebGL2RenderingContext.clearBufferiv')
4171 @DocsEditable()
4172 @Experimental() // untriaged
4173 void clearBufferiv(int buffer, int drawbuffer, Int32List value) native;
4174
4175 @DomName('WebGL2RenderingContext.clearBufferuiv')
4176 @DocsEditable()
4177 @Experimental() // untriaged
4178 void clearBufferuiv(int buffer, int drawbuffer, Uint32List value) native;
4179
4180 @DomName('WebGL2RenderingContext.clientWaitSync')
4181 @DocsEditable()
4182 @Experimental() // untriaged
4183 int clientWaitSync(Sync sync, int flags, int timeout) native;
4184
4185 @DomName('WebGL2RenderingContext.compressedTexImage3D')
4186 @DocsEditable()
4187 @Experimental() // untriaged
4188 void compressedTexImage3D(int target, int level, int internalformat, int width , int height, int depth, int border, TypedData data) native;
4189
4190 @DomName('WebGL2RenderingContext.compressedTexSubImage3D')
4191 @DocsEditable()
4192 @Experimental() // untriaged
4193 void compressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, TypedData data) nativ e;
4194
4195 @DomName('WebGL2RenderingContext.copyBufferSubData')
4196 @DocsEditable()
4197 @Experimental() // untriaged
4198 void copyBufferSubData(int readTarget, int writeTarget, int readOffset, int wr iteOffset, int size) native;
4199
4200 @DomName('WebGL2RenderingContext.copyTexSubImage3D')
4201 @DocsEditable()
4202 @Experimental() // untriaged
4203 void copyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zo ffset, int x, int y, int width, int height) native;
4204
4205 @DomName('WebGL2RenderingContext.createQuery')
4206 @DocsEditable()
4207 @Experimental() // untriaged
4208 Query createQuery() native;
4209
4210 @DomName('WebGL2RenderingContext.createSampler')
4211 @DocsEditable()
4212 @Experimental() // untriaged
4213 Sampler createSampler() native;
4214
4215 @DomName('WebGL2RenderingContext.createTransformFeedback')
4216 @DocsEditable()
4217 @Experimental() // untriaged
4218 TransformFeedback createTransformFeedback() native;
4219
4220 @DomName('WebGL2RenderingContext.createVertexArray')
4221 @DocsEditable()
4222 @Experimental() // untriaged
4223 VertexArrayObject createVertexArray() native;
4224
4225 @DomName('WebGL2RenderingContext.deleteQuery')
4226 @DocsEditable()
4227 @Experimental() // untriaged
4228 void deleteQuery(Query query) native;
4229
4230 @DomName('WebGL2RenderingContext.deleteSampler')
4231 @DocsEditable()
4232 @Experimental() // untriaged
4233 void deleteSampler(Sampler sampler) native;
4234
4235 @DomName('WebGL2RenderingContext.deleteSync')
4236 @DocsEditable()
4237 @Experimental() // untriaged
4238 void deleteSync(Sync sync) native;
4239
4240 @DomName('WebGL2RenderingContext.deleteTransformFeedback')
4241 @DocsEditable()
4242 @Experimental() // untriaged
4243 void deleteTransformFeedback(TransformFeedback feedback) native;
4244
4245 @DomName('WebGL2RenderingContext.deleteVertexArray')
4246 @DocsEditable()
4247 @Experimental() // untriaged
4248 void deleteVertexArray(VertexArrayObject vertexArray) native;
4249
4250 @DomName('WebGL2RenderingContext.drawArraysInstanced')
4251 @DocsEditable()
4252 @Experimental() // untriaged
4253 void drawArraysInstanced(int mode, int first, int count, int instanceCount) na tive;
4254
4255 @DomName('WebGL2RenderingContext.drawBuffers')
4256 @DocsEditable()
4257 @Experimental() // untriaged
4258 void drawBuffers(List<int> buffers) native;
4259
4260 @DomName('WebGL2RenderingContext.drawElementsInstanced')
4261 @DocsEditable()
4262 @Experimental() // untriaged
4263 void drawElementsInstanced(int mode, int count, int type, int offset, int inst anceCount) native;
4264
4265 @DomName('WebGL2RenderingContext.drawRangeElements')
4266 @DocsEditable()
4267 @Experimental() // untriaged
4268 void drawRangeElements(int mode, int start, int end, int count, int type, int offset) native;
4269
4270 @DomName('WebGL2RenderingContext.endQuery')
4271 @DocsEditable()
4272 @Experimental() // untriaged
4273 void endQuery(int target) native;
4274
4275 @DomName('WebGL2RenderingContext.endTransformFeedback')
4276 @DocsEditable()
4277 @Experimental() // untriaged
4278 void endTransformFeedback() native;
4279
4280 @DomName('WebGL2RenderingContext.fenceSync')
4281 @DocsEditable()
4282 @Experimental() // untriaged
4283 Sync fenceSync(int condition, int flags) native;
4284
4285 @DomName('WebGL2RenderingContext.framebufferTextureLayer')
4286 @DocsEditable()
4287 @Experimental() // untriaged
4288 void framebufferTextureLayer(int target, int attachment, Texture texture, int level, int layer) native;
4289
4290 @DomName('WebGL2RenderingContext.getActiveUniformBlockName')
4291 @DocsEditable()
4292 @Experimental() // untriaged
4293 String getActiveUniformBlockName(Program program, int uniformBlockIndex) nativ e;
4294
4295 @DomName('WebGL2RenderingContext.getActiveUniformBlockParameter')
4296 @DocsEditable()
4297 @Experimental() // untriaged
4298 Object getActiveUniformBlockParameter(Program program, int uniformBlockIndex, int pname) native;
4299
4300 @DomName('WebGL2RenderingContext.getBufferSubData')
4301 @DocsEditable()
4302 @Experimental() // untriaged
4303 void getBufferSubData(int target, int offset, ByteBuffer returnedData) native;
4304
4305 @DomName('WebGL2RenderingContext.getFragDataLocation')
4306 @DocsEditable()
4307 @Experimental() // untriaged
4308 int getFragDataLocation(Program program, String name) native;
4309
4310 @DomName('WebGL2RenderingContext.getIndexedParameter')
4311 @DocsEditable()
4312 @Experimental() // untriaged
4313 Object getIndexedParameter(int target, int index) native;
4314
4315 @DomName('WebGL2RenderingContext.getInternalformatParameter')
4316 @DocsEditable()
4317 @Experimental() // untriaged
4318 Object getInternalformatParameter(int target, int internalformat, int pname) n ative;
4319
4320 @DomName('WebGL2RenderingContext.getQuery')
4321 @DocsEditable()
4322 @Experimental() // untriaged
4323 Query getQuery(int target, int pname) native;
4324
4325 @DomName('WebGL2RenderingContext.getQueryParameter')
4326 @DocsEditable()
4327 @Experimental() // untriaged
4328 Object getQueryParameter(Query query, int pname) native;
4329
4330 @DomName('WebGL2RenderingContext.getSamplerParameter')
4331 @DocsEditable()
4332 @Experimental() // untriaged
4333 Object getSamplerParameter(Sampler sampler, int pname) native;
4334
4335 @DomName('WebGL2RenderingContext.getSyncParameter')
4336 @DocsEditable()
4337 @Experimental() // untriaged
4338 Object getSyncParameter(Sync sync, int pname) native;
4339
4340 @DomName('WebGL2RenderingContext.getTransformFeedbackVarying')
4341 @DocsEditable()
4342 @Experimental() // untriaged
4343 ActiveInfo getTransformFeedbackVarying(Program program, int index) native;
4344
4345 @DomName('WebGL2RenderingContext.getUniformBlockIndex')
4346 @DocsEditable()
4347 @Experimental() // untriaged
4348 int getUniformBlockIndex(Program program, String uniformBlockName) native;
4349
4350 @DomName('WebGL2RenderingContext.invalidateFramebuffer')
4351 @DocsEditable()
4352 @Experimental() // untriaged
4353 void invalidateFramebuffer(int target, List<int> attachments) native;
4354
4355 @DomName('WebGL2RenderingContext.invalidateSubFramebuffer')
4356 @DocsEditable()
4357 @Experimental() // untriaged
4358 void invalidateSubFramebuffer(int target, List<int> attachments, int x, int y, int width, int height) native;
4359
4360 @DomName('WebGL2RenderingContext.isQuery')
4361 @DocsEditable()
4362 @Experimental() // untriaged
4363 bool isQuery(Query query) native;
4364
4365 @DomName('WebGL2RenderingContext.isSampler')
4366 @DocsEditable()
4367 @Experimental() // untriaged
4368 bool isSampler(Sampler sampler) native;
4369
4370 @DomName('WebGL2RenderingContext.isSync')
4371 @DocsEditable()
4372 @Experimental() // untriaged
4373 bool isSync(Sync sync) native;
4374
4375 @DomName('WebGL2RenderingContext.isTransformFeedback')
4376 @DocsEditable()
4377 @Experimental() // untriaged
4378 bool isTransformFeedback(TransformFeedback feedback) native;
4379
4380 @DomName('WebGL2RenderingContext.isVertexArray')
4381 @DocsEditable()
4382 @Experimental() // untriaged
4383 bool isVertexArray(VertexArrayObject vertexArray) native;
4384
4385 @DomName('WebGL2RenderingContext.pauseTransformFeedback')
4386 @DocsEditable()
4387 @Experimental() // untriaged
4388 void pauseTransformFeedback() native;
4389
4390 @DomName('WebGL2RenderingContext.readBuffer')
4391 @DocsEditable()
4392 @Experimental() // untriaged
4393 void readBuffer(int mode) native;
4394
4395 @DomName('WebGL2RenderingContext.renderbufferStorageMultisample')
4396 @DocsEditable()
4397 @Experimental() // untriaged
4398 void renderbufferStorageMultisample(int target, int samples, int internalforma t, int width, int height) native;
4399
4400 @DomName('WebGL2RenderingContext.resumeTransformFeedback')
4401 @DocsEditable()
4402 @Experimental() // untriaged
4403 void resumeTransformFeedback() native;
4404
4405 @DomName('WebGL2RenderingContext.samplerParameterf')
4406 @DocsEditable()
4407 @Experimental() // untriaged
4408 void samplerParameterf(Sampler sampler, int pname, num param) native;
4409
4410 @DomName('WebGL2RenderingContext.samplerParameteri')
4411 @DocsEditable()
4412 @Experimental() // untriaged
4413 void samplerParameteri(Sampler sampler, int pname, int param) native;
4414
4415 @DomName('WebGL2RenderingContext.texImage3D')
4416 @DocsEditable()
4417 @Experimental() // untriaged
4418 void texImage3D(int target, int level, int internalformat, int width, int heig ht, int depth, int border, int format, int type, TypedData pixels) native;
4419
4420 @DomName('WebGL2RenderingContext.texStorage2D')
4421 @DocsEditable()
4422 @Experimental() // untriaged
4423 void texStorage2D(int target, int levels, int internalformat, int width, int h eight) native;
4424
4425 @DomName('WebGL2RenderingContext.texStorage3D')
4426 @DocsEditable()
4427 @Experimental() // untriaged
4428 void texStorage3D(int target, int levels, int internalformat, int width, int h eight, int depth) native;
4429
4430 @DomName('WebGL2RenderingContext.texSubImage3D')
4431 @DocsEditable()
4432 @Experimental() // untriaged
4433 void texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffse t, int format_OR_width, int height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_ video, [int format, int type, TypedData pixels]) {
4434 if (pixels != null && type != null && format != null && (canvas_OR_data_OR_d epth_OR_image_OR_video is int)) {
4435 _texSubImage3D_1(target, level, xoffset, yoffset, zoffset, format_OR_width , height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video, format, type, pixel s);
4436 return;
4437 }
4438 if ((canvas_OR_data_OR_depth_OR_image_OR_video is ImageData || canvas_OR_dat a_OR_depth_OR_image_OR_video == null) && format == null && type == null && pixel s == null) {
4439 var data_1 = convertDartToNative_ImageData(canvas_OR_data_OR_depth_OR_imag e_OR_video);
4440 _texSubImage3D_2(target, level, xoffset, yoffset, zoffset, format_OR_width , height_OR_type, data_1);
4441 return;
4442 }
4443 if ((canvas_OR_data_OR_depth_OR_image_OR_video is ImageElement || canvas_OR_ data_OR_depth_OR_image_OR_video == null) && format == null && type == null && pi xels == null) {
4444 _texSubImage3D_3(target, level, xoffset, yoffset, zoffset, format_OR_width , height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video);
4445 return;
4446 }
4447 if ((canvas_OR_data_OR_depth_OR_image_OR_video is CanvasElement || canvas_OR _data_OR_depth_OR_image_OR_video == null) && format == null && type == null && p ixels == null) {
4448 _texSubImage3D_4(target, level, xoffset, yoffset, zoffset, format_OR_width , height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video);
4449 return;
4450 }
4451 if ((canvas_OR_data_OR_depth_OR_image_OR_video is VideoElement || canvas_OR_ data_OR_depth_OR_image_OR_video == null) && format == null && type == null && pi xels == null) {
4452 _texSubImage3D_5(target, level, xoffset, yoffset, zoffset, format_OR_width , height_OR_type, canvas_OR_data_OR_depth_OR_image_OR_video);
4453 return;
4454 }
4455 throw new ArgumentError("Incorrect number or type of arguments");
4456 }
4457 @JSName('texSubImage3D')
4458 @DomName('WebGL2RenderingContext.texSubImage3D')
4459 @DocsEditable()
4460 @Experimental() // untriaged
4461 void _texSubImage3D_1(target, level, xoffset, yoffset, zoffset, width, height, int depth, format, type, TypedData pixels) native;
4462 @JSName('texSubImage3D')
4463 @DomName('WebGL2RenderingContext.texSubImage3D')
4464 @DocsEditable()
4465 @Experimental() // untriaged
4466 void _texSubImage3D_2(target, level, xoffset, yoffset, zoffset, format, type, data) native;
4467 @JSName('texSubImage3D')
4468 @DomName('WebGL2RenderingContext.texSubImage3D')
4469 @DocsEditable()
4470 @Experimental() // untriaged
4471 void _texSubImage3D_3(target, level, xoffset, yoffset, zoffset, format, type, ImageElement image) native;
4472 @JSName('texSubImage3D')
4473 @DomName('WebGL2RenderingContext.texSubImage3D')
4474 @DocsEditable()
4475 @Experimental() // untriaged
4476 void _texSubImage3D_4(target, level, xoffset, yoffset, zoffset, format, type, CanvasElement canvas) native;
4477 @JSName('texSubImage3D')
4478 @DomName('WebGL2RenderingContext.texSubImage3D')
4479 @DocsEditable()
4480 @Experimental() // untriaged
4481 void _texSubImage3D_5(target, level, xoffset, yoffset, zoffset, format, type, VideoElement video) native;
4482
4483 @DomName('WebGL2RenderingContext.transformFeedbackVaryings')
4484 @DocsEditable()
4485 @Experimental() // untriaged
4486 void transformFeedbackVaryings(Program program, List<String> varyings, int buf ferMode) {
4487 List varyings_1 = convertDartToNative_StringArray(varyings);
4488 _transformFeedbackVaryings_1(program, varyings_1, bufferMode);
4489 return;
4490 }
4491 @JSName('transformFeedbackVaryings')
4492 @DomName('WebGL2RenderingContext.transformFeedbackVaryings')
4493 @DocsEditable()
4494 @Experimental() // untriaged
4495 void _transformFeedbackVaryings_1(Program program, List varyings, bufferMode) native;
4496
4497 @DomName('WebGL2RenderingContext.uniform1ui')
4498 @DocsEditable()
4499 @Experimental() // untriaged
4500 void uniform1ui(UniformLocation location, int v0) native;
4501
4502 @DomName('WebGL2RenderingContext.uniform2ui')
4503 @DocsEditable()
4504 @Experimental() // untriaged
4505 void uniform2ui(UniformLocation location, int v0, int v1) native;
4506
4507 @DomName('WebGL2RenderingContext.uniform3ui')
4508 @DocsEditable()
4509 @Experimental() // untriaged
4510 void uniform3ui(UniformLocation location, int v0, int v1, int v2) native;
4511
4512 @DomName('WebGL2RenderingContext.uniform4ui')
4513 @DocsEditable()
4514 @Experimental() // untriaged
4515 void uniform4ui(UniformLocation location, int v0, int v1, int v2, int v3) nati ve;
4516
4517 @DomName('WebGL2RenderingContext.uniformBlockBinding')
4518 @DocsEditable()
4519 @Experimental() // untriaged
4520 void uniformBlockBinding(Program program, int uniformBlockIndex, int uniformBl ockBinding) native;
4521
4522 @DomName('WebGL2RenderingContext.uniformMatrix2x3fv')
4523 @DocsEditable()
4524 @Experimental() // untriaged
4525 void uniformMatrix2x3fv(UniformLocation location, bool transpose, Float32List value) native;
4526
4527 @DomName('WebGL2RenderingContext.uniformMatrix2x4fv')
4528 @DocsEditable()
4529 @Experimental() // untriaged
4530 void uniformMatrix2x4fv(UniformLocation location, bool transpose, Float32List value) native;
4531
4532 @DomName('WebGL2RenderingContext.uniformMatrix3x2fv')
4533 @DocsEditable()
4534 @Experimental() // untriaged
4535 void uniformMatrix3x2fv(UniformLocation location, bool transpose, Float32List value) native;
4536
4537 @DomName('WebGL2RenderingContext.uniformMatrix3x4fv')
4538 @DocsEditable()
4539 @Experimental() // untriaged
4540 void uniformMatrix3x4fv(UniformLocation location, bool transpose, Float32List value) native;
4541
4542 @DomName('WebGL2RenderingContext.uniformMatrix4x2fv')
4543 @DocsEditable()
4544 @Experimental() // untriaged
4545 void uniformMatrix4x2fv(UniformLocation location, bool transpose, Float32List value) native;
4546
4547 @DomName('WebGL2RenderingContext.uniformMatrix4x3fv')
4548 @DocsEditable()
4549 @Experimental() // untriaged
4550 void uniformMatrix4x3fv(UniformLocation location, bool transpose, Float32List value) native;
4551
4552 @DomName('WebGL2RenderingContext.vertexAttribDivisor')
4553 @DocsEditable()
4554 @Experimental() // untriaged
4555 void vertexAttribDivisor(int index, int divisor) native;
4556
4557 @DomName('WebGL2RenderingContext.vertexAttribI4i')
4558 @DocsEditable()
4559 @Experimental() // untriaged
4560 void vertexAttribI4i(int index, int x, int y, int z, int w) native;
4561
4562 @DomName('WebGL2RenderingContext.vertexAttribI4ui')
4563 @DocsEditable()
4564 @Experimental() // untriaged
4565 void vertexAttribI4ui(int index, int x, int y, int z, int w) native;
4566
4567 @DomName('WebGL2RenderingContext.vertexAttribIPointer')
4568 @DocsEditable()
4569 @Experimental() // untriaged
4570 void vertexAttribIPointer(int index, int size, int type, int stride, int offse t) native;
4571
4572 @DomName('WebGL2RenderingContext.waitSync')
4573 @DocsEditable()
4574 @Experimental() // untriaged
4575 void waitSync(Sync sync, int flags, int timeout) native;
4576
4577 // From WebGLRenderingContextBase
4578
4579 @DomName('WebGL2RenderingContext.canvas')
4580 @DocsEditable()
4581 @Experimental() // untriaged
4582 final CanvasElement canvas;
4583
4584 @DomName('WebGL2RenderingContext.activeTexture')
4585 @DocsEditable()
4586 @Experimental() // untriaged
4587 void activeTexture(int texture) native;
4588
4589 @DomName('WebGL2RenderingContext.attachShader')
4590 @DocsEditable()
4591 @Experimental() // untriaged
4592 void attachShader(Program program, Shader shader) native;
4593
4594 @DomName('WebGL2RenderingContext.bindBuffer')
4595 @DocsEditable()
4596 @Experimental() // untriaged
4597 void bindBuffer(int target, Buffer buffer) native;
4598
4599 @DomName('WebGL2RenderingContext.bindFramebuffer')
4600 @DocsEditable()
4601 @Experimental() // untriaged
4602 void bindFramebuffer(int target, Framebuffer framebuffer) native;
4603
4604 @DomName('WebGL2RenderingContext.bindRenderbuffer')
4605 @DocsEditable()
4606 @Experimental() // untriaged
4607 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native;
4608
4609 @DomName('WebGL2RenderingContext.bindTexture')
4610 @DocsEditable()
4611 @Experimental() // untriaged
4612 void bindTexture(int target, Texture texture) native;
4613
4614 @DomName('WebGL2RenderingContext.blendEquation')
4615 @DocsEditable()
4616 @Experimental() // untriaged
4617 void blendEquation(int mode) native;
4618
4619 @DomName('WebGL2RenderingContext.blendEquationSeparate')
4620 @DocsEditable()
4621 @Experimental() // untriaged
4622 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
4623
4624 @DomName('WebGL2RenderingContext.blendFunc')
4625 @DocsEditable()
4626 @Experimental() // untriaged
4627 void blendFunc(int sfactor, int dfactor) native;
4628
4629 @DomName('WebGL2RenderingContext.blendFuncSeparate')
4630 @DocsEditable()
4631 @Experimental() // untriaged
4632 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
4633
4634 @DomName('WebGL2RenderingContext.bufferData')
4635 @DocsEditable()
4636 @Experimental() // untriaged
4637 void bufferData(int target, data, int usage) native;
4638
4639 @DomName('WebGL2RenderingContext.checkFramebufferStatus')
4640 @DocsEditable()
4641 @Experimental() // untriaged
4642 int checkFramebufferStatus(int target) native;
4643
4644 @DomName('WebGL2RenderingContext.compileShader')
4645 @DocsEditable()
4646 @Experimental() // untriaged
4647 void compileShader(Shader shader) native;
4648
4649 @DomName('WebGL2RenderingContext.createBuffer')
4650 @DocsEditable()
4651 @Experimental() // untriaged
4652 Buffer createBuffer() native;
4653
4654 @DomName('WebGL2RenderingContext.createFramebuffer')
4655 @DocsEditable()
4656 @Experimental() // untriaged
4657 Framebuffer createFramebuffer() native;
4658
4659 @DomName('WebGL2RenderingContext.createProgram')
4660 @DocsEditable()
4661 @Experimental() // untriaged
4662 Program createProgram() native;
4663
4664 @DomName('WebGL2RenderingContext.createRenderbuffer')
4665 @DocsEditable()
4666 @Experimental() // untriaged
4667 Renderbuffer createRenderbuffer() native;
4668
4669 @DomName('WebGL2RenderingContext.createShader')
4670 @DocsEditable()
4671 @Experimental() // untriaged
4672 Shader createShader(int type) native;
4673
4674 @DomName('WebGL2RenderingContext.createTexture')
4675 @DocsEditable()
4676 @Experimental() // untriaged
4677 Texture createTexture() native;
4678
4679 @DomName('WebGL2RenderingContext.cullFace')
4680 @DocsEditable()
4681 @Experimental() // untriaged
4682 void cullFace(int mode) native;
4683
4684 @DomName('WebGL2RenderingContext.deleteBuffer')
4685 @DocsEditable()
4686 @Experimental() // untriaged
4687 void deleteBuffer(Buffer buffer) native;
4688
4689 @DomName('WebGL2RenderingContext.deleteFramebuffer')
4690 @DocsEditable()
4691 @Experimental() // untriaged
4692 void deleteFramebuffer(Framebuffer framebuffer) native;
4693
4694 @DomName('WebGL2RenderingContext.deleteProgram')
4695 @DocsEditable()
4696 @Experimental() // untriaged
4697 void deleteProgram(Program program) native;
4698
4699 @DomName('WebGL2RenderingContext.deleteRenderbuffer')
4700 @DocsEditable()
4701 @Experimental() // untriaged
4702 void deleteRenderbuffer(Renderbuffer renderbuffer) native;
4703
4704 @DomName('WebGL2RenderingContext.deleteShader')
4705 @DocsEditable()
4706 @Experimental() // untriaged
4707 void deleteShader(Shader shader) native;
4708
4709 @DomName('WebGL2RenderingContext.deleteTexture')
4710 @DocsEditable()
4711 @Experimental() // untriaged
4712 void deleteTexture(Texture texture) native;
4713
4714 @DomName('WebGL2RenderingContext.depthFunc')
4715 @DocsEditable()
4716 @Experimental() // untriaged
4717 void depthFunc(int func) native;
4718
4719 @DomName('WebGL2RenderingContext.detachShader')
4720 @DocsEditable()
4721 @Experimental() // untriaged
4722 void detachShader(Program program, Shader shader) native;
4723
4724 @DomName('WebGL2RenderingContext.disable')
4725 @DocsEditable()
4726 @Experimental() // untriaged
4727 void disable(int cap) native;
4728
4729 @DomName('WebGL2RenderingContext.enable')
4730 @DocsEditable()
4731 @Experimental() // untriaged
4732 void enable(int cap) native;
4733
4734 @DomName('WebGL2RenderingContext.finish')
4735 @DocsEditable()
4736 @Experimental() // untriaged
4737 void finish() native;
4738
4739 @DomName('WebGL2RenderingContext.flush')
4740 @DocsEditable()
4741 @Experimental() // untriaged
4742 void flush() native;
4743
4744 @DomName('WebGL2RenderingContext.framebufferRenderbuffer')
4745 @DocsEditable()
4746 @Experimental() // untriaged
4747 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) native;
4748
4749 @DomName('WebGL2RenderingContext.frontFace')
4750 @DocsEditable()
4751 @Experimental() // untriaged
4752 void frontFace(int mode) native;
4753
4754 @DomName('WebGL2RenderingContext.generateMipmap')
4755 @DocsEditable()
4756 @Experimental() // untriaged
4757 void generateMipmap(int target) native;
4758
4759 @DomName('WebGL2RenderingContext.getAttachedShaders')
4760 @DocsEditable()
4761 @Experimental() // untriaged
4762 List<Shader> getAttachedShaders(Program program) native;
4763
4764 @DomName('WebGL2RenderingContext.getBufferParameter')
4765 @DocsEditable()
4766 @Experimental() // untriaged
4767 Object getBufferParameter(int target, int pname) native;
4768
4769 @DomName('WebGL2RenderingContext.getContextAttributes')
4770 @DocsEditable()
4771 @Experimental() // untriaged
4772 Map getContextAttributes() {
4773 return convertNativeToDart_Dictionary(_getContextAttributes_1());
4774 }
4775 @JSName('getContextAttributes')
4776 @DomName('WebGL2RenderingContext.getContextAttributes')
4777 @DocsEditable()
4778 @Experimental() // untriaged
4779 _getContextAttributes_1() native;
4780
4781 @DomName('WebGL2RenderingContext.getError')
4782 @DocsEditable()
4783 @Experimental() // untriaged
4784 int getError() native;
4785
4786 @DomName('WebGL2RenderingContext.getExtension')
4787 @DocsEditable()
4788 @Experimental() // untriaged
4789 Object getExtension(String name) native;
4790
4791 @DomName('WebGL2RenderingContext.getFramebufferAttachmentParameter')
4792 @DocsEditable()
4793 @Experimental() // untriaged
4794 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
4795
4796 @DomName('WebGL2RenderingContext.getParameter')
4797 @DocsEditable()
4798 @Experimental() // untriaged
4799 Object getParameter(int pname) native;
4800
4801 @DomName('WebGL2RenderingContext.getProgramInfoLog')
4802 @DocsEditable()
4803 @Experimental() // untriaged
4804 String getProgramInfoLog(Program program) native;
4805
4806 @DomName('WebGL2RenderingContext.getProgramParameter')
4807 @DocsEditable()
4808 @Experimental() // untriaged
4809 Object getProgramParameter(Program program, int pname) native;
4810
4811 @DomName('WebGL2RenderingContext.getRenderbufferParameter')
4812 @DocsEditable()
4813 @Experimental() // untriaged
4814 Object getRenderbufferParameter(int target, int pname) native;
4815
4816 @DomName('WebGL2RenderingContext.getShaderInfoLog')
4817 @DocsEditable()
4818 @Experimental() // untriaged
4819 String getShaderInfoLog(Shader shader) native;
4820
4821 @DomName('WebGL2RenderingContext.getShaderParameter')
4822 @DocsEditable()
4823 @Experimental() // untriaged
4824 Object getShaderParameter(Shader shader, int pname) native;
4825
4826 @DomName('WebGL2RenderingContext.getShaderPrecisionFormat')
4827 @DocsEditable()
4828 @Experimental() // untriaged
4829 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) native;
4830
4831 @DomName('WebGL2RenderingContext.getShaderSource')
4832 @DocsEditable()
4833 @Experimental() // untriaged
4834 String getShaderSource(Shader shader) native;
4835
4836 @DomName('WebGL2RenderingContext.getSupportedExtensions')
4837 @DocsEditable()
4838 @Experimental() // untriaged
4839 List<String> getSupportedExtensions() native;
4840
4841 @DomName('WebGL2RenderingContext.getTexParameter')
4842 @DocsEditable()
4843 @Experimental() // untriaged
4844 Object getTexParameter(int target, int pname) native;
4845
4846 @DomName('WebGL2RenderingContext.getUniform')
4847 @DocsEditable()
4848 @Experimental() // untriaged
4849 Object getUniform(Program program, UniformLocation location) native;
4850
4851 @DomName('WebGL2RenderingContext.getUniformLocation')
4852 @DocsEditable()
4853 @Experimental() // untriaged
4854 UniformLocation getUniformLocation(Program program, String name) native;
4855
4856 @DomName('WebGL2RenderingContext.hint')
4857 @DocsEditable()
4858 @Experimental() // untriaged
4859 void hint(int target, int mode) native;
4860
4861 @DomName('WebGL2RenderingContext.linkProgram')
4862 @DocsEditable()
4863 @Experimental() // untriaged
4864 void linkProgram(Program program) native;
4865
4866 @DomName('WebGL2RenderingContext.shaderSource')
4867 @DocsEditable()
4868 @Experimental() // untriaged
4869 void shaderSource(Shader shader, String string) native;
4870
4871 @DomName('WebGL2RenderingContext.stencilOp')
4872 @DocsEditable()
4873 @Experimental() // untriaged
4874 void stencilOp(int fail, int zfail, int zpass) native;
4875
4876 @DomName('WebGL2RenderingContext.stencilOpSeparate')
4877 @DocsEditable()
4878 @Experimental() // untriaged
4879 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
4880
4881 @DomName('WebGL2RenderingContext.uniform1fv')
4882 @DocsEditable()
4883 @Experimental() // untriaged
4884 void uniform1fv(UniformLocation location, Float32List v) native;
4885
4886 @DomName('WebGL2RenderingContext.uniform1iv')
4887 @DocsEditable()
4888 @Experimental() // untriaged
4889 void uniform1iv(UniformLocation location, Int32List v) native;
4890
4891 @DomName('WebGL2RenderingContext.uniform2fv')
4892 @DocsEditable()
4893 @Experimental() // untriaged
4894 void uniform2fv(UniformLocation location, Float32List v) native;
4895
4896 @DomName('WebGL2RenderingContext.uniform2iv')
4897 @DocsEditable()
4898 @Experimental() // untriaged
4899 void uniform2iv(UniformLocation location, Int32List v) native;
4900
4901 @DomName('WebGL2RenderingContext.uniform3fv')
4902 @DocsEditable()
4903 @Experimental() // untriaged
4904 void uniform3fv(UniformLocation location, Float32List v) native;
4905
4906 @DomName('WebGL2RenderingContext.uniform3iv')
4907 @DocsEditable()
4908 @Experimental() // untriaged
4909 void uniform3iv(UniformLocation location, Int32List v) native;
4910
4911 @DomName('WebGL2RenderingContext.uniform4fv')
4912 @DocsEditable()
4913 @Experimental() // untriaged
4914 void uniform4fv(UniformLocation location, Float32List v) native;
4915
4916 @DomName('WebGL2RenderingContext.uniform4iv')
4917 @DocsEditable()
4918 @Experimental() // untriaged
4919 void uniform4iv(UniformLocation location, Int32List v) native;
4920
4921 @DomName('WebGL2RenderingContext.useProgram')
4922 @DocsEditable()
4923 @Experimental() // untriaged
4924 void useProgram(Program program) native;
4925
4926 @DomName('WebGL2RenderingContext.validateProgram')
4927 @DocsEditable()
4928 @Experimental() // untriaged
4929 void validateProgram(Program program) native;
4930 }
4931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4932 // for details. All rights reserved. Use of this source code is governed by a
4933 // BSD-style license that can be found in the LICENSE file.
4934
4935
4936 @DocsEditable()
4937 @DomName('WebGLSampler')
4938 @Experimental() // untriaged
4939 @Native("WebGLSampler")
4940 class Sampler extends Interceptor {
4941 // To suppress missing implicit constructor warnings.
4942 factory Sampler._() { throw new UnsupportedError("Not supported"); }
4943 }
4944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4945 // for details. All rights reserved. Use of this source code is governed by a
4946 // BSD-style license that can be found in the LICENSE file. 3275 // BSD-style license that can be found in the LICENSE file.
4947 3276
4948 3277
4949 @DocsEditable() 3278 @DocsEditable()
4950 @DomName('WebGLShader') 3279 @DomName('WebGLShader')
4951 @Native("WebGLShader") 3280 @Native("WebGLShader")
4952 class Shader extends Interceptor { 3281 class Shader extends Interceptor {
4953 // To suppress missing implicit constructor warnings. 3282 // To suppress missing implicit constructor warnings.
4954 factory Shader._() { throw new UnsupportedError("Not supported"); } 3283 factory Shader._() { throw new UnsupportedError("Not supported"); }
4955 } 3284 }
(...skipping 20 matching lines...) Expand all
4976 @DomName('WebGLShaderPrecisionFormat.rangeMin') 3305 @DomName('WebGLShaderPrecisionFormat.rangeMin')
4977 @DocsEditable() 3306 @DocsEditable()
4978 final int rangeMin; 3307 final int rangeMin;
4979 } 3308 }
4980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4981 // for details. All rights reserved. Use of this source code is governed by a 3310 // for details. All rights reserved. Use of this source code is governed by a
4982 // BSD-style license that can be found in the LICENSE file. 3311 // BSD-style license that can be found in the LICENSE file.
4983 3312
4984 3313
4985 @DocsEditable() 3314 @DocsEditable()
4986 @DomName('WebGLSync')
4987 @Experimental() // untriaged
4988 @Native("WebGLSync")
4989 class Sync extends Interceptor {
4990 // To suppress missing implicit constructor warnings.
4991 factory Sync._() { throw new UnsupportedError("Not supported"); }
4992 }
4993 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4994 // for details. All rights reserved. Use of this source code is governed by a
4995 // BSD-style license that can be found in the LICENSE file.
4996
4997
4998 @DocsEditable()
4999 @DomName('WebGLTexture') 3315 @DomName('WebGLTexture')
5000 @Native("WebGLTexture") 3316 @Native("WebGLTexture")
5001 class Texture extends Interceptor { 3317 class Texture extends Interceptor {
5002 // To suppress missing implicit constructor warnings. 3318 // To suppress missing implicit constructor warnings.
5003 factory Texture._() { throw new UnsupportedError("Not supported"); } 3319 factory Texture._() { throw new UnsupportedError("Not supported"); }
5004 } 3320 }
5005 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5006 // for details. All rights reserved. Use of this source code is governed by a 3322 // for details. All rights reserved. Use of this source code is governed by a
5007 // BSD-style license that can be found in the LICENSE file. 3323 // BSD-style license that can be found in the LICENSE file.
5008 3324
5009 3325
5010 @DocsEditable() 3326 @DocsEditable()
5011 @DomName('WebGLTransformFeedback')
5012 @Experimental() // untriaged
5013 @Native("WebGLTransformFeedback")
5014 class TransformFeedback extends Interceptor {
5015 // To suppress missing implicit constructor warnings.
5016 factory TransformFeedback._() { throw new UnsupportedError("Not supported"); }
5017 }
5018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5019 // for details. All rights reserved. Use of this source code is governed by a
5020 // BSD-style license that can be found in the LICENSE file.
5021
5022
5023 @DocsEditable()
5024 @DomName('WebGLUniformLocation') 3327 @DomName('WebGLUniformLocation')
5025 @Native("WebGLUniformLocation") 3328 @Native("WebGLUniformLocation")
5026 class UniformLocation extends Interceptor { 3329 class UniformLocation extends Interceptor {
5027 // To suppress missing implicit constructor warnings. 3330 // To suppress missing implicit constructor warnings.
5028 factory UniformLocation._() { throw new UnsupportedError("Not supported"); } 3331 factory UniformLocation._() { throw new UnsupportedError("Not supported"); }
5029 } 3332 }
5030 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5031 // for details. All rights reserved. Use of this source code is governed by a 3334 // for details. All rights reserved. Use of this source code is governed by a
5032 // BSD-style license that can be found in the LICENSE file. 3335 // BSD-style license that can be found in the LICENSE file.
5033 3336
5034 3337
5035 @DocsEditable() 3338 @DocsEditable()
5036 @DomName('WebGLVertexArrayObject')
5037 @Experimental() // untriaged
5038 @Native("WebGLVertexArrayObject")
5039 class VertexArrayObject extends Interceptor {
5040 // To suppress missing implicit constructor warnings.
5041 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
5042 }
5043 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5044 // for details. All rights reserved. Use of this source code is governed by a
5045 // BSD-style license that can be found in the LICENSE file.
5046
5047
5048 @DocsEditable()
5049 @DomName('WebGLVertexArrayObjectOES') 3339 @DomName('WebGLVertexArrayObjectOES')
5050 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 3340 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
5051 @Experimental() // experimental 3341 @Experimental() // experimental
5052 @Native("WebGLVertexArrayObjectOES") 3342 @Native("WebGLVertexArrayObjectOES")
5053 class VertexArrayObjectOes extends Interceptor { 3343 class VertexArrayObject extends Interceptor {
5054 // To suppress missing implicit constructor warnings. 3344 // To suppress missing implicit constructor warnings.
5055 factory VertexArrayObjectOes._() { throw new UnsupportedError("Not supported") ; } 3345 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); }
5056 } 3346 }
5057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5058 // for details. All rights reserved. Use of this source code is governed by a 3348 // for details. All rights reserved. Use of this source code is governed by a
5059 // BSD-style license that can be found in the LICENSE file.
5060
5061
5062 @DocsEditable()
5063 @DomName('WebGL2RenderingContextBase')
5064 @Experimental() // untriaged
5065 @Native("WebGL2RenderingContextBase")
5066 abstract class _WebGL2RenderingContextBase extends Interceptor implements _WebGL RenderingContextBase {
5067 // To suppress missing implicit constructor warnings.
5068 factory _WebGL2RenderingContextBase._() { throw new UnsupportedError("Not supp orted"); }
5069
5070 // From WebGLRenderingContextBase
5071 }
5072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
5073 // for details. All rights reserved. Use of this source code is governed by a
5074 // BSD-style license that can be found in the LICENSE file. 3349 // BSD-style license that can be found in the LICENSE file.
5075 3350
5076 3351
5077 @DocsEditable() 3352 @DocsEditable()
5078 @DomName('WebGLRenderingContextBase') 3353 @DomName('WebGLRenderingContextBase')
5079 @Experimental() // untriaged 3354 @Experimental() // untriaged
5080 abstract class _WebGLRenderingContextBase extends Interceptor { 3355 abstract class _WebGLRenderingContextBase extends Interceptor {
5081 // To suppress missing implicit constructor warnings. 3356 // To suppress missing implicit constructor warnings.
5082 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); } 3357 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); }
5083 } 3358 }
OLDNEW
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698