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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 2899083007: Update DDC html libraries to match SDK (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 @DocsEditable() 375 @DocsEditable()
376 final int type; 376 final int type;
377 } 377 }
378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
379 // for details. All rights reserved. Use of this source code is governed by a 379 // for details. All rights reserved. Use of this source code is governed by a
380 // BSD-style license that can be found in the LICENSE file. 380 // BSD-style license that can be found in the LICENSE file.
381 381
382 @DocsEditable() 382 @DocsEditable()
383 @DomName('ANGLEInstancedArrays') 383 @DomName('ANGLEInstancedArrays')
384 @Experimental() // untriaged 384 @Experimental() // untriaged
385 @Native("ANGLEInstancedArrays") 385 @Native("ANGLEInstancedArrays,ANGLE_instanced_arrays")
386 class AngleInstancedArrays extends Interceptor { 386 class AngleInstancedArrays extends Interceptor {
387 // To suppress missing implicit constructor warnings. 387 // To suppress missing implicit constructor warnings.
388 factory AngleInstancedArrays._() { 388 factory AngleInstancedArrays._() {
389 throw new UnsupportedError("Not supported"); 389 throw new UnsupportedError("Not supported");
390 } 390 }
391 391
392 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE') 392 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE')
393 @DocsEditable() 393 @DocsEditable()
394 @Experimental() // untriaged 394 @Experimental() // untriaged
395 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; 395 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
(...skipping 30 matching lines...) Expand all
426 // To suppress missing implicit constructor warnings. 426 // To suppress missing implicit constructor warnings.
427 factory Buffer._() { 427 factory Buffer._() {
428 throw new UnsupportedError("Not supported"); 428 throw new UnsupportedError("Not supported");
429 } 429 }
430 } 430 }
431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
432 // for details. All rights reserved. Use of this source code is governed by a 432 // for details. All rights reserved. Use of this source code is governed by a
433 // BSD-style license that can be found in the LICENSE file. 433 // BSD-style license that can be found in the LICENSE file.
434 434
435 @DocsEditable() 435 @DocsEditable()
436 @DomName('CHROMIUMSubscribeUniform')
437 @Experimental() // untriaged
438 @Native("CHROMIUMSubscribeUniform")
439 class ChromiumSubscribeUniform extends Interceptor {
440 // To suppress missing implicit constructor warnings.
441 factory ChromiumSubscribeUniform._() {
442 throw new UnsupportedError("Not supported");
443 }
444
445 @DomName('CHROMIUMSubscribeUniform.MOUSE_POSITION_CHROMIUM')
446 @DocsEditable()
447 @Experimental() // untriaged
448 static const int MOUSE_POSITION_CHROMIUM = 0x924C;
449
450 @DomName('CHROMIUMSubscribeUniform.SUBSCRIBED_VALUES_BUFFER_CHROMIUM')
451 @DocsEditable()
452 @Experimental() // untriaged
453 static const int SUBSCRIBED_VALUES_BUFFER_CHROMIUM = 0x924B;
454
455 @JSName('bindValuebufferCHROMIUM')
456 @DomName('CHROMIUMSubscribeUniform.bindValuebufferCHROMIUM')
457 @DocsEditable()
458 @Experimental() // untriaged
459 void bindValuebufferChromium(int target, ChromiumValuebuffer buffer) native;
460
461 @JSName('createValuebufferCHROMIUM')
462 @DomName('CHROMIUMSubscribeUniform.createValuebufferCHROMIUM')
463 @DocsEditable()
464 @Experimental() // untriaged
465 ChromiumValuebuffer createValuebufferChromium() native;
466
467 @JSName('deleteValuebufferCHROMIUM')
468 @DomName('CHROMIUMSubscribeUniform.deleteValuebufferCHROMIUM')
469 @DocsEditable()
470 @Experimental() // untriaged
471 void deleteValuebufferChromium(ChromiumValuebuffer buffer) native;
472
473 @JSName('isValuebufferCHROMIUM')
474 @DomName('CHROMIUMSubscribeUniform.isValuebufferCHROMIUM')
475 @DocsEditable()
476 @Experimental() // untriaged
477 bool isValuebufferChromium(ChromiumValuebuffer buffer) native;
478
479 @JSName('populateSubscribedValuesCHROMIUM')
480 @DomName('CHROMIUMSubscribeUniform.populateSubscribedValuesCHROMIUM')
481 @DocsEditable()
482 @Experimental() // untriaged
483 void populateSubscribedValuesChromium(int target) native;
484
485 @JSName('subscribeValueCHROMIUM')
486 @DomName('CHROMIUMSubscribeUniform.subscribeValueCHROMIUM')
487 @DocsEditable()
488 @Experimental() // untriaged
489 void subscribeValueChromium(int target, int subscriptions) native;
490
491 @JSName('uniformValuebufferCHROMIUM')
492 @DomName('CHROMIUMSubscribeUniform.uniformValuebufferCHROMIUM')
493 @DocsEditable()
494 @Experimental() // untriaged
495 void uniformValuebufferChromium(
496 UniformLocation location, int target, int subscription) native;
497 }
498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
499 // for details. All rights reserved. Use of this source code is governed by a
500 // BSD-style license that can be found in the LICENSE file.
501
502 @DocsEditable()
503 @DomName('WebGLCompressedTextureASTC')
504 @Experimental() // untriaged
505 @Native("WebGLCompressedTextureASTC")
506 class CompressedTextureAstc extends Interceptor {
507 // To suppress missing implicit constructor warnings.
508 factory CompressedTextureAstc._() {
509 throw new UnsupportedError("Not supported");
510 }
511
512 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x10_KHR')
513 @DocsEditable()
514 @Experimental() // untriaged
515 static const int COMPRESSED_RGBA_ASTC_10x10_KHR = 0x93BB;
516
517 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x5_KHR')
518 @DocsEditable()
519 @Experimental() // untriaged
520 static const int COMPRESSED_RGBA_ASTC_10x5_KHR = 0x93B8;
521
522 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x6_KHR')
523 @DocsEditable()
524 @Experimental() // untriaged
525 static const int COMPRESSED_RGBA_ASTC_10x6_KHR = 0x93B9;
526
527 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_10x8_KHR')
528 @DocsEditable()
529 @Experimental() // untriaged
530 static const int COMPRESSED_RGBA_ASTC_10x8_KHR = 0x93BA;
531
532 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_12x10_KHR')
533 @DocsEditable()
534 @Experimental() // untriaged
535 static const int COMPRESSED_RGBA_ASTC_12x10_KHR = 0x93BC;
536
537 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_12x12_KHR')
538 @DocsEditable()
539 @Experimental() // untriaged
540 static const int COMPRESSED_RGBA_ASTC_12x12_KHR = 0x93BD;
541
542 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_4x4_KHR')
543 @DocsEditable()
544 @Experimental() // untriaged
545 static const int COMPRESSED_RGBA_ASTC_4x4_KHR = 0x93B0;
546
547 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_5x4_KHR')
548 @DocsEditable()
549 @Experimental() // untriaged
550 static const int COMPRESSED_RGBA_ASTC_5x4_KHR = 0x93B1;
551
552 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_5x5_KHR')
553 @DocsEditable()
554 @Experimental() // untriaged
555 static const int COMPRESSED_RGBA_ASTC_5x5_KHR = 0x93B2;
556
557 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_6x5_KHR')
558 @DocsEditable()
559 @Experimental() // untriaged
560 static const int COMPRESSED_RGBA_ASTC_6x5_KHR = 0x93B3;
561
562 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_6x6_KHR')
563 @DocsEditable()
564 @Experimental() // untriaged
565 static const int COMPRESSED_RGBA_ASTC_6x6_KHR = 0x93B4;
566
567 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_8x5_KHR')
568 @DocsEditable()
569 @Experimental() // untriaged
570 static const int COMPRESSED_RGBA_ASTC_8x5_KHR = 0x93B5;
571
572 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_8x6_KHR')
573 @DocsEditable()
574 @Experimental() // untriaged
575 static const int COMPRESSED_RGBA_ASTC_8x6_KHR = 0x93B6;
576
577 @DomName('WebGLCompressedTextureASTC.COMPRESSED_RGBA_ASTC_8x8_KHR')
578 @DocsEditable()
579 @Experimental() // untriaged
580 static const int COMPRESSED_RGBA_ASTC_8x8_KHR = 0x93B7;
581
582 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR')
583 @DocsEditable()
584 @Experimental() // untriaged
585 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR = 0x93DB;
586
587 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR')
588 @DocsEditable()
589 @Experimental() // untriaged
590 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR = 0x93D8;
591
592 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR')
593 @DocsEditable()
594 @Experimental() // untriaged
595 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR = 0x93D9;
596
597 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR')
598 @DocsEditable()
599 @Experimental() // untriaged
600 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR = 0x93DA;
601
602 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR')
603 @DocsEditable()
604 @Experimental() // untriaged
605 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR = 0x93DC;
606
607 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR')
608 @DocsEditable()
609 @Experimental() // untriaged
610 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR = 0x93DD;
611
612 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR')
613 @DocsEditable()
614 @Experimental() // untriaged
615 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR = 0x93D0;
616
617 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR')
618 @DocsEditable()
619 @Experimental() // untriaged
620 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR = 0x93D1;
621
622 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR')
623 @DocsEditable()
624 @Experimental() // untriaged
625 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR = 0x93D2;
626
627 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR')
628 @DocsEditable()
629 @Experimental() // untriaged
630 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR = 0x93D3;
631
632 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR')
633 @DocsEditable()
634 @Experimental() // untriaged
635 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR = 0x93D4;
636
637 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR')
638 @DocsEditable()
639 @Experimental() // untriaged
640 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR = 0x93D5;
641
642 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR')
643 @DocsEditable()
644 @Experimental() // untriaged
645 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR = 0x93D6;
646
647 @DomName('WebGLCompressedTextureASTC.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR')
648 @DocsEditable()
649 @Experimental() // untriaged
650 static const int COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR = 0x93D7;
651 }
652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
653 // for details. All rights reserved. Use of this source code is governed by a
654 // BSD-style license that can be found in the LICENSE file.
655
656 @DocsEditable()
436 @DomName('WebGLCompressedTextureATC') 657 @DomName('WebGLCompressedTextureATC')
437 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc / 658 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc /
438 @Experimental() 659 @Experimental()
439 @Native("WebGLCompressedTextureATC") 660 @Native("WebGLCompressedTextureATC,WEBGL_compressed_texture_atc")
440 class CompressedTextureAtc extends Interceptor { 661 class CompressedTextureAtc extends Interceptor {
441 // To suppress missing implicit constructor warnings. 662 // To suppress missing implicit constructor warnings.
442 factory CompressedTextureAtc._() { 663 factory CompressedTextureAtc._() {
443 throw new UnsupportedError("Not supported"); 664 throw new UnsupportedError("Not supported");
444 } 665 }
445 666
446 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') 667 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL')
447 @DocsEditable() 668 @DocsEditable()
448 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 669 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
449 670
450 @DomName( 671 @DomName(
451 'WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL') 672 'WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL')
452 @DocsEditable() 673 @DocsEditable()
453 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 674 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
454 675
455 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') 676 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL')
456 @DocsEditable() 677 @DocsEditable()
457 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 678 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
458 } 679 }
459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
460 // for details. All rights reserved. Use of this source code is governed by a 681 // for details. All rights reserved. Use of this source code is governed by a
461 // BSD-style license that can be found in the LICENSE file. 682 // BSD-style license that can be found in the LICENSE file.
462 683
463 @DocsEditable() 684 @DocsEditable()
464 @DomName('WebGLCompressedTextureETC1') 685 @DomName('WebGLCompressedTextureETC1')
465 @Experimental() // untriaged 686 @Experimental() // untriaged
466 @Native("WebGLCompressedTextureETC1") 687 @Native("WebGLCompressedTextureETC1,WEBGL_compressed_texture_etc1")
467 class CompressedTextureETC1 extends Interceptor { 688 class CompressedTextureETC1 extends Interceptor {
468 // To suppress missing implicit constructor warnings. 689 // To suppress missing implicit constructor warnings.
469 factory CompressedTextureETC1._() { 690 factory CompressedTextureETC1._() {
470 throw new UnsupportedError("Not supported"); 691 throw new UnsupportedError("Not supported");
471 } 692 }
472 693
473 @DomName('WebGLCompressedTextureETC1.COMPRESSED_RGB_ETC1_WEBGL') 694 @DomName('WebGLCompressedTextureETC1.COMPRESSED_RGB_ETC1_WEBGL')
474 @DocsEditable() 695 @DocsEditable()
475 @Experimental() // untriaged 696 @Experimental() // untriaged
476 static const int COMPRESSED_RGB_ETC1_WEBGL = 0x8D64; 697 static const int COMPRESSED_RGB_ETC1_WEBGL = 0x8D64;
477 } 698 }
478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
479 // for details. All rights reserved. Use of this source code is governed by a 700 // for details. All rights reserved. Use of this source code is governed by a
480 // BSD-style license that can be found in the LICENSE file. 701 // BSD-style license that can be found in the LICENSE file.
481 702
482 @DocsEditable() 703 @DocsEditable()
483 @DomName('WebGLCompressedTexturePVRTC') 704 @DomName('WebGLCompressedTexturePVRTC')
484 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/ 705 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/
485 @Experimental() // experimental 706 @Experimental() // experimental
486 @Native("WebGLCompressedTexturePVRTC") 707 @Native("WebGLCompressedTexturePVRTC,WEBGL_compressed_texture_pvrtc")
487 class CompressedTexturePvrtc extends Interceptor { 708 class CompressedTexturePvrtc extends Interceptor {
488 // To suppress missing implicit constructor warnings. 709 // To suppress missing implicit constructor warnings.
489 factory CompressedTexturePvrtc._() { 710 factory CompressedTexturePvrtc._() {
490 throw new UnsupportedError("Not supported"); 711 throw new UnsupportedError("Not supported");
491 } 712 }
492 713
493 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') 714 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG')
494 @DocsEditable() 715 @DocsEditable()
495 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 716 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
496 717
(...skipping 10 matching lines...) Expand all
507 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 728 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
508 } 729 }
509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 730 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
510 // for details. All rights reserved. Use of this source code is governed by a 731 // for details. All rights reserved. Use of this source code is governed by a
511 // BSD-style license that can be found in the LICENSE file. 732 // BSD-style license that can be found in the LICENSE file.
512 733
513 @DocsEditable() 734 @DocsEditable()
514 @DomName('WebGLCompressedTextureS3TC') 735 @DomName('WebGLCompressedTextureS3TC')
515 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/ 736 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/
516 @Experimental() // experimental 737 @Experimental() // experimental
517 @Native("WebGLCompressedTextureS3TC") 738 @Native("WebGLCompressedTextureS3TC,WEBGL_compressed_texture_s3tc")
518 class CompressedTextureS3TC extends Interceptor { 739 class CompressedTextureS3TC extends Interceptor {
519 // To suppress missing implicit constructor warnings. 740 // To suppress missing implicit constructor warnings.
520 factory CompressedTextureS3TC._() { 741 factory CompressedTextureS3TC._() {
521 throw new UnsupportedError("Not supported"); 742 throw new UnsupportedError("Not supported");
522 } 743 }
523 744
524 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') 745 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT')
525 @DocsEditable() 746 @DocsEditable()
526 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 747 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
527 748
528 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') 749 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT')
529 @DocsEditable() 750 @DocsEditable()
530 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 751 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
531 752
532 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') 753 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT')
533 @DocsEditable() 754 @DocsEditable()
534 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 755 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
535 756
536 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 757 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
537 @DocsEditable() 758 @DocsEditable()
538 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 759 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
539 } 760 }
540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 761 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
541 // for details. All rights reserved. Use of this source code is governed by a 762 // for details. All rights reserved. Use of this source code is governed by a
542 // BSD-style license that can be found in the LICENSE file. 763 // BSD-style license that can be found in the LICENSE file.
543 764
544 @DocsEditable() 765 @DocsEditable()
545 /**
546 * The properties of a WebGL rendering context.
547 *
548 * If [alpha] is `true`, then the context has an alpha channel.
549 *
550 * If [antialias] is `true`, then antialiasing is performed by the browser, but
551 * only if the browser's implementation of WebGL supports antialiasing.
552 *
553 * If [depth] is `true`, then the context has a depth buffer of at least 16
554 * bits.
555 *
556 * If [premultipliedAlpha] is `true`, then the context's colors are assumed to
557 * be premultiplied. This means that color values are assumed to have been
558 * multiplied by their alpha values. If [alpha] is `false`, then this flag is
559 * ignored.
560 *
561 * If [preserveDrawingBuffer] is `false`, then all contents of the context are
562 * cleared. If `true`, then all values will remain until changed or cleared.
563 *
564 * If [stencil] is `true`, then the context has a stencil buffer of at least 8
565 * bits.
566 */
567 @DomName('WebGLContextAttributes')
568 @Unstable()
569 @Native("WebGLContextAttributes")
570 class ContextAttributes extends Interceptor {
571 // To suppress missing implicit constructor warnings.
572 factory ContextAttributes._() {
573 throw new UnsupportedError("Not supported");
574 }
575
576 @DomName('WebGLContextAttributes.alpha')
577 @DocsEditable()
578 bool alpha;
579
580 @DomName('WebGLContextAttributes.antialias')
581 @DocsEditable()
582 bool antialias;
583
584 @DomName('WebGLContextAttributes.depth')
585 @DocsEditable()
586 bool depth;
587
588 @DomName('WebGLContextAttributes.failIfMajorPerformanceCaveat')
589 @DocsEditable()
590 @Experimental() // untriaged
591 bool failIfMajorPerformanceCaveat;
592
593 @DomName('WebGLContextAttributes.premultipliedAlpha')
594 @DocsEditable()
595 bool premultipliedAlpha;
596
597 @DomName('WebGLContextAttributes.preserveDrawingBuffer')
598 @DocsEditable()
599 bool preserveDrawingBuffer;
600
601 @DomName('WebGLContextAttributes.stencil')
602 @DocsEditable()
603 bool stencil;
604 }
605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
606 // for details. All rights reserved. Use of this source code is governed by a
607 // BSD-style license that can be found in the LICENSE file.
608
609 @DocsEditable()
610 @DomName('WebGLContextEvent') 766 @DomName('WebGLContextEvent')
611 @Unstable() 767 @Unstable()
612 @Native("WebGLContextEvent") 768 @Native("WebGLContextEvent")
613 class ContextEvent extends Event { 769 class ContextEvent extends Event {
614 // To suppress missing implicit constructor warnings. 770 // To suppress missing implicit constructor warnings.
615 factory ContextEvent._() { 771 factory ContextEvent._() {
616 throw new UnsupportedError("Not supported"); 772 throw new UnsupportedError("Not supported");
617 } 773 }
618 774
775 @DomName('WebGLContextEvent.WebGLContextEvent')
776 @DocsEditable()
777 factory ContextEvent(String type, [Map eventInit]) {
778 if (eventInit != null) {
779 var eventInit_1 = convertDartToNative_Dictionary(eventInit);
780 return ContextEvent._create_1(type, eventInit_1);
781 }
782 return ContextEvent._create_2(type);
783 }
784 static ContextEvent _create_1(type, eventInit) =>
785 JS('ContextEvent', 'new WebGLContextEvent(#,#)', type, eventInit);
786 static ContextEvent _create_2(type) =>
787 JS('ContextEvent', 'new WebGLContextEvent(#)', type);
788
619 @DomName('WebGLContextEvent.statusMessage') 789 @DomName('WebGLContextEvent.statusMessage')
620 @DocsEditable() 790 @DocsEditable()
621 final String statusMessage; 791 final String statusMessage;
622 } 792 }
623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
624 // for details. All rights reserved. Use of this source code is governed by a 794 // for details. All rights reserved. Use of this source code is governed by a
625 // BSD-style license that can be found in the LICENSE file. 795 // BSD-style license that can be found in the LICENSE file.
626 796
627 @DocsEditable() 797 @DocsEditable()
628 @DomName('WebGLDebugRendererInfo') 798 @DomName('WebGLDebugRendererInfo')
629 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 799 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/
630 @Experimental() // experimental 800 @Experimental() // experimental
631 @Native("WebGLDebugRendererInfo") 801 @Native("WebGLDebugRendererInfo,WEBGL_debug_renderer_info")
632 class DebugRendererInfo extends Interceptor { 802 class DebugRendererInfo extends Interceptor {
633 // To suppress missing implicit constructor warnings. 803 // To suppress missing implicit constructor warnings.
634 factory DebugRendererInfo._() { 804 factory DebugRendererInfo._() {
635 throw new UnsupportedError("Not supported"); 805 throw new UnsupportedError("Not supported");
636 } 806 }
637 807
638 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') 808 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL')
639 @DocsEditable() 809 @DocsEditable()
640 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 810 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
641 811
642 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') 812 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL')
643 @DocsEditable() 813 @DocsEditable()
644 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 814 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
645 } 815 }
646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
647 // for details. All rights reserved. Use of this source code is governed by a 817 // for details. All rights reserved. Use of this source code is governed by a
648 // BSD-style license that can be found in the LICENSE file. 818 // BSD-style license that can be found in the LICENSE file.
649 819
650 @DocsEditable() 820 @DocsEditable()
651 @DomName('WebGLDebugShaders') 821 @DomName('WebGLDebugShaders')
652 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 822 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/
653 @Experimental() // experimental 823 @Experimental() // experimental
654 @Native("WebGLDebugShaders") 824 @Native("WebGLDebugShaders,WEBGL_debug_shaders")
655 class DebugShaders extends Interceptor { 825 class DebugShaders extends Interceptor {
656 // To suppress missing implicit constructor warnings. 826 // To suppress missing implicit constructor warnings.
657 factory DebugShaders._() { 827 factory DebugShaders._() {
658 throw new UnsupportedError("Not supported"); 828 throw new UnsupportedError("Not supported");
659 } 829 }
660 830
661 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 831 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
662 @DocsEditable() 832 @DocsEditable()
663 String getTranslatedShaderSource(Shader shader) native; 833 String getTranslatedShaderSource(Shader shader) native;
664 } 834 }
665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 835 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
666 // for details. All rights reserved. Use of this source code is governed by a 836 // for details. All rights reserved. Use of this source code is governed by a
667 // BSD-style license that can be found in the LICENSE file. 837 // BSD-style license that can be found in the LICENSE file.
668 838
669 @DocsEditable() 839 @DocsEditable()
670 @DomName('WebGLDepthTexture') 840 @DomName('WebGLDepthTexture')
671 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 841 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
672 @Experimental() // experimental 842 @Experimental() // experimental
673 @Native("WebGLDepthTexture") 843 @Native("WebGLDepthTexture,WEBGL_depth_texture")
674 class DepthTexture extends Interceptor { 844 class DepthTexture extends Interceptor {
675 // To suppress missing implicit constructor warnings. 845 // To suppress missing implicit constructor warnings.
676 factory DepthTexture._() { 846 factory DepthTexture._() {
677 throw new UnsupportedError("Not supported"); 847 throw new UnsupportedError("Not supported");
678 } 848 }
679 849
680 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') 850 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL')
681 @DocsEditable() 851 @DocsEditable()
682 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 852 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
683 } 853 }
684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 854 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
685 // for details. All rights reserved. Use of this source code is governed by a 855 // for details. All rights reserved. Use of this source code is governed by a
686 // BSD-style license that can be found in the LICENSE file. 856 // BSD-style license that can be found in the LICENSE file.
687 857
688 @DocsEditable() 858 @DocsEditable()
689 @DomName('WebGLDrawBuffers') 859 @DomName('WebGLDrawBuffers')
690 // http://www.khronos.org/registry/webgl/specs/latest/ 860 // http://www.khronos.org/registry/webgl/specs/latest/
691 @Experimental() // stable 861 @Experimental() // stable
692 @Native("WebGLDrawBuffers") 862 @Native("WebGLDrawBuffers,WEBGL_draw_buffers")
693 class DrawBuffers extends Interceptor { 863 class DrawBuffers extends Interceptor {
694 // To suppress missing implicit constructor warnings. 864 // To suppress missing implicit constructor warnings.
695 factory DrawBuffers._() { 865 factory DrawBuffers._() {
696 throw new UnsupportedError("Not supported"); 866 throw new UnsupportedError("Not supported");
697 } 867 }
698 868
699 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') 869 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL')
700 @DocsEditable() 870 @DocsEditable()
701 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; 871 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0;
702 872
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 @JSName('drawBuffersWEBGL') 1005 @JSName('drawBuffersWEBGL')
836 @DomName('WebGLDrawBuffers.drawBuffersWEBGL') 1006 @DomName('WebGLDrawBuffers.drawBuffersWEBGL')
837 @DocsEditable() 1007 @DocsEditable()
838 void drawBuffersWebgl(List<int> buffers) native; 1008 void drawBuffersWebgl(List<int> buffers) native;
839 } 1009 }
840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
841 // for details. All rights reserved. Use of this source code is governed by a 1011 // for details. All rights reserved. Use of this source code is governed by a
842 // BSD-style license that can be found in the LICENSE file. 1012 // BSD-style license that can be found in the LICENSE file.
843 1013
844 @DocsEditable() 1014 @DocsEditable()
1015 @DomName('EXTsRGB')
1016 @Experimental() // untriaged
1017 @Native("EXTsRGB,EXT_sRGB")
1018 class EXTsRgb extends Interceptor {
1019 // To suppress missing implicit constructor warnings.
1020 factory EXTsRgb._() {
1021 throw new UnsupportedError("Not supported");
1022 }
1023
1024 @DomName('EXTsRGB.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT')
1025 @DocsEditable()
1026 @Experimental() // untriaged
1027 static const int FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT = 0x8210;
1028
1029 @DomName('EXTsRGB.SRGB8_ALPHA8_EXT')
1030 @DocsEditable()
1031 @Experimental() // untriaged
1032 static const int SRGB8_ALPHA8_EXT = 0x8C43;
1033
1034 @DomName('EXTsRGB.SRGB_ALPHA_EXT')
1035 @DocsEditable()
1036 @Experimental() // untriaged
1037 static const int SRGB_ALPHA_EXT = 0x8C42;
1038
1039 @DomName('EXTsRGB.SRGB_EXT')
1040 @DocsEditable()
1041 @Experimental() // untriaged
1042 static const int SRGB_EXT = 0x8C40;
1043 }
1044 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1045 // for details. All rights reserved. Use of this source code is governed by a
1046 // BSD-style license that can be found in the LICENSE file.
1047
1048 @DocsEditable()
845 @DomName('EXTBlendMinMax') 1049 @DomName('EXTBlendMinMax')
846 @Experimental() // untriaged 1050 @Experimental() // untriaged
847 @Native("EXTBlendMinMax") 1051 @Native("EXTBlendMinMax,EXT_blend_minmax")
848 class ExtBlendMinMax extends Interceptor { 1052 class ExtBlendMinMax extends Interceptor {
849 // To suppress missing implicit constructor warnings. 1053 // To suppress missing implicit constructor warnings.
850 factory ExtBlendMinMax._() { 1054 factory ExtBlendMinMax._() {
851 throw new UnsupportedError("Not supported"); 1055 throw new UnsupportedError("Not supported");
852 } 1056 }
853 1057
854 @DomName('EXTBlendMinMax.MAX_EXT') 1058 @DomName('EXTBlendMinMax.MAX_EXT')
855 @DocsEditable() 1059 @DocsEditable()
856 @Experimental() // untriaged 1060 @Experimental() // untriaged
857 static const int MAX_EXT = 0x8008; 1061 static const int MAX_EXT = 0x8008;
858 1062
859 @DomName('EXTBlendMinMax.MIN_EXT') 1063 @DomName('EXTBlendMinMax.MIN_EXT')
860 @DocsEditable() 1064 @DocsEditable()
861 @Experimental() // untriaged 1065 @Experimental() // untriaged
862 static const int MIN_EXT = 0x8007; 1066 static const int MIN_EXT = 0x8007;
863 } 1067 }
864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1068 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
865 // for details. All rights reserved. Use of this source code is governed by a 1069 // for details. All rights reserved. Use of this source code is governed by a
866 // BSD-style license that can be found in the LICENSE file. 1070 // BSD-style license that can be found in the LICENSE file.
867 1071
868 @DocsEditable() 1072 @DocsEditable()
1073 @DomName('EXTColorBufferFloat')
1074 @Experimental() // untriaged
1075 @Native("EXTColorBufferFloat")
1076 class ExtColorBufferFloat extends Interceptor {
1077 // To suppress missing implicit constructor warnings.
1078 factory ExtColorBufferFloat._() {
1079 throw new UnsupportedError("Not supported");
1080 }
1081 }
1082 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1083 // for details. All rights reserved. Use of this source code is governed by a
1084 // BSD-style license that can be found in the LICENSE file.
1085
1086 @DocsEditable()
1087 @DomName('EXTDisjointTimerQuery')
1088 @Experimental() // untriaged
1089 @Native("EXTDisjointTimerQuery")
1090 class ExtDisjointTimerQuery extends Interceptor {
1091 // To suppress missing implicit constructor warnings.
1092 factory ExtDisjointTimerQuery._() {
1093 throw new UnsupportedError("Not supported");
1094 }
1095
1096 @DomName('EXTDisjointTimerQuery.CURRENT_QUERY_EXT')
1097 @DocsEditable()
1098 @Experimental() // untriaged
1099 static const int CURRENT_QUERY_EXT = 0x8865;
1100
1101 @DomName('EXTDisjointTimerQuery.GPU_DISJOINT_EXT')
1102 @DocsEditable()
1103 @Experimental() // untriaged
1104 static const int GPU_DISJOINT_EXT = 0x8FBB;
1105
1106 @DomName('EXTDisjointTimerQuery.QUERY_COUNTER_BITS_EXT')
1107 @DocsEditable()
1108 @Experimental() // untriaged
1109 static const int QUERY_COUNTER_BITS_EXT = 0x8864;
1110
1111 @DomName('EXTDisjointTimerQuery.QUERY_RESULT_AVAILABLE_EXT')
1112 @DocsEditable()
1113 @Experimental() // untriaged
1114 static const int QUERY_RESULT_AVAILABLE_EXT = 0x8867;
1115
1116 @DomName('EXTDisjointTimerQuery.QUERY_RESULT_EXT')
1117 @DocsEditable()
1118 @Experimental() // untriaged
1119 static const int QUERY_RESULT_EXT = 0x8866;
1120
1121 @DomName('EXTDisjointTimerQuery.TIMESTAMP_EXT')
1122 @DocsEditable()
1123 @Experimental() // untriaged
1124 static const int TIMESTAMP_EXT = 0x8E28;
1125
1126 @DomName('EXTDisjointTimerQuery.TIME_ELAPSED_EXT')
1127 @DocsEditable()
1128 @Experimental() // untriaged
1129 static const int TIME_ELAPSED_EXT = 0x88BF;
1130
1131 @JSName('beginQueryEXT')
1132 @DomName('EXTDisjointTimerQuery.beginQueryEXT')
1133 @DocsEditable()
1134 @Experimental() // untriaged
1135 void beginQueryExt(int target, TimerQueryExt query) native;
1136
1137 @JSName('createQueryEXT')
1138 @DomName('EXTDisjointTimerQuery.createQueryEXT')
1139 @DocsEditable()
1140 @Experimental() // untriaged
1141 TimerQueryExt createQueryExt() native;
1142
1143 @JSName('deleteQueryEXT')
1144 @DomName('EXTDisjointTimerQuery.deleteQueryEXT')
1145 @DocsEditable()
1146 @Experimental() // untriaged
1147 void deleteQueryExt(TimerQueryExt query) native;
1148
1149 @JSName('endQueryEXT')
1150 @DomName('EXTDisjointTimerQuery.endQueryEXT')
1151 @DocsEditable()
1152 @Experimental() // untriaged
1153 void endQueryExt(int target) native;
1154
1155 @JSName('getQueryEXT')
1156 @DomName('EXTDisjointTimerQuery.getQueryEXT')
1157 @DocsEditable()
1158 @Experimental() // untriaged
1159 Object getQueryExt(int target, int pname) native;
1160
1161 @JSName('getQueryObjectEXT')
1162 @DomName('EXTDisjointTimerQuery.getQueryObjectEXT')
1163 @DocsEditable()
1164 @Experimental() // untriaged
1165 Object getQueryObjectExt(TimerQueryExt query, int pname) native;
1166
1167 @JSName('isQueryEXT')
1168 @DomName('EXTDisjointTimerQuery.isQueryEXT')
1169 @DocsEditable()
1170 @Experimental() // untriaged
1171 bool isQueryExt(TimerQueryExt query) native;
1172
1173 @JSName('queryCounterEXT')
1174 @DomName('EXTDisjointTimerQuery.queryCounterEXT')
1175 @DocsEditable()
1176 @Experimental() // untriaged
1177 void queryCounterExt(TimerQueryExt query, int target) native;
1178 }
1179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1180 // for details. All rights reserved. Use of this source code is governed by a
1181 // BSD-style license that can be found in the LICENSE file.
1182
1183 @DocsEditable()
869 @DomName('EXTFragDepth') 1184 @DomName('EXTFragDepth')
870 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 1185 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
871 @Experimental() 1186 @Experimental()
872 @Native("EXTFragDepth") 1187 @Native("EXTFragDepth,EXT_frag_depth")
873 class ExtFragDepth extends Interceptor { 1188 class ExtFragDepth extends Interceptor {
874 // To suppress missing implicit constructor warnings. 1189 // To suppress missing implicit constructor warnings.
875 factory ExtFragDepth._() { 1190 factory ExtFragDepth._() {
876 throw new UnsupportedError("Not supported"); 1191 throw new UnsupportedError("Not supported");
877 } 1192 }
878 } 1193 }
879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
880 // for details. All rights reserved. Use of this source code is governed by a 1195 // for details. All rights reserved. Use of this source code is governed by a
881 // BSD-style license that can be found in the LICENSE file. 1196 // BSD-style license that can be found in the LICENSE file.
882 1197
883 @DocsEditable() 1198 @DocsEditable()
884 @DomName('EXTShaderTextureLOD') 1199 @DomName('EXTShaderTextureLOD')
885 @Experimental() // untriaged 1200 @Experimental() // untriaged
886 @Native("EXTShaderTextureLOD") 1201 @Native("EXTShaderTextureLOD,EXT_shader_texture_lod")
887 class ExtShaderTextureLod extends Interceptor { 1202 class ExtShaderTextureLod extends Interceptor {
888 // To suppress missing implicit constructor warnings. 1203 // To suppress missing implicit constructor warnings.
889 factory ExtShaderTextureLod._() { 1204 factory ExtShaderTextureLod._() {
890 throw new UnsupportedError("Not supported"); 1205 throw new UnsupportedError("Not supported");
891 } 1206 }
892 } 1207 }
893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
894 // for details. All rights reserved. Use of this source code is governed by a 1209 // for details. All rights reserved. Use of this source code is governed by a
895 // BSD-style license that can be found in the LICENSE file. 1210 // BSD-style license that can be found in the LICENSE file.
896 1211
897 @DocsEditable() 1212 @DocsEditable()
898 @DomName('EXTTextureFilterAnisotropic') 1213 @DomName('EXTTextureFilterAnisotropic')
899 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/ 1214 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/
900 @Experimental() 1215 @Experimental()
901 @Native("EXTTextureFilterAnisotropic") 1216 @Native("EXTTextureFilterAnisotropic,EXT_texture_filter_anisotropic")
902 class ExtTextureFilterAnisotropic extends Interceptor { 1217 class ExtTextureFilterAnisotropic extends Interceptor {
903 // To suppress missing implicit constructor warnings. 1218 // To suppress missing implicit constructor warnings.
904 factory ExtTextureFilterAnisotropic._() { 1219 factory ExtTextureFilterAnisotropic._() {
905 throw new UnsupportedError("Not supported"); 1220 throw new UnsupportedError("Not supported");
906 } 1221 }
907 1222
908 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') 1223 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT')
909 @DocsEditable() 1224 @DocsEditable()
910 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 1225 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
911 1226
(...skipping 16 matching lines...) Expand all
928 } 1243 }
929 } 1244 }
930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
931 // for details. All rights reserved. Use of this source code is governed by a 1246 // for details. All rights reserved. Use of this source code is governed by a
932 // BSD-style license that can be found in the LICENSE file. 1247 // BSD-style license that can be found in the LICENSE file.
933 1248
934 @DocsEditable() 1249 @DocsEditable()
935 @DomName('WebGLLoseContext') 1250 @DomName('WebGLLoseContext')
936 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 1251 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
937 @Experimental() 1252 @Experimental()
938 @Native("WebGLLoseContext,WebGLExtensionLoseContext") 1253 @Native("WebGLLoseContext,WebGLExtensionLoseContext,WEBGL_lose_context")
939 class LoseContext extends Interceptor { 1254 class LoseContext extends Interceptor {
940 // To suppress missing implicit constructor warnings. 1255 // To suppress missing implicit constructor warnings.
941 factory LoseContext._() { 1256 factory LoseContext._() {
942 throw new UnsupportedError("Not supported"); 1257 throw new UnsupportedError("Not supported");
943 } 1258 }
944 1259
945 @DomName('WebGLLoseContext.loseContext') 1260 @DomName('WebGLLoseContext.loseContext')
946 @DocsEditable() 1261 @DocsEditable()
947 void loseContext() native; 1262 void loseContext() native;
948 1263
949 @DomName('WebGLLoseContext.restoreContext') 1264 @DomName('WebGLLoseContext.restoreContext')
950 @DocsEditable() 1265 @DocsEditable()
951 void restoreContext() native; 1266 void restoreContext() native;
952 } 1267 }
953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
954 // for details. All rights reserved. Use of this source code is governed by a 1269 // for details. All rights reserved. Use of this source code is governed by a
955 // BSD-style license that can be found in the LICENSE file. 1270 // BSD-style license that can be found in the LICENSE file.
956 1271
957 @DocsEditable() 1272 @DocsEditable()
958 @DomName('OESElementIndexUint') 1273 @DomName('OESElementIndexUint')
959 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ 1274 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
960 @Experimental() // experimental 1275 @Experimental() // experimental
961 @Native("OESElementIndexUint") 1276 @Native("OESElementIndexUint,OES_element_index_uint")
962 class OesElementIndexUint extends Interceptor { 1277 class OesElementIndexUint extends Interceptor {
963 // To suppress missing implicit constructor warnings. 1278 // To suppress missing implicit constructor warnings.
964 factory OesElementIndexUint._() { 1279 factory OesElementIndexUint._() {
965 throw new UnsupportedError("Not supported"); 1280 throw new UnsupportedError("Not supported");
966 } 1281 }
967 } 1282 }
968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1283 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
969 // for details. All rights reserved. Use of this source code is governed by a 1284 // for details. All rights reserved. Use of this source code is governed by a
970 // BSD-style license that can be found in the LICENSE file. 1285 // BSD-style license that can be found in the LICENSE file.
971 1286
972 @DocsEditable() 1287 @DocsEditable()
973 @DomName('OESStandardDerivatives') 1288 @DomName('OESStandardDerivatives')
974 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 1289 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
975 @Experimental() // experimental 1290 @Experimental() // experimental
976 @Native("OESStandardDerivatives") 1291 @Native("OESStandardDerivatives,OES_standard_derivatives")
977 class OesStandardDerivatives extends Interceptor { 1292 class OesStandardDerivatives extends Interceptor {
978 // To suppress missing implicit constructor warnings. 1293 // To suppress missing implicit constructor warnings.
979 factory OesStandardDerivatives._() { 1294 factory OesStandardDerivatives._() {
980 throw new UnsupportedError("Not supported"); 1295 throw new UnsupportedError("Not supported");
981 } 1296 }
982 1297
983 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') 1298 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES')
984 @DocsEditable() 1299 @DocsEditable()
985 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 1300 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
986 } 1301 }
987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1302 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
988 // for details. All rights reserved. Use of this source code is governed by a 1303 // for details. All rights reserved. Use of this source code is governed by a
989 // BSD-style license that can be found in the LICENSE file. 1304 // BSD-style license that can be found in the LICENSE file.
990 1305
991 @DocsEditable() 1306 @DocsEditable()
992 @DomName('OESTextureFloat') 1307 @DomName('OESTextureFloat')
993 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 1308 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/
994 @Experimental() // experimental 1309 @Experimental() // experimental
995 @Native("OESTextureFloat") 1310 @Native("OESTextureFloat,OES_texture_float")
996 class OesTextureFloat extends Interceptor { 1311 class OesTextureFloat extends Interceptor {
997 // To suppress missing implicit constructor warnings. 1312 // To suppress missing implicit constructor warnings.
998 factory OesTextureFloat._() { 1313 factory OesTextureFloat._() {
999 throw new UnsupportedError("Not supported"); 1314 throw new UnsupportedError("Not supported");
1000 } 1315 }
1001 } 1316 }
1002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1003 // for details. All rights reserved. Use of this source code is governed by a 1318 // for details. All rights reserved. Use of this source code is governed by a
1004 // BSD-style license that can be found in the LICENSE file. 1319 // BSD-style license that can be found in the LICENSE file.
1005 1320
1006 @DocsEditable() 1321 @DocsEditable()
1007 @DomName('OESTextureFloatLinear') 1322 @DomName('OESTextureFloatLinear')
1008 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ 1323 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
1009 @Experimental() 1324 @Experimental()
1010 @Native("OESTextureFloatLinear") 1325 @Native("OESTextureFloatLinear,OES_texture_float_linear")
1011 class OesTextureFloatLinear extends Interceptor { 1326 class OesTextureFloatLinear extends Interceptor {
1012 // To suppress missing implicit constructor warnings. 1327 // To suppress missing implicit constructor warnings.
1013 factory OesTextureFloatLinear._() { 1328 factory OesTextureFloatLinear._() {
1014 throw new UnsupportedError("Not supported"); 1329 throw new UnsupportedError("Not supported");
1015 } 1330 }
1016 } 1331 }
1017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1018 // for details. All rights reserved. Use of this source code is governed by a 1333 // for details. All rights reserved. Use of this source code is governed by a
1019 // BSD-style license that can be found in the LICENSE file. 1334 // BSD-style license that can be found in the LICENSE file.
1020 1335
1021 @DocsEditable() 1336 @DocsEditable()
1022 @DomName('OESTextureHalfFloat') 1337 @DomName('OESTextureHalfFloat')
1023 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 1338 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
1024 @Experimental() // experimental 1339 @Experimental() // experimental
1025 @Native("OESTextureHalfFloat") 1340 @Native("OESTextureHalfFloat,OES_texture_half_float")
1026 class OesTextureHalfFloat extends Interceptor { 1341 class OesTextureHalfFloat extends Interceptor {
1027 // To suppress missing implicit constructor warnings. 1342 // To suppress missing implicit constructor warnings.
1028 factory OesTextureHalfFloat._() { 1343 factory OesTextureHalfFloat._() {
1029 throw new UnsupportedError("Not supported"); 1344 throw new UnsupportedError("Not supported");
1030 } 1345 }
1031 1346
1032 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') 1347 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES')
1033 @DocsEditable() 1348 @DocsEditable()
1034 static const int HALF_FLOAT_OES = 0x8D61; 1349 static const int HALF_FLOAT_OES = 0x8D61;
1035 } 1350 }
1036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1037 // for details. All rights reserved. Use of this source code is governed by a 1352 // for details. All rights reserved. Use of this source code is governed by a
1038 // BSD-style license that can be found in the LICENSE file. 1353 // BSD-style license that can be found in the LICENSE file.
1039 1354
1040 @DocsEditable() 1355 @DocsEditable()
1041 @DomName('OESTextureHalfFloatLinear') 1356 @DomName('OESTextureHalfFloatLinear')
1042 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/ 1357 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/
1043 @Experimental() 1358 @Experimental()
1044 @Native("OESTextureHalfFloatLinear") 1359 @Native("OESTextureHalfFloatLinear,OES_texture_half_float_linear")
1045 class OesTextureHalfFloatLinear extends Interceptor { 1360 class OesTextureHalfFloatLinear extends Interceptor {
1046 // To suppress missing implicit constructor warnings. 1361 // To suppress missing implicit constructor warnings.
1047 factory OesTextureHalfFloatLinear._() { 1362 factory OesTextureHalfFloatLinear._() {
1048 throw new UnsupportedError("Not supported"); 1363 throw new UnsupportedError("Not supported");
1049 } 1364 }
1050 } 1365 }
1051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1366 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1052 // for details. All rights reserved. Use of this source code is governed by a 1367 // for details. All rights reserved. Use of this source code is governed by a
1053 // BSD-style license that can be found in the LICENSE file. 1368 // BSD-style license that can be found in the LICENSE file.
1054 1369
1055 @DocsEditable() 1370 @DocsEditable()
1056 @DomName('OESVertexArrayObject') 1371 @DomName('OESVertexArrayObject')
1057 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 1372 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
1058 @Experimental() // experimental 1373 @Experimental() // experimental
1059 @Native("OESVertexArrayObject") 1374 @Native("OESVertexArrayObject,OES_vertex_array_object")
1060 class OesVertexArrayObject extends Interceptor { 1375 class OesVertexArrayObject extends Interceptor {
1061 // To suppress missing implicit constructor warnings. 1376 // To suppress missing implicit constructor warnings.
1062 factory OesVertexArrayObject._() { 1377 factory OesVertexArrayObject._() {
1063 throw new UnsupportedError("Not supported"); 1378 throw new UnsupportedError("Not supported");
1064 } 1379 }
1065 1380
1066 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 1381 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
1067 @DocsEditable() 1382 @DocsEditable()
1068 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 1383 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
1069 1384
1070 @JSName('bindVertexArrayOES') 1385 @JSName('bindVertexArrayOES')
1071 @DomName('OESVertexArrayObject.bindVertexArrayOES') 1386 @DomName('OESVertexArrayObject.bindVertexArrayOES')
1072 @DocsEditable() 1387 @DocsEditable()
1073 void bindVertexArray(VertexArrayObject arrayObject) native; 1388 void bindVertexArray(VertexArrayObjectOes arrayObject) native;
1074 1389
1075 @JSName('createVertexArrayOES') 1390 @JSName('createVertexArrayOES')
1076 @DomName('OESVertexArrayObject.createVertexArrayOES') 1391 @DomName('OESVertexArrayObject.createVertexArrayOES')
1077 @DocsEditable() 1392 @DocsEditable()
1078 VertexArrayObject createVertexArray() native; 1393 VertexArrayObjectOes createVertexArray() native;
1079 1394
1080 @JSName('deleteVertexArrayOES') 1395 @JSName('deleteVertexArrayOES')
1081 @DomName('OESVertexArrayObject.deleteVertexArrayOES') 1396 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
1082 @DocsEditable() 1397 @DocsEditable()
1083 void deleteVertexArray(VertexArrayObject arrayObject) native; 1398 void deleteVertexArray(VertexArrayObjectOes arrayObject) native;
1084 1399
1085 @JSName('isVertexArrayOES') 1400 @JSName('isVertexArrayOES')
1086 @DomName('OESVertexArrayObject.isVertexArrayOES') 1401 @DomName('OESVertexArrayObject.isVertexArrayOES')
1087 @DocsEditable() 1402 @DocsEditable()
1088 bool isVertexArray(VertexArrayObject arrayObject) native; 1403 bool isVertexArray(VertexArrayObjectOes arrayObject) native;
1089 } 1404 }
1090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1091 // for details. All rights reserved. Use of this source code is governed by a 1406 // for details. All rights reserved. Use of this source code is governed by a
1092 // BSD-style license that can be found in the LICENSE file. 1407 // BSD-style license that can be found in the LICENSE file.
1093 1408
1094 @DocsEditable() 1409 @DocsEditable()
1095 @DomName('WebGLProgram') 1410 @DomName('WebGLProgram')
1096 @Unstable() 1411 @Unstable()
1097 @Native("WebGLProgram") 1412 @Native("WebGLProgram")
1098 class Program extends Interceptor { 1413 class Program extends Interceptor {
1099 // To suppress missing implicit constructor warnings. 1414 // To suppress missing implicit constructor warnings.
1100 factory Program._() { 1415 factory Program._() {
1101 throw new UnsupportedError("Not supported"); 1416 throw new UnsupportedError("Not supported");
1102 } 1417 }
1103 } 1418 }
1104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1419 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1105 // for details. All rights reserved. Use of this source code is governed by a 1420 // for details. All rights reserved. Use of this source code is governed by a
1106 // BSD-style license that can be found in the LICENSE file. 1421 // BSD-style license that can be found in the LICENSE file.
1107 1422
1108 @DocsEditable() 1423 @DocsEditable()
1424 @DomName('WebGLQuery')
1425 @Experimental() // untriaged
1426 @Native("WebGLQuery")
1427 class Query extends Interceptor {
1428 // To suppress missing implicit constructor warnings.
1429 factory Query._() {
1430 throw new UnsupportedError("Not supported");
1431 }
1432 }
1433 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1434 // for details. All rights reserved. Use of this source code is governed by a
1435 // BSD-style license that can be found in the LICENSE file.
1436
1437 @DocsEditable()
1109 @DomName('WebGLRenderbuffer') 1438 @DomName('WebGLRenderbuffer')
1110 @Unstable() 1439 @Unstable()
1111 @Native("WebGLRenderbuffer") 1440 @Native("WebGLRenderbuffer")
1112 class Renderbuffer extends Interceptor { 1441 class Renderbuffer extends Interceptor {
1113 // To suppress missing implicit constructor warnings. 1442 // To suppress missing implicit constructor warnings.
1114 factory Renderbuffer._() { 1443 factory Renderbuffer._() {
1115 throw new UnsupportedError("Not supported"); 1444 throw new UnsupportedError("Not supported");
1116 } 1445 }
1117 } 1446 }
1118 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1447 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 2710
2382 @DomName('WebGLRenderingContext.blendFunc') 2711 @DomName('WebGLRenderingContext.blendFunc')
2383 @DocsEditable() 2712 @DocsEditable()
2384 void blendFunc(int sfactor, int dfactor) native; 2713 void blendFunc(int sfactor, int dfactor) native;
2385 2714
2386 @DomName('WebGLRenderingContext.blendFuncSeparate') 2715 @DomName('WebGLRenderingContext.blendFuncSeparate')
2387 @DocsEditable() 2716 @DocsEditable()
2388 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) 2717 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
2389 native; 2718 native;
2390 2719
2391 @JSName('bufferData')
2392 /**
2393 * Buffers the specified data.
2394 *
2395 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2396 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2397 * depending on your purposes.
2398 */
2399 @DomName('WebGLRenderingContext.bufferData')
2400 @DocsEditable()
2401 void bufferByteData(int target, ByteBuffer data, int usage) native;
2402
2403 /**
2404 * Buffers the specified data.
2405 *
2406 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2407 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2408 * depending on your purposes.
2409 */
2410 @DomName('WebGLRenderingContext.bufferData') 2720 @DomName('WebGLRenderingContext.bufferData')
2411 @DocsEditable() 2721 @DocsEditable()
2412 void bufferData(int target, data_OR_size, int usage) native; 2722 void bufferData(int target, data_OR_size, int usage) native;
2413 2723
2414 @JSName('bufferData')
2415 /**
2416 * Buffers the specified data.
2417 *
2418 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2419 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2420 * depending on your purposes.
2421 */
2422 @DomName('WebGLRenderingContext.bufferData')
2423 @DocsEditable()
2424 void bufferDataTyped(int target, TypedData data, int usage) native;
2425
2426 @JSName('bufferSubData')
2427 /**
2428 * Buffers the specified subset of data.
2429 *
2430 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2431 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2432 * depending on your purposes.
2433 */
2434 @DomName('WebGLRenderingContext.bufferSubData')
2435 @DocsEditable()
2436 void bufferSubByteData(int target, int offset, ByteBuffer data) native;
2437
2438 /**
2439 * Buffers the specified subset of data.
2440 *
2441 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2442 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2443 * depending on your purposes.
2444 */
2445 @DomName('WebGLRenderingContext.bufferSubData') 2724 @DomName('WebGLRenderingContext.bufferSubData')
2446 @DocsEditable() 2725 @DocsEditable()
2447 void bufferSubData(int target, int offset, data) native; 2726 void bufferSubData(int target, int offset, data) native;
2448 2727
2449 @JSName('bufferSubData')
2450 /**
2451 * Buffers the specified subset of data.
2452 *
2453 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2454 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2455 * depending on your purposes.
2456 */
2457 @DomName('WebGLRenderingContext.bufferSubData')
2458 @DocsEditable()
2459 void bufferSubDataTyped(int target, int offset, TypedData data) native;
2460
2461 @DomName('WebGLRenderingContext.checkFramebufferStatus') 2728 @DomName('WebGLRenderingContext.checkFramebufferStatus')
2462 @DocsEditable() 2729 @DocsEditable()
2463 int checkFramebufferStatus(int target) native; 2730 int checkFramebufferStatus(int target) native;
2464 2731
2465 @DomName('WebGLRenderingContext.clear') 2732 @DomName('WebGLRenderingContext.clear')
2466 @DocsEditable() 2733 @DocsEditable()
2467 void clear(int mask) native; 2734 void clear(int mask) native;
2468 2735
2469 @DomName('WebGLRenderingContext.clearColor') 2736 @DomName('WebGLRenderingContext.clearColor')
2470 @DocsEditable() 2737 @DocsEditable()
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 int getAttribLocation(Program program, String name) native; 2908 int getAttribLocation(Program program, String name) native;
2642 2909
2643 @DomName('WebGLRenderingContext.getBufferParameter') 2910 @DomName('WebGLRenderingContext.getBufferParameter')
2644 @DocsEditable() 2911 @DocsEditable()
2645 @Creates('int|Null') 2912 @Creates('int|Null')
2646 @Returns('int|Null') 2913 @Returns('int|Null')
2647 Object getBufferParameter(int target, int pname) native; 2914 Object getBufferParameter(int target, int pname) native;
2648 2915
2649 @DomName('WebGLRenderingContext.getContextAttributes') 2916 @DomName('WebGLRenderingContext.getContextAttributes')
2650 @DocsEditable() 2917 @DocsEditable()
2651 @Creates('ContextAttributes|=Object') 2918 @Creates('ContextAttributes|Null')
2652 ContextAttributes getContextAttributes() { 2919 Map getContextAttributes() {
2653 return convertNativeToDart_ContextAttributes(_getContextAttributes_1()); 2920 return convertNativeToDart_Dictionary(_getContextAttributes_1());
2654 } 2921 }
2655 2922
2656 @JSName('getContextAttributes') 2923 @JSName('getContextAttributes')
2657 @DomName('WebGLRenderingContext.getContextAttributes') 2924 @DomName('WebGLRenderingContext.getContextAttributes')
2658 @DocsEditable() 2925 @DocsEditable()
2659 @Creates('ContextAttributes|=Object') 2926 @Creates('ContextAttributes|Null')
2660 _getContextAttributes_1() native; 2927 _getContextAttributes_1() native;
2661 2928
2662 @DomName('WebGLRenderingContext.getError') 2929 @DomName('WebGLRenderingContext.getError')
2663 @DocsEditable() 2930 @DocsEditable()
2664 int getError() native; 2931 int getError() native;
2665 2932
2666 @DomName('WebGLRenderingContext.getExtension') 2933 @DomName('WebGLRenderingContext.getExtension')
2667 @DocsEditable() 2934 @DocsEditable()
2668 Object getExtension(String name) native; 2935 Object getExtension(String name) native;
2669 2936
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2840 void stencilMaskSeparate(int face, int mask) native; 3107 void stencilMaskSeparate(int face, int mask) native;
2841 3108
2842 @DomName('WebGLRenderingContext.stencilOp') 3109 @DomName('WebGLRenderingContext.stencilOp')
2843 @DocsEditable() 3110 @DocsEditable()
2844 void stencilOp(int fail, int zfail, int zpass) native; 3111 void stencilOp(int fail, int zfail, int zpass) native;
2845 3112
2846 @DomName('WebGLRenderingContext.stencilOpSeparate') 3113 @DomName('WebGLRenderingContext.stencilOpSeparate')
2847 @DocsEditable() 3114 @DocsEditable()
2848 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 3115 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
2849 3116
2850 /**
2851 * Updates the currently bound texture to [data].
2852 *
2853 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2854 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2855 * (or for more specificity, the more specialized [texImage2DImageData],
2856 * [texImage2DCanvas], [texImage2DVideo]).
2857 */
2858 @DomName('WebGLRenderingContext.texImage2D') 3117 @DomName('WebGLRenderingContext.texImage2D')
2859 @DocsEditable() 3118 @DocsEditable()
2860 void texImage2D( 3119 void texImage2D(
2861 int target, 3120 int target,
2862 int level, 3121 int level,
2863 int internalformat, 3122 int internalformat,
2864 int format_OR_width, 3123 int format_OR_width,
2865 int height_OR_type, 3124 int height_OR_type,
2866 border_OR_canvas_OR_image_OR_pixels_OR_video, 3125 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
2867 [int format, 3126 [int format,
2868 int type, 3127 int type,
2869 TypedData pixels]) { 3128 TypedData pixels]) {
2870 if (pixels != null && 3129 if (type != null &&
2871 type != null &&
2872 format != null && 3130 format != null &&
2873 (border_OR_canvas_OR_image_OR_pixels_OR_video is int)) { 3131 (bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is int)) {
2874 _texImage2D_1( 3132 _texImage2D_1(
2875 target, 3133 target,
2876 level, 3134 level,
2877 internalformat, 3135 internalformat,
2878 format_OR_width, 3136 format_OR_width,
2879 height_OR_type, 3137 height_OR_type,
2880 border_OR_canvas_OR_image_OR_pixels_OR_video, 3138 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
2881 format, 3139 format,
2882 type, 3140 type,
2883 pixels); 3141 pixels);
2884 return; 3142 return;
2885 } 3143 }
2886 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || 3144 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData ||
2887 border_OR_canvas_OR_image_OR_pixels_OR_video == null) && 3145 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
2888 format == null && 3146 format == null &&
2889 type == null && 3147 type == null &&
2890 pixels == null) { 3148 pixels == null) {
2891 var pixels_1 = convertDartToNative_ImageData( 3149 var pixels_1 = convertDartToNative_ImageData(
2892 border_OR_canvas_OR_image_OR_pixels_OR_video); 3150 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
2893 _texImage2D_2(target, level, internalformat, format_OR_width, 3151 _texImage2D_2(target, level, internalformat, format_OR_width,
2894 height_OR_type, pixels_1); 3152 height_OR_type, pixels_1);
2895 return; 3153 return;
2896 } 3154 }
2897 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && 3155 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
3156 is ImageElement) &&
2898 format == null && 3157 format == null &&
2899 type == null && 3158 type == null &&
2900 pixels == null) { 3159 pixels == null) {
2901 _texImage2D_3(target, level, internalformat, format_OR_width, 3160 _texImage2D_3(
2902 height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video); 3161 target,
3162 level,
3163 internalformat,
3164 format_OR_width,
3165 height_OR_type,
3166 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
2903 return; 3167 return;
2904 } 3168 }
2905 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement) && 3169 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
3170 is CanvasElement) &&
2906 format == null && 3171 format == null &&
2907 type == null && 3172 type == null &&
2908 pixels == null) { 3173 pixels == null) {
2909 _texImage2D_4(target, level, internalformat, format_OR_width, 3174 _texImage2D_4(
2910 height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video); 3175 target,
3176 level,
3177 internalformat,
3178 format_OR_width,
3179 height_OR_type,
3180 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
2911 return; 3181 return;
2912 } 3182 }
2913 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement) && 3183 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
3184 is VideoElement) &&
2914 format == null && 3185 format == null &&
2915 type == null && 3186 type == null &&
2916 pixels == null) { 3187 pixels == null) {
2917 _texImage2D_5(target, level, internalformat, format_OR_width, 3188 _texImage2D_5(
2918 height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video); 3189 target,
3190 level,
3191 internalformat,
3192 format_OR_width,
3193 height_OR_type,
3194 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
3195 return;
3196 }
3197 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
3198 is ImageBitmap) &&
3199 format == null &&
3200 type == null &&
3201 pixels == null) {
3202 _texImage2D_6(
3203 target,
3204 level,
3205 internalformat,
3206 format_OR_width,
3207 height_OR_type,
3208 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
2919 return; 3209 return;
2920 } 3210 }
2921 throw new ArgumentError("Incorrect number or type of arguments"); 3211 throw new ArgumentError("Incorrect number or type of arguments");
2922 } 3212 }
2923 3213
2924 @JSName('texImage2D') 3214 @JSName('texImage2D')
2925 /**
2926 * Updates the currently bound texture to [data].
2927 *
2928 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2929 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2930 * (or for more specificity, the more specialized [texImage2DImageData],
2931 * [texImage2DCanvas], [texImage2DVideo]).
2932 */
2933 @DomName('WebGLRenderingContext.texImage2D') 3215 @DomName('WebGLRenderingContext.texImage2D')
2934 @DocsEditable() 3216 @DocsEditable()
2935 void _texImage2D_1(target, level, internalformat, width, height, int border, 3217 void _texImage2D_1(target, level, internalformat, width, height, int border,
2936 format, type, TypedData pixels) native; 3218 format, type, TypedData pixels) native;
2937 @JSName('texImage2D') 3219 @JSName('texImage2D')
2938 /**
2939 * Updates the currently bound texture to [data].
2940 *
2941 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2942 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2943 * (or for more specificity, the more specialized [texImage2DImageData],
2944 * [texImage2DCanvas], [texImage2DVideo]).
2945 */
2946 @DomName('WebGLRenderingContext.texImage2D') 3220 @DomName('WebGLRenderingContext.texImage2D')
2947 @DocsEditable() 3221 @DocsEditable()
2948 void _texImage2D_2(target, level, internalformat, format, type, pixels) 3222 void _texImage2D_2(target, level, internalformat, format, type, pixels)
2949 native; 3223 native;
2950 @JSName('texImage2D') 3224 @JSName('texImage2D')
2951 /**
2952 * Updates the currently bound texture to [data].
2953 *
2954 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2955 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2956 * (or for more specificity, the more specialized [texImage2DImageData],
2957 * [texImage2DCanvas], [texImage2DVideo]).
2958 */
2959 @DomName('WebGLRenderingContext.texImage2D') 3225 @DomName('WebGLRenderingContext.texImage2D')
2960 @DocsEditable() 3226 @DocsEditable()
2961 void _texImage2D_3( 3227 void _texImage2D_3(
2962 target, level, internalformat, format, type, ImageElement image) native; 3228 target, level, internalformat, format, type, ImageElement image) native;
2963 @JSName('texImage2D') 3229 @JSName('texImage2D')
2964 /**
2965 * Updates the currently bound texture to [data].
2966 *
2967 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2968 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2969 * (or for more specificity, the more specialized [texImage2DImageData],
2970 * [texImage2DCanvas], [texImage2DVideo]).
2971 */
2972 @DomName('WebGLRenderingContext.texImage2D') 3230 @DomName('WebGLRenderingContext.texImage2D')
2973 @DocsEditable() 3231 @DocsEditable()
2974 void _texImage2D_4( 3232 void _texImage2D_4(
2975 target, level, internalformat, format, type, CanvasElement canvas) native; 3233 target, level, internalformat, format, type, CanvasElement canvas) native;
2976 @JSName('texImage2D') 3234 @JSName('texImage2D')
2977 /**
2978 * Updates the currently bound texture to [data].
2979 *
2980 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2981 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2982 * (or for more specificity, the more specialized [texImage2DImageData],
2983 * [texImage2DCanvas], [texImage2DVideo]).
2984 */
2985 @DomName('WebGLRenderingContext.texImage2D') 3235 @DomName('WebGLRenderingContext.texImage2D')
2986 @DocsEditable() 3236 @DocsEditable()
2987 void _texImage2D_5( 3237 void _texImage2D_5(
2988 target, level, internalformat, format, type, VideoElement video) native; 3238 target, level, internalformat, format, type, VideoElement video) native;
2989
2990 @JSName('texImage2D') 3239 @JSName('texImage2D')
2991 /**
2992 * Updates the currently bound texture to [data].
2993 *
2994 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2995 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2996 * (or for more specificity, the more specialized [texImage2DImageData],
2997 * [texImage2DCanvas], [texImage2DVideo]).
2998 */
2999 @DomName('WebGLRenderingContext.texImage2D') 3240 @DomName('WebGLRenderingContext.texImage2D')
3000 @DocsEditable() 3241 @DocsEditable()
3001 void texImage2DCanvas(int target, int level, int internalformat, int format, 3242 void _texImage2D_6(
3002 int type, CanvasElement canvas) native; 3243 target, level, internalformat, format, type, ImageBitmap bitmap) native;
3003
3004 @JSName('texImage2D')
3005 /**
3006 * Updates the currently bound texture to [data].
3007 *
3008 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
3009 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
3010 * (or for more specificity, the more specialized [texImage2DImageData],
3011 * [texImage2DCanvas], [texImage2DVideo]).
3012 */
3013 @DomName('WebGLRenderingContext.texImage2D')
3014 @DocsEditable()
3015 void texImage2DImage(int target, int level, int internalformat, int format,
3016 int type, ImageElement image) native;
3017
3018 /**
3019 * Updates the currently bound texture to [data].
3020 *
3021 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
3022 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
3023 * (or for more specificity, the more specialized [texImage2DImageData],
3024 * [texImage2DCanvas], [texImage2DVideo]).
3025 */
3026 @DomName('WebGLRenderingContext.texImage2D')
3027 @DocsEditable()
3028 void texImage2DImageData(int target, int level, int internalformat,
3029 int format, int type, ImageData pixels) {
3030 var pixels_1 = convertDartToNative_ImageData(pixels);
3031 _texImage2DImageData_1(
3032 target, level, internalformat, format, type, pixels_1);
3033 return;
3034 }
3035
3036 @JSName('texImage2D')
3037 /**
3038 * Updates the currently bound texture to [data].
3039 *
3040 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
3041 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
3042 * (or for more specificity, the more specialized [texImage2DImageData],
3043 * [texImage2DCanvas], [texImage2DVideo]).
3044 */
3045 @DomName('WebGLRenderingContext.texImage2D')
3046 @DocsEditable()
3047 void _texImage2DImageData_1(
3048 target, level, internalformat, format, type, pixels) native;
3049
3050 @JSName('texImage2D')
3051 /**
3052 * Updates the currently bound texture to [data].
3053 *
3054 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
3055 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
3056 * (or for more specificity, the more specialized [texImage2DImageData],
3057 * [texImage2DCanvas], [texImage2DVideo]).
3058 */
3059 @DomName('WebGLRenderingContext.texImage2D')
3060 @DocsEditable()
3061 void texImage2DVideo(int target, int level, int internalformat, int format,
3062 int type, VideoElement video) native;
3063 3244
3064 @DomName('WebGLRenderingContext.texParameterf') 3245 @DomName('WebGLRenderingContext.texParameterf')
3065 @DocsEditable() 3246 @DocsEditable()
3066 void texParameterf(int target, int pname, num param) native; 3247 void texParameterf(int target, int pname, num param) native;
3067 3248
3068 @DomName('WebGLRenderingContext.texParameteri') 3249 @DomName('WebGLRenderingContext.texParameteri')
3069 @DocsEditable() 3250 @DocsEditable()
3070 void texParameteri(int target, int pname, int param) native; 3251 void texParameteri(int target, int pname, int param) native;
3071 3252
3072 /**
3073 * Updates a sub-rectangle of the currently bound texture to [data].
3074 *
3075 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3076 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3077 * (or for more specificity, the more specialized [texSubImage2DImageData],
3078 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3079 */
3080 @DomName('WebGLRenderingContext.texSubImage2D') 3253 @DomName('WebGLRenderingContext.texSubImage2D')
3081 @DocsEditable() 3254 @DocsEditable()
3082 void texSubImage2D( 3255 void texSubImage2D(
3083 int target, 3256 int target,
3084 int level, 3257 int level,
3085 int xoffset, 3258 int xoffset,
3086 int yoffset, 3259 int yoffset,
3087 int format_OR_width, 3260 int format_OR_width,
3088 int height_OR_type, 3261 int height_OR_type,
3089 canvas_OR_format_OR_image_OR_pixels_OR_video, 3262 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
3090 [int type, 3263 [int type,
3091 TypedData pixels]) { 3264 TypedData pixels]) {
3092 if (pixels != null && 3265 if (type != null &&
3093 type != null && 3266 (bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is int)) {
3094 (canvas_OR_format_OR_image_OR_pixels_OR_video is int)) {
3095 _texSubImage2D_1( 3267 _texSubImage2D_1(
3096 target, 3268 target,
3097 level, 3269 level,
3098 xoffset, 3270 xoffset,
3099 yoffset, 3271 yoffset,
3100 format_OR_width, 3272 format_OR_width,
3101 height_OR_type, 3273 height_OR_type,
3102 canvas_OR_format_OR_image_OR_pixels_OR_video, 3274 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
3103 type, 3275 type,
3104 pixels); 3276 pixels);
3105 return; 3277 return;
3106 } 3278 }
3107 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || 3279 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData ||
3108 canvas_OR_format_OR_image_OR_pixels_OR_video == null) && 3280 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
3109 type == null && 3281 type == null &&
3110 pixels == null) { 3282 pixels == null) {
3111 var pixels_1 = convertDartToNative_ImageData( 3283 var pixels_1 = convertDartToNative_ImageData(
3112 canvas_OR_format_OR_image_OR_pixels_OR_video); 3284 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
3113 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, 3285 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width,
3114 height_OR_type, pixels_1); 3286 height_OR_type, pixels_1);
3115 return; 3287 return;
3116 } 3288 }
3117 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && 3289 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
3290 is ImageElement) &&
3118 type == null && 3291 type == null &&
3119 pixels == null) { 3292 pixels == null) {
3120 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, 3293 _texSubImage2D_3(
3121 height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 3294 target,
3295 level,
3296 xoffset,
3297 yoffset,
3298 format_OR_width,
3299 height_OR_type,
3300 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
3122 return; 3301 return;
3123 } 3302 }
3124 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement) && 3303 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
3304 is CanvasElement) &&
3125 type == null && 3305 type == null &&
3126 pixels == null) { 3306 pixels == null) {
3127 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, 3307 _texSubImage2D_4(
3128 height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 3308 target,
3309 level,
3310 xoffset,
3311 yoffset,
3312 format_OR_width,
3313 height_OR_type,
3314 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
3129 return; 3315 return;
3130 } 3316 }
3131 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement) && 3317 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
3318 is VideoElement) &&
3132 type == null && 3319 type == null &&
3133 pixels == null) { 3320 pixels == null) {
3134 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, 3321 _texSubImage2D_5(
3135 height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 3322 target,
3323 level,
3324 xoffset,
3325 yoffset,
3326 format_OR_width,
3327 height_OR_type,
3328 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
3329 return;
3330 }
3331 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
3332 is ImageBitmap) &&
3333 type == null &&
3334 pixels == null) {
3335 _texSubImage2D_6(
3336 target,
3337 level,
3338 xoffset,
3339 yoffset,
3340 format_OR_width,
3341 height_OR_type,
3342 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
3136 return; 3343 return;
3137 } 3344 }
3138 throw new ArgumentError("Incorrect number or type of arguments"); 3345 throw new ArgumentError("Incorrect number or type of arguments");
3139 } 3346 }
3140 3347
3141 @JSName('texSubImage2D') 3348 @JSName('texSubImage2D')
3142 /**
3143 * Updates a sub-rectangle of the currently bound texture to [data].
3144 *
3145 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3146 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3147 * (or for more specificity, the more specialized [texSubImage2DImageData],
3148 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3149 */
3150 @DomName('WebGLRenderingContext.texSubImage2D') 3349 @DomName('WebGLRenderingContext.texSubImage2D')
3151 @DocsEditable() 3350 @DocsEditable()
3152 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, 3351 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height,
3153 int format, type, TypedData pixels) native; 3352 int format, type, TypedData pixels) native;
3154 @JSName('texSubImage2D') 3353 @JSName('texSubImage2D')
3155 /**
3156 * Updates a sub-rectangle of the currently bound texture to [data].
3157 *
3158 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3159 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3160 * (or for more specificity, the more specialized [texSubImage2DImageData],
3161 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3162 */
3163 @DomName('WebGLRenderingContext.texSubImage2D') 3354 @DomName('WebGLRenderingContext.texSubImage2D')
3164 @DocsEditable() 3355 @DocsEditable()
3165 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) 3356 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels)
3166 native; 3357 native;
3167 @JSName('texSubImage2D') 3358 @JSName('texSubImage2D')
3168 /**
3169 * Updates a sub-rectangle of the currently bound texture to [data].
3170 *
3171 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3172 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3173 * (or for more specificity, the more specialized [texSubImage2DImageData],
3174 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3175 */
3176 @DomName('WebGLRenderingContext.texSubImage2D') 3359 @DomName('WebGLRenderingContext.texSubImage2D')
3177 @DocsEditable() 3360 @DocsEditable()
3178 void _texSubImage2D_3( 3361 void _texSubImage2D_3(
3179 target, level, xoffset, yoffset, format, type, ImageElement image) native; 3362 target, level, xoffset, yoffset, format, type, ImageElement image) native;
3180 @JSName('texSubImage2D') 3363 @JSName('texSubImage2D')
3181 /**
3182 * Updates a sub-rectangle of the currently bound texture to [data].
3183 *
3184 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3185 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3186 * (or for more specificity, the more specialized [texSubImage2DImageData],
3187 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3188 */
3189 @DomName('WebGLRenderingContext.texSubImage2D') 3364 @DomName('WebGLRenderingContext.texSubImage2D')
3190 @DocsEditable() 3365 @DocsEditable()
3191 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, 3366 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type,
3192 CanvasElement canvas) native; 3367 CanvasElement canvas) native;
3193 @JSName('texSubImage2D') 3368 @JSName('texSubImage2D')
3194 /**
3195 * Updates a sub-rectangle of the currently bound texture to [data].
3196 *
3197 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3198 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3199 * (or for more specificity, the more specialized [texSubImage2DImageData],
3200 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3201 */
3202 @DomName('WebGLRenderingContext.texSubImage2D') 3369 @DomName('WebGLRenderingContext.texSubImage2D')
3203 @DocsEditable() 3370 @DocsEditable()
3204 void _texSubImage2D_5( 3371 void _texSubImage2D_5(
3205 target, level, xoffset, yoffset, format, type, VideoElement video) native; 3372 target, level, xoffset, yoffset, format, type, VideoElement video) native;
3206
3207 @JSName('texSubImage2D') 3373 @JSName('texSubImage2D')
3208 /**
3209 * Updates a sub-rectangle of the currently bound texture to [data].
3210 *
3211 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3212 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3213 * (or for more specificity, the more specialized [texSubImage2DImageData],
3214 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3215 */
3216 @DomName('WebGLRenderingContext.texSubImage2D') 3374 @DomName('WebGLRenderingContext.texSubImage2D')
3217 @DocsEditable() 3375 @DocsEditable()
3218 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, 3376 void _texSubImage2D_6(
3219 int format, int type, CanvasElement canvas) native; 3377 target, level, xoffset, yoffset, format, type, ImageBitmap bitmap) native;
3220
3221 @JSName('texSubImage2D')
3222 /**
3223 * Updates a sub-rectangle of the currently bound texture to [data].
3224 *
3225 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3226 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3227 * (or for more specificity, the more specialized [texSubImage2DImageData],
3228 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3229 */
3230 @DomName('WebGLRenderingContext.texSubImage2D')
3231 @DocsEditable()
3232 void texSubImage2DImage(int target, int level, int xoffset, int yoffset,
3233 int format, int type, ImageElement image) native;
3234
3235 /**
3236 * Updates a sub-rectangle of the currently bound texture to [data].
3237 *
3238 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3239 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3240 * (or for more specificity, the more specialized [texSubImage2DImageData],
3241 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3242 */
3243 @DomName('WebGLRenderingContext.texSubImage2D')
3244 @DocsEditable()
3245 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset,
3246 int format, int type, ImageData pixels) {
3247 var pixels_1 = convertDartToNative_ImageData(pixels);
3248 _texSubImage2DImageData_1(
3249 target, level, xoffset, yoffset, format, type, pixels_1);
3250 return;
3251 }
3252
3253 @JSName('texSubImage2D')
3254 /**
3255 * Updates a sub-rectangle of the currently bound texture to [data].
3256 *
3257 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3258 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3259 * (or for more specificity, the more specialized [texSubImage2DImageData],
3260 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3261 */
3262 @DomName('WebGLRenderingContext.texSubImage2D')
3263 @DocsEditable()
3264 void _texSubImage2DImageData_1(
3265 target, level, xoffset, yoffset, format, type, pixels) native;
3266
3267 @JSName('texSubImage2D')
3268 /**
3269 * Updates a sub-rectangle of the currently bound texture to [data].
3270 *
3271 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3272 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3273 * (or for more specificity, the more specialized [texSubImage2DImageData],
3274 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3275 */
3276 @DomName('WebGLRenderingContext.texSubImage2D')
3277 @DocsEditable()
3278 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset,
3279 int format, int type, VideoElement video) native;
3280 3378
3281 @DomName('WebGLRenderingContext.uniform1f') 3379 @DomName('WebGLRenderingContext.uniform1f')
3282 @DocsEditable() 3380 @DocsEditable()
3283 void uniform1f(UniformLocation location, num x) native; 3381 void uniform1f(UniformLocation location, num x) native;
3284 3382
3285 @DomName('WebGLRenderingContext.uniform1fv') 3383 @DomName('WebGLRenderingContext.uniform1fv')
3286 @DocsEditable() 3384 @DocsEditable()
3287 void uniform1fv(UniformLocation location, Float32List v) native; 3385 void uniform1fv(UniformLocation location, v) native;
3288 3386
3289 @DomName('WebGLRenderingContext.uniform1i') 3387 @DomName('WebGLRenderingContext.uniform1i')
3290 @DocsEditable() 3388 @DocsEditable()
3291 void uniform1i(UniformLocation location, int x) native; 3389 void uniform1i(UniformLocation location, int x) native;
3292 3390
3293 @DomName('WebGLRenderingContext.uniform1iv') 3391 @DomName('WebGLRenderingContext.uniform1iv')
3294 @DocsEditable() 3392 @DocsEditable()
3295 void uniform1iv(UniformLocation location, Int32List v) native; 3393 void uniform1iv(UniformLocation location, v) native;
3296 3394
3297 @DomName('WebGLRenderingContext.uniform2f') 3395 @DomName('WebGLRenderingContext.uniform2f')
3298 @DocsEditable() 3396 @DocsEditable()
3299 void uniform2f(UniformLocation location, num x, num y) native; 3397 void uniform2f(UniformLocation location, num x, num y) native;
3300 3398
3301 @DomName('WebGLRenderingContext.uniform2fv') 3399 @DomName('WebGLRenderingContext.uniform2fv')
3302 @DocsEditable() 3400 @DocsEditable()
3303 void uniform2fv(UniformLocation location, Float32List v) native; 3401 void uniform2fv(UniformLocation location, v) native;
3304 3402
3305 @DomName('WebGLRenderingContext.uniform2i') 3403 @DomName('WebGLRenderingContext.uniform2i')
3306 @DocsEditable() 3404 @DocsEditable()
3307 void uniform2i(UniformLocation location, int x, int y) native; 3405 void uniform2i(UniformLocation location, int x, int y) native;
3308 3406
3309 @DomName('WebGLRenderingContext.uniform2iv') 3407 @DomName('WebGLRenderingContext.uniform2iv')
3310 @DocsEditable() 3408 @DocsEditable()
3311 void uniform2iv(UniformLocation location, Int32List v) native; 3409 void uniform2iv(UniformLocation location, v) native;
3312 3410
3313 @DomName('WebGLRenderingContext.uniform3f') 3411 @DomName('WebGLRenderingContext.uniform3f')
3314 @DocsEditable() 3412 @DocsEditable()
3315 void uniform3f(UniformLocation location, num x, num y, num z) native; 3413 void uniform3f(UniformLocation location, num x, num y, num z) native;
3316 3414
3317 @DomName('WebGLRenderingContext.uniform3fv') 3415 @DomName('WebGLRenderingContext.uniform3fv')
3318 @DocsEditable() 3416 @DocsEditable()
3319 void uniform3fv(UniformLocation location, Float32List v) native; 3417 void uniform3fv(UniformLocation location, v) native;
3320 3418
3321 @DomName('WebGLRenderingContext.uniform3i') 3419 @DomName('WebGLRenderingContext.uniform3i')
3322 @DocsEditable() 3420 @DocsEditable()
3323 void uniform3i(UniformLocation location, int x, int y, int z) native; 3421 void uniform3i(UniformLocation location, int x, int y, int z) native;
3324 3422
3325 @DomName('WebGLRenderingContext.uniform3iv') 3423 @DomName('WebGLRenderingContext.uniform3iv')
3326 @DocsEditable() 3424 @DocsEditable()
3327 void uniform3iv(UniformLocation location, Int32List v) native; 3425 void uniform3iv(UniformLocation location, v) native;
3328 3426
3329 @DomName('WebGLRenderingContext.uniform4f') 3427 @DomName('WebGLRenderingContext.uniform4f')
3330 @DocsEditable() 3428 @DocsEditable()
3331 void uniform4f(UniformLocation location, num x, num y, num z, num w) native; 3429 void uniform4f(UniformLocation location, num x, num y, num z, num w) native;
3332 3430
3333 @DomName('WebGLRenderingContext.uniform4fv') 3431 @DomName('WebGLRenderingContext.uniform4fv')
3334 @DocsEditable() 3432 @DocsEditable()
3335 void uniform4fv(UniformLocation location, Float32List v) native; 3433 void uniform4fv(UniformLocation location, v) native;
3336 3434
3337 @DomName('WebGLRenderingContext.uniform4i') 3435 @DomName('WebGLRenderingContext.uniform4i')
3338 @DocsEditable() 3436 @DocsEditable()
3339 void uniform4i(UniformLocation location, int x, int y, int z, int w) native; 3437 void uniform4i(UniformLocation location, int x, int y, int z, int w) native;
3340 3438
3341 @DomName('WebGLRenderingContext.uniform4iv') 3439 @DomName('WebGLRenderingContext.uniform4iv')
3342 @DocsEditable() 3440 @DocsEditable()
3343 void uniform4iv(UniformLocation location, Int32List v) native; 3441 void uniform4iv(UniformLocation location, v) native;
3344 3442
3345 @DomName('WebGLRenderingContext.uniformMatrix2fv') 3443 @DomName('WebGLRenderingContext.uniformMatrix2fv')
3346 @DocsEditable() 3444 @DocsEditable()
3347 void uniformMatrix2fv( 3445 void uniformMatrix2fv(UniformLocation location, bool transpose, array) native;
3348 UniformLocation location, bool transpose, Float32List array) native;
3349 3446
3350 @DomName('WebGLRenderingContext.uniformMatrix3fv') 3447 @DomName('WebGLRenderingContext.uniformMatrix3fv')
3351 @DocsEditable() 3448 @DocsEditable()
3352 void uniformMatrix3fv( 3449 void uniformMatrix3fv(UniformLocation location, bool transpose, array) native;
3353 UniformLocation location, bool transpose, Float32List array) native;
3354 3450
3355 @DomName('WebGLRenderingContext.uniformMatrix4fv') 3451 @DomName('WebGLRenderingContext.uniformMatrix4fv')
3356 @DocsEditable() 3452 @DocsEditable()
3357 void uniformMatrix4fv( 3453 void uniformMatrix4fv(UniformLocation location, bool transpose, array) native;
3358 UniformLocation location, bool transpose, Float32List array) native;
3359 3454
3360 @DomName('WebGLRenderingContext.useProgram') 3455 @DomName('WebGLRenderingContext.useProgram')
3361 @DocsEditable() 3456 @DocsEditable()
3362 void useProgram(Program program) native; 3457 void useProgram(Program program) native;
3363 3458
3364 @DomName('WebGLRenderingContext.validateProgram') 3459 @DomName('WebGLRenderingContext.validateProgram')
3365 @DocsEditable() 3460 @DocsEditable()
3366 void validateProgram(Program program) native; 3461 void validateProgram(Program program) native;
3367 3462
3368 @DomName('WebGLRenderingContext.vertexAttrib1f') 3463 @DomName('WebGLRenderingContext.vertexAttrib1f')
3369 @DocsEditable() 3464 @DocsEditable()
3370 void vertexAttrib1f(int indx, num x) native; 3465 void vertexAttrib1f(int indx, num x) native;
3371 3466
3372 @DomName('WebGLRenderingContext.vertexAttrib1fv') 3467 @DomName('WebGLRenderingContext.vertexAttrib1fv')
3373 @DocsEditable() 3468 @DocsEditable()
3374 void vertexAttrib1fv(int indx, Float32List values) native; 3469 void vertexAttrib1fv(int indx, values) native;
3375 3470
3376 @DomName('WebGLRenderingContext.vertexAttrib2f') 3471 @DomName('WebGLRenderingContext.vertexAttrib2f')
3377 @DocsEditable() 3472 @DocsEditable()
3378 void vertexAttrib2f(int indx, num x, num y) native; 3473 void vertexAttrib2f(int indx, num x, num y) native;
3379 3474
3380 @DomName('WebGLRenderingContext.vertexAttrib2fv') 3475 @DomName('WebGLRenderingContext.vertexAttrib2fv')
3381 @DocsEditable() 3476 @DocsEditable()
3382 void vertexAttrib2fv(int indx, Float32List values) native; 3477 void vertexAttrib2fv(int indx, values) native;
3383 3478
3384 @DomName('WebGLRenderingContext.vertexAttrib3f') 3479 @DomName('WebGLRenderingContext.vertexAttrib3f')
3385 @DocsEditable() 3480 @DocsEditable()
3386 void vertexAttrib3f(int indx, num x, num y, num z) native; 3481 void vertexAttrib3f(int indx, num x, num y, num z) native;
3387 3482
3388 @DomName('WebGLRenderingContext.vertexAttrib3fv') 3483 @DomName('WebGLRenderingContext.vertexAttrib3fv')
3389 @DocsEditable() 3484 @DocsEditable()
3390 void vertexAttrib3fv(int indx, Float32List values) native; 3485 void vertexAttrib3fv(int indx, values) native;
3391 3486
3392 @DomName('WebGLRenderingContext.vertexAttrib4f') 3487 @DomName('WebGLRenderingContext.vertexAttrib4f')
3393 @DocsEditable() 3488 @DocsEditable()
3394 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; 3489 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
3395 3490
3396 @DomName('WebGLRenderingContext.vertexAttrib4fv') 3491 @DomName('WebGLRenderingContext.vertexAttrib4fv')
3397 @DocsEditable() 3492 @DocsEditable()
3398 void vertexAttrib4fv(int indx, Float32List values) native; 3493 void vertexAttrib4fv(int indx, values) native;
3399 3494
3400 @DomName('WebGLRenderingContext.vertexAttribPointer') 3495 @DomName('WebGLRenderingContext.vertexAttribPointer')
3401 @DocsEditable() 3496 @DocsEditable()
3402 void vertexAttribPointer(int indx, int size, int type, bool normalized, 3497 void vertexAttribPointer(int indx, int size, int type, bool normalized,
3403 int stride, int offset) native; 3498 int stride, int offset) native;
3404 3499
3405 @DomName('WebGLRenderingContext.viewport') 3500 @DomName('WebGLRenderingContext.viewport')
3406 @DocsEditable() 3501 @DocsEditable()
3407 void viewport(int x, int y, int width, int height) native; 3502 void viewport(int x, int y, int width, int height) native;
3408 3503
3409 /** 3504 /**
3410 * Sets the currently bound texture to [data]. 3505 * Sets the currently bound texture to [data].
3411 * 3506 *
3412 * [data] can be either an [ImageElement], a 3507 * [data] can be either an [ImageElement], a
3413 * [CanvasElement], a [VideoElement], or an [ImageData] object. 3508 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object.
3414 * 3509 *
3415 * To use [texImage2d] with a TypedData object, use [texImage2dTyped]. 3510 * This is deprecated in favor of [texImage2D].
3416 *
3417 */ 3511 */
3418 @JSName('texImage2D') 3512 @Deprecated("Use texImage2D")
3419 void texImage2DUntyped(int targetTexture, int levelOfDetail, 3513 void texImage2DUntyped(int targetTexture, int levelOfDetail,
3420 int internalFormat, int format, int type, data) native; 3514 int internalFormat, int format, int type, data) {
3515 texImage2D(
3516 targetTexture, levelOfDetail, internalFormat, format, type, data);
3517 }
3421 3518
3422 /** 3519 /**
3423 * Sets the currently bound texture to [data]. 3520 * Sets the currently bound texture to [data].
3521 *
3522 * This is deprecated in favour of [texImage2D].
3424 */ 3523 */
3425 @JSName('texImage2D') 3524 @Deprecated("Use texImage2D")
3426 void texImage2DTyped( 3525 void texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat,
3427 int targetTexture, 3526 int width, int height, int border, int format, int type, TypedData data) {
3428 int levelOfDetail, 3527 texImage2D(targetTexture, levelOfDetail, internalFormat, width, height,
3429 int internalFormat, 3528 border, format, type, data);
3430 int width, 3529 }
3431 int height,
3432 int border,
3433 int format,
3434 int type,
3435 TypedData data) native;
3436 3530
3437 /** 3531 /**
3438 * Updates a sub-rectangle of the currently bound texture to [data]. 3532 * Updates a sub-rectangle of the currently bound texture to [data].
3439 * 3533 *
3440 * [data] can be either an [ImageElement], a 3534 * [data] can be either an [ImageElement], a
3441 * [CanvasElement], a [VideoElement], or an [ImageData] object. 3535 * [CanvasElement], a [VideoElement], [TypedData] or an [ImageData] object.
3442 *
3443 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped].
3444 * 3536 *
3445 */ 3537 */
3446 @JSName('texSubImage2D') 3538 @Deprecated("Use texSubImage2D")
3447 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, int xOffset, 3539 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, int xOffset,
3448 int yOffset, int format, int type, data) native; 3540 int yOffset, int format, int type, data) {
3541 texSubImage2D(
3542 targetTexture, levelOfDetail, xOffset, yOffset, format, type, data);
3543 }
3449 3544
3450 /** 3545 /**
3451 * Updates a sub-rectangle of the currently bound texture to [data]. 3546 * Updates a sub-rectangle of the currently bound texture to [data].
3452 */ 3547 */
3453 @JSName('texSubImage2D') 3548 @Deprecated("Use texSubImage2D")
3454 void texSubImage2DTyped( 3549 void texSubImage2DTyped(
3455 int targetTexture, 3550 int targetTexture,
3456 int levelOfDetail, 3551 int levelOfDetail,
3457 int xOffset, 3552 int xOffset,
3458 int yOffset, 3553 int yOffset,
3459 int width, 3554 int width,
3460 int height, 3555 int height,
3461 int border, 3556 int border,
3462 int format, 3557 int format,
3463 int type, 3558 int type,
3464 TypedData data) native; 3559 TypedData data) {
3465 } 3560 texSubImage2D(targetTexture, levelOfDetail, xOffset, yOffset, width, height,
3466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3561 format, type, data);
3467 // for details. All rights reserved. Use of this source code is governed by a 3562 }
3468 // BSD-style license that can be found in the LICENSE file.
3469 3563
3470 @DocsEditable() 3564 /**
3471 @DomName('WebGLShader') 3565 * Set the bufferData to [data].
3472 @Native("WebGLShader") 3566 */
3473 class Shader extends Interceptor { 3567 @Deprecated("Use bufferData")
3474 // To suppress missing implicit constructor warnings. 3568 void bufferDataTyped(int target, TypedData data, int usage) {
3475 factory Shader._() { 3569 bufferData(target, data, usage);
3476 throw new UnsupportedError("Not supported"); 3570 }
3571
3572 /**
3573 * Set the bufferSubData to [data].
3574 */
3575 @Deprecated("Use bufferSubData")
3576 void bufferSubDataTyped(int target, int offset, TypedData data) {
3577 bufferSubData(target, offset, data);
3477 } 3578 }
3478 } 3579 }
3479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3480 // for details. All rights reserved. Use of this source code is governed by a 3581 // for details. All rights reserved. Use of this source code is governed by a
3481 // BSD-style license that can be found in the LICENSE file. 3582 // BSD-style license that can be found in the LICENSE file.
3482 3583
3483 @DocsEditable() 3584 @DocsEditable()
3585 @DomName('WebGL2RenderingContext')
3586 @Experimental() // untriaged
3587 @Native("WebGL2RenderingContext")
3588 class RenderingContext2 extends Interceptor
3589 implements _WebGL2RenderingContextBase, _WebGLRenderingContextBase {
3590 // To suppress missing implicit constructor warnings.
3591 factory RenderingContext2._() {
3592 throw new UnsupportedError("Not supported");
3593 }
3594
3595 @DomName('WebGL2RenderingContext.ACTIVE_ATTRIBUTES')
3596 @DocsEditable()
3597 @Experimental() // untriaged
3598 static const int ACTIVE_ATTRIBUTES = 0x8B89;
3599
3600 @DomName('WebGL2RenderingContext.ACTIVE_TEXTURE')
3601 @DocsEditable()
3602 @Experimental() // untriaged
3603 static const int ACTIVE_TEXTURE = 0x84E0;
3604
3605 @DomName('WebGL2RenderingContext.ACTIVE_UNIFORMS')
3606 @DocsEditable()
3607 @Experimental() // untriaged
3608 static const int ACTIVE_UNIFORMS = 0x8B86;
3609
3610 @DomName('WebGL2RenderingContext.ALIASED_LINE_WIDTH_RANGE')
3611 @DocsEditable()
3612 @Experimental() // untriaged
3613 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
3614
3615 @DomName('WebGL2RenderingContext.ALIASED_POINT_SIZE_RANGE')
3616 @DocsEditable()
3617 @Experimental() // untriaged
3618 static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
3619
3620 @DomName('WebGL2RenderingContext.ALPHA')
3621 @DocsEditable()
3622 @Experimental() // untriaged
3623 static const int ALPHA = 0x1906;
3624
3625 @DomName('WebGL2RenderingContext.ALPHA_BITS')
3626 @DocsEditable()
3627 @Experimental() // untriaged
3628 static const int ALPHA_BITS = 0x0D55;
3629
3630 @DomName('WebGL2RenderingContext.ALWAYS')
3631 @DocsEditable()
3632 @Experimental() // untriaged
3633 static const int ALWAYS = 0x0207;
3634
3635 @DomName('WebGL2RenderingContext.ARRAY_BUFFER')
3636 @DocsEditable()
3637 @Experimental() // untriaged
3638 static const int ARRAY_BUFFER = 0x8892;
3639
3640 @DomName('WebGL2RenderingContext.ARRAY_BUFFER_BINDING')
3641 @DocsEditable()
3642 @Experimental() // untriaged
3643 static const int ARRAY_BUFFER_BINDING = 0x8894;
3644
3645 @DomName('WebGL2RenderingContext.ATTACHED_SHADERS')
3646 @DocsEditable()
3647 @Experimental() // untriaged
3648 static const int ATTACHED_SHADERS = 0x8B85;
3649
3650 @DomName('WebGL2RenderingContext.BACK')
3651 @DocsEditable()
3652 @Experimental() // untriaged
3653 static const int BACK = 0x0405;
3654
3655 @DomName('WebGL2RenderingContext.BLEND')
3656 @DocsEditable()
3657 @Experimental() // untriaged
3658 static const int BLEND = 0x0BE2;
3659
3660 @DomName('WebGL2RenderingContext.BLEND_COLOR')
3661 @DocsEditable()
3662 @Experimental() // untriaged
3663 static const int BLEND_COLOR = 0x8005;
3664
3665 @DomName('WebGL2RenderingContext.BLEND_DST_ALPHA')
3666 @DocsEditable()
3667 @Experimental() // untriaged
3668 static const int BLEND_DST_ALPHA = 0x80CA;
3669
3670 @DomName('WebGL2RenderingContext.BLEND_DST_RGB')
3671 @DocsEditable()
3672 @Experimental() // untriaged
3673 static const int BLEND_DST_RGB = 0x80C8;
3674
3675 @DomName('WebGL2RenderingContext.BLEND_EQUATION')
3676 @DocsEditable()
3677 @Experimental() // untriaged
3678 static const int BLEND_EQUATION = 0x8009;
3679
3680 @DomName('WebGL2RenderingContext.BLEND_EQUATION_ALPHA')
3681 @DocsEditable()
3682 @Experimental() // untriaged
3683 static const int BLEND_EQUATION_ALPHA = 0x883D;
3684
3685 @DomName('WebGL2RenderingContext.BLEND_EQUATION_RGB')
3686 @DocsEditable()
3687 @Experimental() // untriaged
3688 static const int BLEND_EQUATION_RGB = 0x8009;
3689
3690 @DomName('WebGL2RenderingContext.BLEND_SRC_ALPHA')
3691 @DocsEditable()
3692 @Experimental() // untriaged
3693 static const int BLEND_SRC_ALPHA = 0x80CB;
3694
3695 @DomName('WebGL2RenderingContext.BLEND_SRC_RGB')
3696 @DocsEditable()
3697 @Experimental() // untriaged
3698 static const int BLEND_SRC_RGB = 0x80C9;
3699
3700 @DomName('WebGL2RenderingContext.BLUE_BITS')
3701 @DocsEditable()
3702 @Experimental() // untriaged
3703 static const int BLUE_BITS = 0x0D54;
3704
3705 @DomName('WebGL2RenderingContext.BOOL')
3706 @DocsEditable()
3707 @Experimental() // untriaged
3708 static const int BOOL = 0x8B56;
3709
3710 @DomName('WebGL2RenderingContext.BOOL_VEC2')
3711 @DocsEditable()
3712 @Experimental() // untriaged
3713 static const int BOOL_VEC2 = 0x8B57;
3714
3715 @DomName('WebGL2RenderingContext.BOOL_VEC3')
3716 @DocsEditable()
3717 @Experimental() // untriaged
3718 static const int BOOL_VEC3 = 0x8B58;
3719
3720 @DomName('WebGL2RenderingContext.BOOL_VEC4')
3721 @DocsEditable()
3722 @Experimental() // untriaged
3723 static const int BOOL_VEC4 = 0x8B59;
3724
3725 @DomName('WebGL2RenderingContext.BROWSER_DEFAULT_WEBGL')
3726 @DocsEditable()
3727 @Experimental() // untriaged
3728 static const int BROWSER_DEFAULT_WEBGL = 0x9244;
3729
3730 @DomName('WebGL2RenderingContext.BUFFER_SIZE')
3731 @DocsEditable()
3732 @Experimental() // untriaged
3733 static const int BUFFER_SIZE = 0x8764;
3734
3735 @DomName('WebGL2RenderingContext.BUFFER_USAGE')
3736 @DocsEditable()
3737 @Experimental() // untriaged
3738 static const int BUFFER_USAGE = 0x8765;
3739
3740 @DomName('WebGL2RenderingContext.BYTE')
3741 @DocsEditable()
3742 @Experimental() // untriaged
3743 static const int BYTE = 0x1400;
3744
3745 @DomName('WebGL2RenderingContext.CCW')
3746 @DocsEditable()
3747 @Experimental() // untriaged
3748 static const int CCW = 0x0901;
3749
3750 @DomName('WebGL2RenderingContext.CLAMP_TO_EDGE')
3751 @DocsEditable()
3752 @Experimental() // untriaged
3753 static const int CLAMP_TO_EDGE = 0x812F;
3754
3755 @DomName('WebGL2RenderingContext.COLOR_ATTACHMENT0')
3756 @DocsEditable()
3757 @Experimental() // untriaged
3758 static const int COLOR_ATTACHMENT0 = 0x8CE0;
3759
3760 @DomName('WebGL2RenderingContext.COLOR_BUFFER_BIT')
3761 @DocsEditable()
3762 @Experimental() // untriaged
3763 static const int COLOR_BUFFER_BIT = 0x00004000;
3764
3765 @DomName('WebGL2RenderingContext.COLOR_CLEAR_VALUE')
3766 @DocsEditable()
3767 @Experimental() // untriaged
3768 static const int COLOR_CLEAR_VALUE = 0x0C22;
3769
3770 @DomName('WebGL2RenderingContext.COLOR_WRITEMASK')
3771 @DocsEditable()
3772 @Experimental() // untriaged
3773 static const int COLOR_WRITEMASK = 0x0C23;
3774
3775 @DomName('WebGL2RenderingContext.COMPILE_STATUS')
3776 @DocsEditable()
3777 @Experimental() // untriaged
3778 static const int COMPILE_STATUS = 0x8B81;
3779
3780 @DomName('WebGL2RenderingContext.COMPRESSED_TEXTURE_FORMATS')
3781 @DocsEditable()
3782 @Experimental() // untriaged
3783 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
3784
3785 @DomName('WebGL2RenderingContext.CONSTANT_ALPHA')
3786 @DocsEditable()
3787 @Experimental() // untriaged
3788 static const int CONSTANT_ALPHA = 0x8003;
3789
3790 @DomName('WebGL2RenderingContext.CONSTANT_COLOR')
3791 @DocsEditable()
3792 @Experimental() // untriaged
3793 static const int CONSTANT_COLOR = 0x8001;
3794
3795 @DomName('WebGL2RenderingContext.CONTEXT_LOST_WEBGL')
3796 @DocsEditable()
3797 @Experimental() // untriaged
3798 static const int CONTEXT_LOST_WEBGL = 0x9242;
3799
3800 @DomName('WebGL2RenderingContext.CULL_FACE')
3801 @DocsEditable()
3802 @Experimental() // untriaged
3803 static const int CULL_FACE = 0x0B44;
3804
3805 @DomName('WebGL2RenderingContext.CULL_FACE_MODE')
3806 @DocsEditable()
3807 @Experimental() // untriaged
3808 static const int CULL_FACE_MODE = 0x0B45;
3809
3810 @DomName('WebGL2RenderingContext.CURRENT_PROGRAM')
3811 @DocsEditable()
3812 @Experimental() // untriaged
3813 static const int CURRENT_PROGRAM = 0x8B8D;
3814
3815 @DomName('WebGL2RenderingContext.CURRENT_VERTEX_ATTRIB')
3816 @DocsEditable()
3817 @Experimental() // untriaged
3818 static const int CURRENT_VERTEX_ATTRIB = 0x8626;
3819
3820 @DomName('WebGL2RenderingContext.CW')
3821 @DocsEditable()
3822 @Experimental() // untriaged
3823 static const int CW = 0x0900;
3824
3825 @DomName('WebGL2RenderingContext.DECR')
3826 @DocsEditable()
3827 @Experimental() // untriaged
3828 static const int DECR = 0x1E03;
3829
3830 @DomName('WebGL2RenderingContext.DECR_WRAP')
3831 @DocsEditable()
3832 @Experimental() // untriaged
3833 static const int DECR_WRAP = 0x8508;
3834
3835 @DomName('WebGL2RenderingContext.DELETE_STATUS')
3836 @DocsEditable()
3837 @Experimental() // untriaged
3838 static const int DELETE_STATUS = 0x8B80;
3839
3840 @DomName('WebGL2RenderingContext.DEPTH_ATTACHMENT')
3841 @DocsEditable()
3842 @Experimental() // untriaged
3843 static const int DEPTH_ATTACHMENT = 0x8D00;
3844
3845 @DomName('WebGL2RenderingContext.DEPTH_BITS')
3846 @DocsEditable()
3847 @Experimental() // untriaged
3848 static const int DEPTH_BITS = 0x0D56;
3849
3850 @DomName('WebGL2RenderingContext.DEPTH_BUFFER_BIT')
3851 @DocsEditable()
3852 @Experimental() // untriaged
3853 static const int DEPTH_BUFFER_BIT = 0x00000100;
3854
3855 @DomName('WebGL2RenderingContext.DEPTH_CLEAR_VALUE')
3856 @DocsEditable()
3857 @Experimental() // untriaged
3858 static const int DEPTH_CLEAR_VALUE = 0x0B73;
3859
3860 @DomName('WebGL2RenderingContext.DEPTH_COMPONENT')
3861 @DocsEditable()
3862 @Experimental() // untriaged
3863 static const int DEPTH_COMPONENT = 0x1902;
3864
3865 @DomName('WebGL2RenderingContext.DEPTH_COMPONENT16')
3866 @DocsEditable()
3867 @Experimental() // untriaged
3868 static const int DEPTH_COMPONENT16 = 0x81A5;
3869
3870 @DomName('WebGL2RenderingContext.DEPTH_FUNC')
3871 @DocsEditable()
3872 @Experimental() // untriaged
3873 static const int DEPTH_FUNC = 0x0B74;
3874
3875 @DomName('WebGL2RenderingContext.DEPTH_RANGE')
3876 @DocsEditable()
3877 @Experimental() // untriaged
3878 static const int DEPTH_RANGE = 0x0B70;
3879
3880 @DomName('WebGL2RenderingContext.DEPTH_STENCIL')
3881 @DocsEditable()
3882 @Experimental() // untriaged
3883 static const int DEPTH_STENCIL = 0x84F9;
3884
3885 @DomName('WebGL2RenderingContext.DEPTH_STENCIL_ATTACHMENT')
3886 @DocsEditable()
3887 @Experimental() // untriaged
3888 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
3889
3890 @DomName('WebGL2RenderingContext.DEPTH_TEST')
3891 @DocsEditable()
3892 @Experimental() // untriaged
3893 static const int DEPTH_TEST = 0x0B71;
3894
3895 @DomName('WebGL2RenderingContext.DEPTH_WRITEMASK')
3896 @DocsEditable()
3897 @Experimental() // untriaged
3898 static const int DEPTH_WRITEMASK = 0x0B72;
3899
3900 @DomName('WebGL2RenderingContext.DITHER')
3901 @DocsEditable()
3902 @Experimental() // untriaged
3903 static const int DITHER = 0x0BD0;
3904
3905 @DomName('WebGL2RenderingContext.DONT_CARE')
3906 @DocsEditable()
3907 @Experimental() // untriaged
3908 static const int DONT_CARE = 0x1100;
3909
3910 @DomName('WebGL2RenderingContext.DST_ALPHA')
3911 @DocsEditable()
3912 @Experimental() // untriaged
3913 static const int DST_ALPHA = 0x0304;
3914
3915 @DomName('WebGL2RenderingContext.DST_COLOR')
3916 @DocsEditable()
3917 @Experimental() // untriaged
3918 static const int DST_COLOR = 0x0306;
3919
3920 @DomName('WebGL2RenderingContext.DYNAMIC_DRAW')
3921 @DocsEditable()
3922 @Experimental() // untriaged
3923 static const int DYNAMIC_DRAW = 0x88E8;
3924
3925 @DomName('WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER')
3926 @DocsEditable()
3927 @Experimental() // untriaged
3928 static const int ELEMENT_ARRAY_BUFFER = 0x8893;
3929
3930 @DomName('WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING')
3931 @DocsEditable()
3932 @Experimental() // untriaged
3933 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
3934
3935 @DomName('WebGL2RenderingContext.EQUAL')
3936 @DocsEditable()
3937 @Experimental() // untriaged
3938 static const int EQUAL = 0x0202;
3939
3940 @DomName('WebGL2RenderingContext.FASTEST')
3941 @DocsEditable()
3942 @Experimental() // untriaged
3943 static const int FASTEST = 0x1101;
3944
3945 @DomName('WebGL2RenderingContext.FLOAT')
3946 @DocsEditable()
3947 @Experimental() // untriaged
3948 static const int FLOAT = 0x1406;
3949
3950 @DomName('WebGL2RenderingContext.FLOAT_MAT2')
3951 @DocsEditable()
3952 @Experimental() // untriaged
3953 static const int FLOAT_MAT2 = 0x8B5A;
3954
3955 @DomName('WebGL2RenderingContext.FLOAT_MAT3')
3956 @DocsEditable()
3957 @Experimental() // untriaged
3958 static const int FLOAT_MAT3 = 0x8B5B;
3959
3960 @DomName('WebGL2RenderingContext.FLOAT_MAT4')
3961 @DocsEditable()
3962 @Experimental() // untriaged
3963 static const int FLOAT_MAT4 = 0x8B5C;
3964
3965 @DomName('WebGL2RenderingContext.FLOAT_VEC2')
3966 @DocsEditable()
3967 @Experimental() // untriaged
3968 static const int FLOAT_VEC2 = 0x8B50;
3969
3970 @DomName('WebGL2RenderingContext.FLOAT_VEC3')
3971 @DocsEditable()
3972 @Experimental() // untriaged
3973 static const int FLOAT_VEC3 = 0x8B51;
3974
3975 @DomName('WebGL2RenderingContext.FLOAT_VEC4')
3976 @DocsEditable()
3977 @Experimental() // untriaged
3978 static const int FLOAT_VEC4 = 0x8B52;
3979
3980 @DomName('WebGL2RenderingContext.FRAGMENT_SHADER')
3981 @DocsEditable()
3982 @Experimental() // untriaged
3983 static const int FRAGMENT_SHADER = 0x8B30;
3984
3985 @DomName('WebGL2RenderingContext.FRAMEBUFFER')
3986 @DocsEditable()
3987 @Experimental() // untriaged
3988 static const int FRAMEBUFFER = 0x8D40;
3989
3990 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME')
3991 @DocsEditable()
3992 @Experimental() // untriaged
3993 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
3994
3995 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE')
3996 @DocsEditable()
3997 @Experimental() // untriaged
3998 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
3999
4000 @DomName(
4001 'WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE')
4002 @DocsEditable()
4003 @Experimental() // untriaged
4004 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
4005
4006 @DomName('WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL')
4007 @DocsEditable()
4008 @Experimental() // untriaged
4009 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
4010
4011 @DomName('WebGL2RenderingContext.FRAMEBUFFER_BINDING')
4012 @DocsEditable()
4013 @Experimental() // untriaged
4014 static const int FRAMEBUFFER_BINDING = 0x8CA6;
4015
4016 @DomName('WebGL2RenderingContext.FRAMEBUFFER_COMPLETE')
4017 @DocsEditable()
4018 @Experimental() // untriaged
4019 static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
4020
4021 @DomName('WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT')
4022 @DocsEditable()
4023 @Experimental() // untriaged
4024 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
4025
4026 @DomName('WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS')
4027 @DocsEditable()
4028 @Experimental() // untriaged
4029 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
4030
4031 @DomName('WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT')
4032 @DocsEditable()
4033 @Experimental() // untriaged
4034 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
4035
4036 @DomName('WebGL2RenderingContext.FRAMEBUFFER_UNSUPPORTED')
4037 @DocsEditable()
4038 @Experimental() // untriaged
4039 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
4040
4041 @DomName('WebGL2RenderingContext.FRONT')
4042 @DocsEditable()
4043 @Experimental() // untriaged
4044 static const int FRONT = 0x0404;
4045
4046 @DomName('WebGL2RenderingContext.FRONT_AND_BACK')
4047 @DocsEditable()
4048 @Experimental() // untriaged
4049 static const int FRONT_AND_BACK = 0x0408;
4050
4051 @DomName('WebGL2RenderingContext.FRONT_FACE')
4052 @DocsEditable()
4053 @Experimental() // untriaged
4054 static const int FRONT_FACE = 0x0B46;
4055
4056 @DomName('WebGL2RenderingContext.FUNC_ADD')
4057 @DocsEditable()
4058 @Experimental() // untriaged
4059 static const int FUNC_ADD = 0x8006;
4060
4061 @DomName('WebGL2RenderingContext.FUNC_REVERSE_SUBTRACT')
4062 @DocsEditable()
4063 @Experimental() // untriaged
4064 static const int FUNC_REVERSE_SUBTRACT = 0x800B;
4065
4066 @DomName('WebGL2RenderingContext.FUNC_SUBTRACT')
4067 @DocsEditable()
4068 @Experimental() // untriaged
4069 static const int FUNC_SUBTRACT = 0x800A;
4070
4071 @DomName('WebGL2RenderingContext.GENERATE_MIPMAP_HINT')
4072 @DocsEditable()
4073 @Experimental() // untriaged
4074 static const int GENERATE_MIPMAP_HINT = 0x8192;
4075
4076 @DomName('WebGL2RenderingContext.GEQUAL')
4077 @DocsEditable()
4078 @Experimental() // untriaged
4079 static const int GEQUAL = 0x0206;
4080
4081 @DomName('WebGL2RenderingContext.GREATER')
4082 @DocsEditable()
4083 @Experimental() // untriaged
4084 static const int GREATER = 0x0204;
4085
4086 @DomName('WebGL2RenderingContext.GREEN_BITS')
4087 @DocsEditable()
4088 @Experimental() // untriaged
4089 static const int GREEN_BITS = 0x0D53;
4090
4091 @DomName('WebGL2RenderingContext.HIGH_FLOAT')
4092 @DocsEditable()
4093 @Experimental() // untriaged
4094 static const int HIGH_FLOAT = 0x8DF2;
4095
4096 @DomName('WebGL2RenderingContext.HIGH_INT')
4097 @DocsEditable()
4098 @Experimental() // untriaged
4099 static const int HIGH_INT = 0x8DF5;
4100
4101 @DomName('WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT')
4102 @DocsEditable()
4103 @Experimental() // untriaged
4104 static const int IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B;
4105
4106 @DomName('WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_TYPE')
4107 @DocsEditable()
4108 @Experimental() // untriaged
4109 static const int IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A;
4110
4111 @DomName('WebGL2RenderingContext.INCR')
4112 @DocsEditable()
4113 @Experimental() // untriaged
4114 static const int INCR = 0x1E02;
4115
4116 @DomName('WebGL2RenderingContext.INCR_WRAP')
4117 @DocsEditable()
4118 @Experimental() // untriaged
4119 static const int INCR_WRAP = 0x8507;
4120
4121 @DomName('WebGL2RenderingContext.INT')
4122 @DocsEditable()
4123 @Experimental() // untriaged
4124 static const int INT = 0x1404;
4125
4126 @DomName('WebGL2RenderingContext.INT_VEC2')
4127 @DocsEditable()
4128 @Experimental() // untriaged
4129 static const int INT_VEC2 = 0x8B53;
4130
4131 @DomName('WebGL2RenderingContext.INT_VEC3')
4132 @DocsEditable()
4133 @Experimental() // untriaged
4134 static const int INT_VEC3 = 0x8B54;
4135
4136 @DomName('WebGL2RenderingContext.INT_VEC4')
4137 @DocsEditable()
4138 @Experimental() // untriaged
4139 static const int INT_VEC4 = 0x8B55;
4140
4141 @DomName('WebGL2RenderingContext.INVALID_ENUM')
4142 @DocsEditable()
4143 @Experimental() // untriaged
4144 static const int INVALID_ENUM = 0x0500;
4145
4146 @DomName('WebGL2RenderingContext.INVALID_FRAMEBUFFER_OPERATION')
4147 @DocsEditable()
4148 @Experimental() // untriaged
4149 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
4150
4151 @DomName('WebGL2RenderingContext.INVALID_OPERATION')
4152 @DocsEditable()
4153 @Experimental() // untriaged
4154 static const int INVALID_OPERATION = 0x0502;
4155
4156 @DomName('WebGL2RenderingContext.INVALID_VALUE')
4157 @DocsEditable()
4158 @Experimental() // untriaged
4159 static const int INVALID_VALUE = 0x0501;
4160
4161 @DomName('WebGL2RenderingContext.INVERT')
4162 @DocsEditable()
4163 @Experimental() // untriaged
4164 static const int INVERT = 0x150A;
4165
4166 @DomName('WebGL2RenderingContext.KEEP')
4167 @DocsEditable()
4168 @Experimental() // untriaged
4169 static const int KEEP = 0x1E00;
4170
4171 @DomName('WebGL2RenderingContext.LEQUAL')
4172 @DocsEditable()
4173 @Experimental() // untriaged
4174 static const int LEQUAL = 0x0203;
4175
4176 @DomName('WebGL2RenderingContext.LESS')
4177 @DocsEditable()
4178 @Experimental() // untriaged
4179 static const int LESS = 0x0201;
4180
4181 @DomName('WebGL2RenderingContext.LINEAR')
4182 @DocsEditable()
4183 @Experimental() // untriaged
4184 static const int LINEAR = 0x2601;
4185
4186 @DomName('WebGL2RenderingContext.LINEAR_MIPMAP_LINEAR')
4187 @DocsEditable()
4188 @Experimental() // untriaged
4189 static const int LINEAR_MIPMAP_LINEAR = 0x2703;
4190
4191 @DomName('WebGL2RenderingContext.LINEAR_MIPMAP_NEAREST')
4192 @DocsEditable()
4193 @Experimental() // untriaged
4194 static const int LINEAR_MIPMAP_NEAREST = 0x2701;
4195
4196 @DomName('WebGL2RenderingContext.LINES')
4197 @DocsEditable()
4198 @Experimental() // untriaged
4199 static const int LINES = 0x0001;
4200
4201 @DomName('WebGL2RenderingContext.LINE_LOOP')
4202 @DocsEditable()
4203 @Experimental() // untriaged
4204 static const int LINE_LOOP = 0x0002;
4205
4206 @DomName('WebGL2RenderingContext.LINE_STRIP')
4207 @DocsEditable()
4208 @Experimental() // untriaged
4209 static const int LINE_STRIP = 0x0003;
4210
4211 @DomName('WebGL2RenderingContext.LINE_WIDTH')
4212 @DocsEditable()
4213 @Experimental() // untriaged
4214 static const int LINE_WIDTH = 0x0B21;
4215
4216 @DomName('WebGL2RenderingContext.LINK_STATUS')
4217 @DocsEditable()
4218 @Experimental() // untriaged
4219 static const int LINK_STATUS = 0x8B82;
4220
4221 @DomName('WebGL2RenderingContext.LOW_FLOAT')
4222 @DocsEditable()
4223 @Experimental() // untriaged
4224 static const int LOW_FLOAT = 0x8DF0;
4225
4226 @DomName('WebGL2RenderingContext.LOW_INT')
4227 @DocsEditable()
4228 @Experimental() // untriaged
4229 static const int LOW_INT = 0x8DF3;
4230
4231 @DomName('WebGL2RenderingContext.LUMINANCE')
4232 @DocsEditable()
4233 @Experimental() // untriaged
4234 static const int LUMINANCE = 0x1909;
4235
4236 @DomName('WebGL2RenderingContext.LUMINANCE_ALPHA')
4237 @DocsEditable()
4238 @Experimental() // untriaged
4239 static const int LUMINANCE_ALPHA = 0x190A;
4240
4241 @DomName('WebGL2RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS')
4242 @DocsEditable()
4243 @Experimental() // untriaged
4244 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
4245
4246 @DomName('WebGL2RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE')
4247 @DocsEditable()
4248 @Experimental() // untriaged
4249 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
4250
4251 @DomName('WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS')
4252 @DocsEditable()
4253 @Experimental() // untriaged
4254 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
4255
4256 @DomName('WebGL2RenderingContext.MAX_RENDERBUFFER_SIZE')
4257 @DocsEditable()
4258 @Experimental() // untriaged
4259 static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
4260
4261 @DomName('WebGL2RenderingContext.MAX_TEXTURE_IMAGE_UNITS')
4262 @DocsEditable()
4263 @Experimental() // untriaged
4264 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
4265
4266 @DomName('WebGL2RenderingContext.MAX_TEXTURE_SIZE')
4267 @DocsEditable()
4268 @Experimental() // untriaged
4269 static const int MAX_TEXTURE_SIZE = 0x0D33;
4270
4271 @DomName('WebGL2RenderingContext.MAX_VARYING_VECTORS')
4272 @DocsEditable()
4273 @Experimental() // untriaged
4274 static const int MAX_VARYING_VECTORS = 0x8DFC;
4275
4276 @DomName('WebGL2RenderingContext.MAX_VERTEX_ATTRIBS')
4277 @DocsEditable()
4278 @Experimental() // untriaged
4279 static const int MAX_VERTEX_ATTRIBS = 0x8869;
4280
4281 @DomName('WebGL2RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS')
4282 @DocsEditable()
4283 @Experimental() // untriaged
4284 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
4285
4286 @DomName('WebGL2RenderingContext.MAX_VERTEX_UNIFORM_VECTORS')
4287 @DocsEditable()
4288 @Experimental() // untriaged
4289 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
4290
4291 @DomName('WebGL2RenderingContext.MAX_VIEWPORT_DIMS')
4292 @DocsEditable()
4293 @Experimental() // untriaged
4294 static const int MAX_VIEWPORT_DIMS = 0x0D3A;
4295
4296 @DomName('WebGL2RenderingContext.MEDIUM_FLOAT')
4297 @DocsEditable()
4298 @Experimental() // untriaged
4299 static const int MEDIUM_FLOAT = 0x8DF1;
4300
4301 @DomName('WebGL2RenderingContext.MEDIUM_INT')
4302 @DocsEditable()
4303 @Experimental() // untriaged
4304 static const int MEDIUM_INT = 0x8DF4;
4305
4306 @DomName('WebGL2RenderingContext.MIRRORED_REPEAT')
4307 @DocsEditable()
4308 @Experimental() // untriaged
4309 static const int MIRRORED_REPEAT = 0x8370;
4310
4311 @DomName('WebGL2RenderingContext.NEAREST')
4312 @DocsEditable()
4313 @Experimental() // untriaged
4314 static const int NEAREST = 0x2600;
4315
4316 @DomName('WebGL2RenderingContext.NEAREST_MIPMAP_LINEAR')
4317 @DocsEditable()
4318 @Experimental() // untriaged
4319 static const int NEAREST_MIPMAP_LINEAR = 0x2702;
4320
4321 @DomName('WebGL2RenderingContext.NEAREST_MIPMAP_NEAREST')
4322 @DocsEditable()
4323 @Experimental() // untriaged
4324 static const int NEAREST_MIPMAP_NEAREST = 0x2700;
4325
4326 @DomName('WebGL2RenderingContext.NEVER')
4327 @DocsEditable()
4328 @Experimental() // untriaged
4329 static const int NEVER = 0x0200;
4330
4331 @DomName('WebGL2RenderingContext.NICEST')
4332 @DocsEditable()
4333 @Experimental() // untriaged
4334 static const int NICEST = 0x1102;
4335
4336 @DomName('WebGL2RenderingContext.NONE')
4337 @DocsEditable()
4338 @Experimental() // untriaged
4339 static const int NONE = 0;
4340
4341 @DomName('WebGL2RenderingContext.NOTEQUAL')
4342 @DocsEditable()
4343 @Experimental() // untriaged
4344 static const int NOTEQUAL = 0x0205;
4345
4346 @DomName('WebGL2RenderingContext.NO_ERROR')
4347 @DocsEditable()
4348 @Experimental() // untriaged
4349 static const int NO_ERROR = 0;
4350
4351 @DomName('WebGL2RenderingContext.ONE')
4352 @DocsEditable()
4353 @Experimental() // untriaged
4354 static const int ONE = 1;
4355
4356 @DomName('WebGL2RenderingContext.ONE_MINUS_CONSTANT_ALPHA')
4357 @DocsEditable()
4358 @Experimental() // untriaged
4359 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
4360
4361 @DomName('WebGL2RenderingContext.ONE_MINUS_CONSTANT_COLOR')
4362 @DocsEditable()
4363 @Experimental() // untriaged
4364 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
4365
4366 @DomName('WebGL2RenderingContext.ONE_MINUS_DST_ALPHA')
4367 @DocsEditable()
4368 @Experimental() // untriaged
4369 static const int ONE_MINUS_DST_ALPHA = 0x0305;
4370
4371 @DomName('WebGL2RenderingContext.ONE_MINUS_DST_COLOR')
4372 @DocsEditable()
4373 @Experimental() // untriaged
4374 static const int ONE_MINUS_DST_COLOR = 0x0307;
4375
4376 @DomName('WebGL2RenderingContext.ONE_MINUS_SRC_ALPHA')
4377 @DocsEditable()
4378 @Experimental() // untriaged
4379 static const int ONE_MINUS_SRC_ALPHA = 0x0303;
4380
4381 @DomName('WebGL2RenderingContext.ONE_MINUS_SRC_COLOR')
4382 @DocsEditable()
4383 @Experimental() // untriaged
4384 static const int ONE_MINUS_SRC_COLOR = 0x0301;
4385
4386 @DomName('WebGL2RenderingContext.OUT_OF_MEMORY')
4387 @DocsEditable()
4388 @Experimental() // untriaged
4389 static const int OUT_OF_MEMORY = 0x0505;
4390
4391 @DomName('WebGL2RenderingContext.PACK_ALIGNMENT')
4392 @DocsEditable()
4393 @Experimental() // untriaged
4394 static const int PACK_ALIGNMENT = 0x0D05;
4395
4396 @DomName('WebGL2RenderingContext.POINTS')
4397 @DocsEditable()
4398 @Experimental() // untriaged
4399 static const int POINTS = 0x0000;
4400
4401 @DomName('WebGL2RenderingContext.POLYGON_OFFSET_FACTOR')
4402 @DocsEditable()
4403 @Experimental() // untriaged
4404 static const int POLYGON_OFFSET_FACTOR = 0x8038;
4405
4406 @DomName('WebGL2RenderingContext.POLYGON_OFFSET_FILL')
4407 @DocsEditable()
4408 @Experimental() // untriaged
4409 static const int POLYGON_OFFSET_FILL = 0x8037;
4410
4411 @DomName('WebGL2RenderingContext.POLYGON_OFFSET_UNITS')
4412 @DocsEditable()
4413 @Experimental() // untriaged
4414 static const int POLYGON_OFFSET_UNITS = 0x2A00;
4415
4416 @DomName('WebGL2RenderingContext.RED_BITS')
4417 @DocsEditable()
4418 @Experimental() // untriaged
4419 static const int RED_BITS = 0x0D52;
4420
4421 @DomName('WebGL2RenderingContext.RENDERBUFFER')
4422 @DocsEditable()
4423 @Experimental() // untriaged
4424 static const int RENDERBUFFER = 0x8D41;
4425
4426 @DomName('WebGL2RenderingContext.RENDERBUFFER_ALPHA_SIZE')
4427 @DocsEditable()
4428 @Experimental() // untriaged
4429 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
4430
4431 @DomName('WebGL2RenderingContext.RENDERBUFFER_BINDING')
4432 @DocsEditable()
4433 @Experimental() // untriaged
4434 static const int RENDERBUFFER_BINDING = 0x8CA7;
4435
4436 @DomName('WebGL2RenderingContext.RENDERBUFFER_BLUE_SIZE')
4437 @DocsEditable()
4438 @Experimental() // untriaged
4439 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
4440
4441 @DomName('WebGL2RenderingContext.RENDERBUFFER_DEPTH_SIZE')
4442 @DocsEditable()
4443 @Experimental() // untriaged
4444 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
4445
4446 @DomName('WebGL2RenderingContext.RENDERBUFFER_GREEN_SIZE')
4447 @DocsEditable()
4448 @Experimental() // untriaged
4449 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
4450
4451 @DomName('WebGL2RenderingContext.RENDERBUFFER_HEIGHT')
4452 @DocsEditable()
4453 @Experimental() // untriaged
4454 static const int RENDERBUFFER_HEIGHT = 0x8D43;
4455
4456 @DomName('WebGL2RenderingContext.RENDERBUFFER_INTERNAL_FORMAT')
4457 @DocsEditable()
4458 @Experimental() // untriaged
4459 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
4460
4461 @DomName('WebGL2RenderingContext.RENDERBUFFER_RED_SIZE')
4462 @DocsEditable()
4463 @Experimental() // untriaged
4464 static const int RENDERBUFFER_RED_SIZE = 0x8D50;
4465
4466 @DomName('WebGL2RenderingContext.RENDERBUFFER_STENCIL_SIZE')
4467 @DocsEditable()
4468 @Experimental() // untriaged
4469 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
4470
4471 @DomName('WebGL2RenderingContext.RENDERBUFFER_WIDTH')
4472 @DocsEditable()
4473 @Experimental() // untriaged
4474 static const int RENDERBUFFER_WIDTH = 0x8D42;
4475
4476 @DomName('WebGL2RenderingContext.RENDERER')
4477 @DocsEditable()
4478 @Experimental() // untriaged
4479 static const int RENDERER = 0x1F01;
4480
4481 @DomName('WebGL2RenderingContext.REPEAT')
4482 @DocsEditable()
4483 @Experimental() // untriaged
4484 static const int REPEAT = 0x2901;
4485
4486 @DomName('WebGL2RenderingContext.REPLACE')
4487 @DocsEditable()
4488 @Experimental() // untriaged
4489 static const int REPLACE = 0x1E01;
4490
4491 @DomName('WebGL2RenderingContext.RGB')
4492 @DocsEditable()
4493 @Experimental() // untriaged
4494 static const int RGB = 0x1907;
4495
4496 @DomName('WebGL2RenderingContext.RGB565')
4497 @DocsEditable()
4498 @Experimental() // untriaged
4499 static const int RGB565 = 0x8D62;
4500
4501 @DomName('WebGL2RenderingContext.RGB5_A1')
4502 @DocsEditable()
4503 @Experimental() // untriaged
4504 static const int RGB5_A1 = 0x8057;
4505
4506 @DomName('WebGL2RenderingContext.RGBA')
4507 @DocsEditable()
4508 @Experimental() // untriaged
4509 static const int RGBA = 0x1908;
4510
4511 @DomName('WebGL2RenderingContext.RGBA4')
4512 @DocsEditable()
4513 @Experimental() // untriaged
4514 static const int RGBA4 = 0x8056;
4515
4516 @DomName('WebGL2RenderingContext.SAMPLER_2D')
4517 @DocsEditable()
4518 @Experimental() // untriaged
4519 static const int SAMPLER_2D = 0x8B5E;
4520
4521 @DomName('WebGL2RenderingContext.SAMPLER_CUBE')
4522 @DocsEditable()
4523 @Experimental() // untriaged
4524 static const int SAMPLER_CUBE = 0x8B60;
4525
4526 @DomName('WebGL2RenderingContext.SAMPLES')
4527 @DocsEditable()
4528 @Experimental() // untriaged
4529 static const int SAMPLES = 0x80A9;
4530
4531 @DomName('WebGL2RenderingContext.SAMPLE_ALPHA_TO_COVERAGE')
4532 @DocsEditable()
4533 @Experimental() // untriaged
4534 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
4535
4536 @DomName('WebGL2RenderingContext.SAMPLE_BUFFERS')
4537 @DocsEditable()
4538 @Experimental() // untriaged
4539 static const int SAMPLE_BUFFERS = 0x80A8;
4540
4541 @DomName('WebGL2RenderingContext.SAMPLE_COVERAGE')
4542 @DocsEditable()
4543 @Experimental() // untriaged
4544 static const int SAMPLE_COVERAGE = 0x80A0;
4545
4546 @DomName('WebGL2RenderingContext.SAMPLE_COVERAGE_INVERT')
4547 @DocsEditable()
4548 @Experimental() // untriaged
4549 static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
4550
4551 @DomName('WebGL2RenderingContext.SAMPLE_COVERAGE_VALUE')
4552 @DocsEditable()
4553 @Experimental() // untriaged
4554 static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
4555
4556 @DomName('WebGL2RenderingContext.SCISSOR_BOX')
4557 @DocsEditable()
4558 @Experimental() // untriaged
4559 static const int SCISSOR_BOX = 0x0C10;
4560
4561 @DomName('WebGL2RenderingContext.SCISSOR_TEST')
4562 @DocsEditable()
4563 @Experimental() // untriaged
4564 static const int SCISSOR_TEST = 0x0C11;
4565
4566 @DomName('WebGL2RenderingContext.SHADER_TYPE')
4567 @DocsEditable()
4568 @Experimental() // untriaged
4569 static const int SHADER_TYPE = 0x8B4F;
4570
4571 @DomName('WebGL2RenderingContext.SHADING_LANGUAGE_VERSION')
4572 @DocsEditable()
4573 @Experimental() // untriaged
4574 static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
4575
4576 @DomName('WebGL2RenderingContext.SHORT')
4577 @DocsEditable()
4578 @Experimental() // untriaged
4579 static const int SHORT = 0x1402;
4580
4581 @DomName('WebGL2RenderingContext.SRC_ALPHA')
4582 @DocsEditable()
4583 @Experimental() // untriaged
4584 static const int SRC_ALPHA = 0x0302;
4585
4586 @DomName('WebGL2RenderingContext.SRC_ALPHA_SATURATE')
4587 @DocsEditable()
4588 @Experimental() // untriaged
4589 static const int SRC_ALPHA_SATURATE = 0x0308;
4590
4591 @DomName('WebGL2RenderingContext.SRC_COLOR')
4592 @DocsEditable()
4593 @Experimental() // untriaged
4594 static const int SRC_COLOR = 0x0300;
4595
4596 @DomName('WebGL2RenderingContext.STATIC_DRAW')
4597 @DocsEditable()
4598 @Experimental() // untriaged
4599 static const int STATIC_DRAW = 0x88E4;
4600
4601 @DomName('WebGL2RenderingContext.STENCIL_ATTACHMENT')
4602 @DocsEditable()
4603 @Experimental() // untriaged
4604 static const int STENCIL_ATTACHMENT = 0x8D20;
4605
4606 @DomName('WebGL2RenderingContext.STENCIL_BACK_FAIL')
4607 @DocsEditable()
4608 @Experimental() // untriaged
4609 static const int STENCIL_BACK_FAIL = 0x8801;
4610
4611 @DomName('WebGL2RenderingContext.STENCIL_BACK_FUNC')
4612 @DocsEditable()
4613 @Experimental() // untriaged
4614 static const int STENCIL_BACK_FUNC = 0x8800;
4615
4616 @DomName('WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL')
4617 @DocsEditable()
4618 @Experimental() // untriaged
4619 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
4620
4621 @DomName('WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS')
4622 @DocsEditable()
4623 @Experimental() // untriaged
4624 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
4625
4626 @DomName('WebGL2RenderingContext.STENCIL_BACK_REF')
4627 @DocsEditable()
4628 @Experimental() // untriaged
4629 static const int STENCIL_BACK_REF = 0x8CA3;
4630
4631 @DomName('WebGL2RenderingContext.STENCIL_BACK_VALUE_MASK')
4632 @DocsEditable()
4633 @Experimental() // untriaged
4634 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
4635
4636 @DomName('WebGL2RenderingContext.STENCIL_BACK_WRITEMASK')
4637 @DocsEditable()
4638 @Experimental() // untriaged
4639 static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
4640
4641 @DomName('WebGL2RenderingContext.STENCIL_BITS')
4642 @DocsEditable()
4643 @Experimental() // untriaged
4644 static const int STENCIL_BITS = 0x0D57;
4645
4646 @DomName('WebGL2RenderingContext.STENCIL_BUFFER_BIT')
4647 @DocsEditable()
4648 @Experimental() // untriaged
4649 static const int STENCIL_BUFFER_BIT = 0x00000400;
4650
4651 @DomName('WebGL2RenderingContext.STENCIL_CLEAR_VALUE')
4652 @DocsEditable()
4653 @Experimental() // untriaged
4654 static const int STENCIL_CLEAR_VALUE = 0x0B91;
4655
4656 @DomName('WebGL2RenderingContext.STENCIL_FAIL')
4657 @DocsEditable()
4658 @Experimental() // untriaged
4659 static const int STENCIL_FAIL = 0x0B94;
4660
4661 @DomName('WebGL2RenderingContext.STENCIL_FUNC')
4662 @DocsEditable()
4663 @Experimental() // untriaged
4664 static const int STENCIL_FUNC = 0x0B92;
4665
4666 @DomName('WebGL2RenderingContext.STENCIL_INDEX')
4667 @DocsEditable()
4668 @Experimental() // untriaged
4669 static const int STENCIL_INDEX = 0x1901;
4670
4671 @DomName('WebGL2RenderingContext.STENCIL_INDEX8')
4672 @DocsEditable()
4673 @Experimental() // untriaged
4674 static const int STENCIL_INDEX8 = 0x8D48;
4675
4676 @DomName('WebGL2RenderingContext.STENCIL_PASS_DEPTH_FAIL')
4677 @DocsEditable()
4678 @Experimental() // untriaged
4679 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
4680
4681 @DomName('WebGL2RenderingContext.STENCIL_PASS_DEPTH_PASS')
4682 @DocsEditable()
4683 @Experimental() // untriaged
4684 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
4685
4686 @DomName('WebGL2RenderingContext.STENCIL_REF')
4687 @DocsEditable()
4688 @Experimental() // untriaged
4689 static const int STENCIL_REF = 0x0B97;
4690
4691 @DomName('WebGL2RenderingContext.STENCIL_TEST')
4692 @DocsEditable()
4693 @Experimental() // untriaged
4694 static const int STENCIL_TEST = 0x0B90;
4695
4696 @DomName('WebGL2RenderingContext.STENCIL_VALUE_MASK')
4697 @DocsEditable()
4698 @Experimental() // untriaged
4699 static const int STENCIL_VALUE_MASK = 0x0B93;
4700
4701 @DomName('WebGL2RenderingContext.STENCIL_WRITEMASK')
4702 @DocsEditable()
4703 @Experimental() // untriaged
4704 static const int STENCIL_WRITEMASK = 0x0B98;
4705
4706 @DomName('WebGL2RenderingContext.STREAM_DRAW')
4707 @DocsEditable()
4708 @Experimental() // untriaged
4709 static const int STREAM_DRAW = 0x88E0;
4710
4711 @DomName('WebGL2RenderingContext.SUBPIXEL_BITS')
4712 @DocsEditable()
4713 @Experimental() // untriaged
4714 static const int SUBPIXEL_BITS = 0x0D50;
4715
4716 @DomName('WebGL2RenderingContext.TEXTURE')
4717 @DocsEditable()
4718 @Experimental() // untriaged
4719 static const int TEXTURE = 0x1702;
4720
4721 @DomName('WebGL2RenderingContext.TEXTURE0')
4722 @DocsEditable()
4723 @Experimental() // untriaged
4724 static const int TEXTURE0 = 0x84C0;
4725
4726 @DomName('WebGL2RenderingContext.TEXTURE1')
4727 @DocsEditable()
4728 @Experimental() // untriaged
4729 static const int TEXTURE1 = 0x84C1;
4730
4731 @DomName('WebGL2RenderingContext.TEXTURE10')
4732 @DocsEditable()
4733 @Experimental() // untriaged
4734 static const int TEXTURE10 = 0x84CA;
4735
4736 @DomName('WebGL2RenderingContext.TEXTURE11')
4737 @DocsEditable()
4738 @Experimental() // untriaged
4739 static const int TEXTURE11 = 0x84CB;
4740
4741 @DomName('WebGL2RenderingContext.TEXTURE12')
4742 @DocsEditable()
4743 @Experimental() // untriaged
4744 static const int TEXTURE12 = 0x84CC;
4745
4746 @DomName('WebGL2RenderingContext.TEXTURE13')
4747 @DocsEditable()
4748 @Experimental() // untriaged
4749 static const int TEXTURE13 = 0x84CD;
4750
4751 @DomName('WebGL2RenderingContext.TEXTURE14')
4752 @DocsEditable()
4753 @Experimental() // untriaged
4754 static const int TEXTURE14 = 0x84CE;
4755
4756 @DomName('WebGL2RenderingContext.TEXTURE15')
4757 @DocsEditable()
4758 @Experimental() // untriaged
4759 static const int TEXTURE15 = 0x84CF;
4760
4761 @DomName('WebGL2RenderingContext.TEXTURE16')
4762 @DocsEditable()
4763 @Experimental() // untriaged
4764 static const int TEXTURE16 = 0x84D0;
4765
4766 @DomName('WebGL2RenderingContext.TEXTURE17')
4767 @DocsEditable()
4768 @Experimental() // untriaged
4769 static const int TEXTURE17 = 0x84D1;
4770
4771 @DomName('WebGL2RenderingContext.TEXTURE18')
4772 @DocsEditable()
4773 @Experimental() // untriaged
4774 static const int TEXTURE18 = 0x84D2;
4775
4776 @DomName('WebGL2RenderingContext.TEXTURE19')
4777 @DocsEditable()
4778 @Experimental() // untriaged
4779 static const int TEXTURE19 = 0x84D3;
4780
4781 @DomName('WebGL2RenderingContext.TEXTURE2')
4782 @DocsEditable()
4783 @Experimental() // untriaged
4784 static const int TEXTURE2 = 0x84C2;
4785
4786 @DomName('WebGL2RenderingContext.TEXTURE20')
4787 @DocsEditable()
4788 @Experimental() // untriaged
4789 static const int TEXTURE20 = 0x84D4;
4790
4791 @DomName('WebGL2RenderingContext.TEXTURE21')
4792 @DocsEditable()
4793 @Experimental() // untriaged
4794 static const int TEXTURE21 = 0x84D5;
4795
4796 @DomName('WebGL2RenderingContext.TEXTURE22')
4797 @DocsEditable()
4798 @Experimental() // untriaged
4799 static const int TEXTURE22 = 0x84D6;
4800
4801 @DomName('WebGL2RenderingContext.TEXTURE23')
4802 @DocsEditable()
4803 @Experimental() // untriaged
4804 static const int TEXTURE23 = 0x84D7;
4805
4806 @DomName('WebGL2RenderingContext.TEXTURE24')
4807 @DocsEditable()
4808 @Experimental() // untriaged
4809 static const int TEXTURE24 = 0x84D8;
4810
4811 @DomName('WebGL2RenderingContext.TEXTURE25')
4812 @DocsEditable()
4813 @Experimental() // untriaged
4814 static const int TEXTURE25 = 0x84D9;
4815
4816 @DomName('WebGL2RenderingContext.TEXTURE26')
4817 @DocsEditable()
4818 @Experimental() // untriaged
4819 static const int TEXTURE26 = 0x84DA;
4820
4821 @DomName('WebGL2RenderingContext.TEXTURE27')
4822 @DocsEditable()
4823 @Experimental() // untriaged
4824 static const int TEXTURE27 = 0x84DB;
4825
4826 @DomName('WebGL2RenderingContext.TEXTURE28')
4827 @DocsEditable()
4828 @Experimental() // untriaged
4829 static const int TEXTURE28 = 0x84DC;
4830
4831 @DomName('WebGL2RenderingContext.TEXTURE29')
4832 @DocsEditable()
4833 @Experimental() // untriaged
4834 static const int TEXTURE29 = 0x84DD;
4835
4836 @DomName('WebGL2RenderingContext.TEXTURE3')
4837 @DocsEditable()
4838 @Experimental() // untriaged
4839 static const int TEXTURE3 = 0x84C3;
4840
4841 @DomName('WebGL2RenderingContext.TEXTURE30')
4842 @DocsEditable()
4843 @Experimental() // untriaged
4844 static const int TEXTURE30 = 0x84DE;
4845
4846 @DomName('WebGL2RenderingContext.TEXTURE31')
4847 @DocsEditable()
4848 @Experimental() // untriaged
4849 static const int TEXTURE31 = 0x84DF;
4850
4851 @DomName('WebGL2RenderingContext.TEXTURE4')
4852 @DocsEditable()
4853 @Experimental() // untriaged
4854 static const int TEXTURE4 = 0x84C4;
4855
4856 @DomName('WebGL2RenderingContext.TEXTURE5')
4857 @DocsEditable()
4858 @Experimental() // untriaged
4859 static const int TEXTURE5 = 0x84C5;
4860
4861 @DomName('WebGL2RenderingContext.TEXTURE6')
4862 @DocsEditable()
4863 @Experimental() // untriaged
4864 static const int TEXTURE6 = 0x84C6;
4865
4866 @DomName('WebGL2RenderingContext.TEXTURE7')
4867 @DocsEditable()
4868 @Experimental() // untriaged
4869 static const int TEXTURE7 = 0x84C7;
4870
4871 @DomName('WebGL2RenderingContext.TEXTURE8')
4872 @DocsEditable()
4873 @Experimental() // untriaged
4874 static const int TEXTURE8 = 0x84C8;
4875
4876 @DomName('WebGL2RenderingContext.TEXTURE9')
4877 @DocsEditable()
4878 @Experimental() // untriaged
4879 static const int TEXTURE9 = 0x84C9;
4880
4881 @DomName('WebGL2RenderingContext.TEXTURE_2D')
4882 @DocsEditable()
4883 @Experimental() // untriaged
4884 static const int TEXTURE_2D = 0x0DE1;
4885
4886 @DomName('WebGL2RenderingContext.TEXTURE_BINDING_2D')
4887 @DocsEditable()
4888 @Experimental() // untriaged
4889 static const int TEXTURE_BINDING_2D = 0x8069;
4890
4891 @DomName('WebGL2RenderingContext.TEXTURE_BINDING_CUBE_MAP')
4892 @DocsEditable()
4893 @Experimental() // untriaged
4894 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
4895
4896 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP')
4897 @DocsEditable()
4898 @Experimental() // untriaged
4899 static const int TEXTURE_CUBE_MAP = 0x8513;
4900
4901 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X')
4902 @DocsEditable()
4903 @Experimental() // untriaged
4904 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
4905
4906 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y')
4907 @DocsEditable()
4908 @Experimental() // untriaged
4909 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
4910
4911 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z')
4912 @DocsEditable()
4913 @Experimental() // untriaged
4914 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
4915
4916 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X')
4917 @DocsEditable()
4918 @Experimental() // untriaged
4919 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
4920
4921 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y')
4922 @DocsEditable()
4923 @Experimental() // untriaged
4924 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
4925
4926 @DomName('WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z')
4927 @DocsEditable()
4928 @Experimental() // untriaged
4929 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
4930
4931 @DomName('WebGL2RenderingContext.TEXTURE_MAG_FILTER')
4932 @DocsEditable()
4933 @Experimental() // untriaged
4934 static const int TEXTURE_MAG_FILTER = 0x2800;
4935
4936 @DomName('WebGL2RenderingContext.TEXTURE_MIN_FILTER')
4937 @DocsEditable()
4938 @Experimental() // untriaged
4939 static const int TEXTURE_MIN_FILTER = 0x2801;
4940
4941 @DomName('WebGL2RenderingContext.TEXTURE_WRAP_S')
4942 @DocsEditable()
4943 @Experimental() // untriaged
4944 static const int TEXTURE_WRAP_S = 0x2802;
4945
4946 @DomName('WebGL2RenderingContext.TEXTURE_WRAP_T')
4947 @DocsEditable()
4948 @Experimental() // untriaged
4949 static const int TEXTURE_WRAP_T = 0x2803;
4950
4951 @DomName('WebGL2RenderingContext.TRIANGLES')
4952 @DocsEditable()
4953 @Experimental() // untriaged
4954 static const int TRIANGLES = 0x0004;
4955
4956 @DomName('WebGL2RenderingContext.TRIANGLE_FAN')
4957 @DocsEditable()
4958 @Experimental() // untriaged
4959 static const int TRIANGLE_FAN = 0x0006;
4960
4961 @DomName('WebGL2RenderingContext.TRIANGLE_STRIP')
4962 @DocsEditable()
4963 @Experimental() // untriaged
4964 static const int TRIANGLE_STRIP = 0x0005;
4965
4966 @DomName('WebGL2RenderingContext.UNPACK_ALIGNMENT')
4967 @DocsEditable()
4968 @Experimental() // untriaged
4969 static const int UNPACK_ALIGNMENT = 0x0CF5;
4970
4971 @DomName('WebGL2RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL')
4972 @DocsEditable()
4973 @Experimental() // untriaged
4974 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
4975
4976 @DomName('WebGL2RenderingContext.UNPACK_FLIP_Y_WEBGL')
4977 @DocsEditable()
4978 @Experimental() // untriaged
4979 static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
4980
4981 @DomName('WebGL2RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL')
4982 @DocsEditable()
4983 @Experimental() // untriaged
4984 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
4985
4986 @DomName('WebGL2RenderingContext.UNSIGNED_BYTE')
4987 @DocsEditable()
4988 @Experimental() // untriaged
4989 static const int UNSIGNED_BYTE = 0x1401;
4990
4991 @DomName('WebGL2RenderingContext.UNSIGNED_INT')
4992 @DocsEditable()
4993 @Experimental() // untriaged
4994 static const int UNSIGNED_INT = 0x1405;
4995
4996 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT')
4997 @DocsEditable()
4998 @Experimental() // untriaged
4999 static const int UNSIGNED_SHORT = 0x1403;
5000
5001 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT_4_4_4_4')
5002 @DocsEditable()
5003 @Experimental() // untriaged
5004 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
5005
5006 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT_5_5_5_1')
5007 @DocsEditable()
5008 @Experimental() // untriaged
5009 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
5010
5011 @DomName('WebGL2RenderingContext.UNSIGNED_SHORT_5_6_5')
5012 @DocsEditable()
5013 @Experimental() // untriaged
5014 static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
5015
5016 @DomName('WebGL2RenderingContext.VALIDATE_STATUS')
5017 @DocsEditable()
5018 @Experimental() // untriaged
5019 static const int VALIDATE_STATUS = 0x8B83;
5020
5021 @DomName('WebGL2RenderingContext.VENDOR')
5022 @DocsEditable()
5023 @Experimental() // untriaged
5024 static const int VENDOR = 0x1F00;
5025
5026 @DomName('WebGL2RenderingContext.VERSION')
5027 @DocsEditable()
5028 @Experimental() // untriaged
5029 static const int VERSION = 0x1F02;
5030
5031 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING')
5032 @DocsEditable()
5033 @Experimental() // untriaged
5034 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
5035
5036 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED')
5037 @DocsEditable()
5038 @Experimental() // untriaged
5039 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
5040
5041 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED')
5042 @DocsEditable()
5043 @Experimental() // untriaged
5044 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
5045
5046 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER')
5047 @DocsEditable()
5048 @Experimental() // untriaged
5049 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
5050
5051 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE')
5052 @DocsEditable()
5053 @Experimental() // untriaged
5054 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
5055
5056 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE')
5057 @DocsEditable()
5058 @Experimental() // untriaged
5059 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
5060
5061 @DomName('WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE')
5062 @DocsEditable()
5063 @Experimental() // untriaged
5064 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
5065
5066 @DomName('WebGL2RenderingContext.VERTEX_SHADER')
5067 @DocsEditable()
5068 @Experimental() // untriaged
5069 static const int VERTEX_SHADER = 0x8B31;
5070
5071 @DomName('WebGL2RenderingContext.VIEWPORT')
5072 @DocsEditable()
5073 @Experimental() // untriaged
5074 static const int VIEWPORT = 0x0BA2;
5075
5076 @DomName('WebGL2RenderingContext.ZERO')
5077 @DocsEditable()
5078 @Experimental() // untriaged
5079 static const int ZERO = 0;
5080
5081 // From WebGL2RenderingContextBase
5082
5083 @DomName('WebGL2RenderingContext.beginQuery')
5084 @DocsEditable()
5085 @Experimental() // untriaged
5086 void beginQuery(int target, Query query) native;
5087
5088 @DomName('WebGL2RenderingContext.beginTransformFeedback')
5089 @DocsEditable()
5090 @Experimental() // untriaged
5091 void beginTransformFeedback(int primitiveMode) native;
5092
5093 @DomName('WebGL2RenderingContext.bindBufferBase')
5094 @DocsEditable()
5095 @Experimental() // untriaged
5096 void bindBufferBase(int target, int index, Buffer buffer) native;
5097
5098 @DomName('WebGL2RenderingContext.bindBufferRange')
5099 @DocsEditable()
5100 @Experimental() // untriaged
5101 void bindBufferRange(
5102 int target, int index, Buffer buffer, int offset, int size) native;
5103
5104 @DomName('WebGL2RenderingContext.bindSampler')
5105 @DocsEditable()
5106 @Experimental() // untriaged
5107 void bindSampler(int unit, Sampler sampler) native;
5108
5109 @DomName('WebGL2RenderingContext.bindTransformFeedback')
5110 @DocsEditable()
5111 @Experimental() // untriaged
5112 void bindTransformFeedback(int target, TransformFeedback feedback) native;
5113
5114 @DomName('WebGL2RenderingContext.bindVertexArray')
5115 @DocsEditable()
5116 @Experimental() // untriaged
5117 void bindVertexArray(VertexArrayObject vertexArray) native;
5118
5119 @DomName('WebGL2RenderingContext.blitFramebuffer')
5120 @DocsEditable()
5121 @Experimental() // untriaged
5122 void blitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0,
5123 int dstY0, int dstX1, int dstY1, int mask, int filter) native;
5124
5125 @DomName('WebGL2RenderingContext.clearBufferfi')
5126 @DocsEditable()
5127 @Experimental() // untriaged
5128 void clearBufferfi(int buffer, int drawbuffer, num depth, int stencil) native;
5129
5130 @DomName('WebGL2RenderingContext.clearBufferfv')
5131 @DocsEditable()
5132 @Experimental() // untriaged
5133 void clearBufferfv(int buffer, int drawbuffer, value) native;
5134
5135 @DomName('WebGL2RenderingContext.clearBufferiv')
5136 @DocsEditable()
5137 @Experimental() // untriaged
5138 void clearBufferiv(int buffer, int drawbuffer, value) native;
5139
5140 @DomName('WebGL2RenderingContext.clearBufferuiv')
5141 @DocsEditable()
5142 @Experimental() // untriaged
5143 void clearBufferuiv(int buffer, int drawbuffer, value) native;
5144
5145 @DomName('WebGL2RenderingContext.clientWaitSync')
5146 @DocsEditable()
5147 @Experimental() // untriaged
5148 int clientWaitSync(Sync sync, int flags, int timeout) native;
5149
5150 @DomName('WebGL2RenderingContext.compressedTexImage3D')
5151 @DocsEditable()
5152 @Experimental() // untriaged
5153 void compressedTexImage3D(int target, int level, int internalformat,
5154 int width, int height, int depth, int border, TypedData data) native;
5155
5156 @DomName('WebGL2RenderingContext.compressedTexSubImage3D')
5157 @DocsEditable()
5158 @Experimental() // untriaged
5159 void compressedTexSubImage3D(
5160 int target,
5161 int level,
5162 int xoffset,
5163 int yoffset,
5164 int zoffset,
5165 int width,
5166 int height,
5167 int depth,
5168 int format,
5169 TypedData data) native;
5170
5171 @DomName('WebGL2RenderingContext.copyBufferSubData')
5172 @DocsEditable()
5173 @Experimental() // untriaged
5174 void copyBufferSubData(int readTarget, int writeTarget, int readOffset,
5175 int writeOffset, int size) native;
5176
5177 @DomName('WebGL2RenderingContext.copyTexSubImage3D')
5178 @DocsEditable()
5179 @Experimental() // untriaged
5180 void copyTexSubImage3D(int target, int level, int xoffset, int yoffset,
5181 int zoffset, int x, int y, int width, int height) native;
5182
5183 @DomName('WebGL2RenderingContext.createQuery')
5184 @DocsEditable()
5185 @Experimental() // untriaged
5186 Query createQuery() native;
5187
5188 @DomName('WebGL2RenderingContext.createSampler')
5189 @DocsEditable()
5190 @Experimental() // untriaged
5191 Sampler createSampler() native;
5192
5193 @DomName('WebGL2RenderingContext.createTransformFeedback')
5194 @DocsEditable()
5195 @Experimental() // untriaged
5196 TransformFeedback createTransformFeedback() native;
5197
5198 @DomName('WebGL2RenderingContext.createVertexArray')
5199 @DocsEditable()
5200 @Experimental() // untriaged
5201 VertexArrayObject createVertexArray() native;
5202
5203 @DomName('WebGL2RenderingContext.deleteQuery')
5204 @DocsEditable()
5205 @Experimental() // untriaged
5206 void deleteQuery(Query query) native;
5207
5208 @DomName('WebGL2RenderingContext.deleteSampler')
5209 @DocsEditable()
5210 @Experimental() // untriaged
5211 void deleteSampler(Sampler sampler) native;
5212
5213 @DomName('WebGL2RenderingContext.deleteSync')
5214 @DocsEditable()
5215 @Experimental() // untriaged
5216 void deleteSync(Sync sync) native;
5217
5218 @DomName('WebGL2RenderingContext.deleteTransformFeedback')
5219 @DocsEditable()
5220 @Experimental() // untriaged
5221 void deleteTransformFeedback(TransformFeedback feedback) native;
5222
5223 @DomName('WebGL2RenderingContext.deleteVertexArray')
5224 @DocsEditable()
5225 @Experimental() // untriaged
5226 void deleteVertexArray(VertexArrayObject vertexArray) native;
5227
5228 @DomName('WebGL2RenderingContext.drawArraysInstanced')
5229 @DocsEditable()
5230 @Experimental() // untriaged
5231 void drawArraysInstanced(int mode, int first, int count, int instanceCount)
5232 native;
5233
5234 @DomName('WebGL2RenderingContext.drawBuffers')
5235 @DocsEditable()
5236 @Experimental() // untriaged
5237 void drawBuffers(List<int> buffers) native;
5238
5239 @DomName('WebGL2RenderingContext.drawElementsInstanced')
5240 @DocsEditable()
5241 @Experimental() // untriaged
5242 void drawElementsInstanced(
5243 int mode, int count, int type, int offset, int instanceCount) native;
5244
5245 @DomName('WebGL2RenderingContext.drawRangeElements')
5246 @DocsEditable()
5247 @Experimental() // untriaged
5248 void drawRangeElements(
5249 int mode, int start, int end, int count, int type, int offset) native;
5250
5251 @DomName('WebGL2RenderingContext.endQuery')
5252 @DocsEditable()
5253 @Experimental() // untriaged
5254 void endQuery(int target) native;
5255
5256 @DomName('WebGL2RenderingContext.endTransformFeedback')
5257 @DocsEditable()
5258 @Experimental() // untriaged
5259 void endTransformFeedback() native;
5260
5261 @DomName('WebGL2RenderingContext.fenceSync')
5262 @DocsEditable()
5263 @Experimental() // untriaged
5264 Sync fenceSync(int condition, int flags) native;
5265
5266 @DomName('WebGL2RenderingContext.framebufferTextureLayer')
5267 @DocsEditable()
5268 @Experimental() // untriaged
5269 void framebufferTextureLayer(
5270 int target, int attachment, Texture texture, int level, int layer) native;
5271
5272 @DomName('WebGL2RenderingContext.getActiveUniformBlockName')
5273 @DocsEditable()
5274 @Experimental() // untriaged
5275 String getActiveUniformBlockName(Program program, int uniformBlockIndex)
5276 native;
5277
5278 @DomName('WebGL2RenderingContext.getActiveUniformBlockParameter')
5279 @DocsEditable()
5280 @Experimental() // untriaged
5281 Object getActiveUniformBlockParameter(
5282 Program program, int uniformBlockIndex, int pname) native;
5283
5284 @DomName('WebGL2RenderingContext.getActiveUniforms')
5285 @DocsEditable()
5286 @Experimental() // untriaged
5287 Object getActiveUniforms(Program program, List<int> uniformIndices, int pname)
5288 native;
5289
5290 @DomName('WebGL2RenderingContext.getBufferSubData')
5291 @DocsEditable()
5292 @Experimental() // untriaged
5293 void getBufferSubData(int target, int offset, ByteBuffer returnedData) native;
5294
5295 @DomName('WebGL2RenderingContext.getFragDataLocation')
5296 @DocsEditable()
5297 @Experimental() // untriaged
5298 int getFragDataLocation(Program program, String name) native;
5299
5300 @DomName('WebGL2RenderingContext.getIndexedParameter')
5301 @DocsEditable()
5302 @Experimental() // untriaged
5303 Object getIndexedParameter(int target, int index) native;
5304
5305 @DomName('WebGL2RenderingContext.getInternalformatParameter')
5306 @DocsEditable()
5307 @Experimental() // untriaged
5308 Object getInternalformatParameter(int target, int internalformat, int pname)
5309 native;
5310
5311 @DomName('WebGL2RenderingContext.getQuery')
5312 @DocsEditable()
5313 @Experimental() // untriaged
5314 Query getQuery(int target, int pname) native;
5315
5316 @DomName('WebGL2RenderingContext.getQueryParameter')
5317 @DocsEditable()
5318 @Experimental() // untriaged
5319 Object getQueryParameter(Query query, int pname) native;
5320
5321 @DomName('WebGL2RenderingContext.getSamplerParameter')
5322 @DocsEditable()
5323 @Experimental() // untriaged
5324 Object getSamplerParameter(Sampler sampler, int pname) native;
5325
5326 @DomName('WebGL2RenderingContext.getSyncParameter')
5327 @DocsEditable()
5328 @Experimental() // untriaged
5329 Object getSyncParameter(Sync sync, int pname) native;
5330
5331 @DomName('WebGL2RenderingContext.getTransformFeedbackVarying')
5332 @DocsEditable()
5333 @Experimental() // untriaged
5334 ActiveInfo getTransformFeedbackVarying(Program program, int index) native;
5335
5336 @DomName('WebGL2RenderingContext.getUniformBlockIndex')
5337 @DocsEditable()
5338 @Experimental() // untriaged
5339 int getUniformBlockIndex(Program program, String uniformBlockName) native;
5340
5341 @DomName('WebGL2RenderingContext.getUniformIndices')
5342 @DocsEditable()
5343 @Experimental() // untriaged
5344 List<int> getUniformIndices(Program program, List<String> uniformNames) {
5345 List uniformNames_1 = convertDartToNative_StringArray(uniformNames);
5346 return _getUniformIndices_1(program, uniformNames_1);
5347 }
5348
5349 @JSName('getUniformIndices')
5350 @DomName('WebGL2RenderingContext.getUniformIndices')
5351 @DocsEditable()
5352 @Experimental() // untriaged
5353 List<int> _getUniformIndices_1(Program program, List uniformNames) native;
5354
5355 @DomName('WebGL2RenderingContext.invalidateFramebuffer')
5356 @DocsEditable()
5357 @Experimental() // untriaged
5358 void invalidateFramebuffer(int target, List<int> attachments) native;
5359
5360 @DomName('WebGL2RenderingContext.invalidateSubFramebuffer')
5361 @DocsEditable()
5362 @Experimental() // untriaged
5363 void invalidateSubFramebuffer(int target, List<int> attachments, int x, int y,
5364 int width, int height) native;
5365
5366 @DomName('WebGL2RenderingContext.isQuery')
5367 @DocsEditable()
5368 @Experimental() // untriaged
5369 bool isQuery(Query query) native;
5370
5371 @DomName('WebGL2RenderingContext.isSampler')
5372 @DocsEditable()
5373 @Experimental() // untriaged
5374 bool isSampler(Sampler sampler) native;
5375
5376 @DomName('WebGL2RenderingContext.isSync')
5377 @DocsEditable()
5378 @Experimental() // untriaged
5379 bool isSync(Sync sync) native;
5380
5381 @DomName('WebGL2RenderingContext.isTransformFeedback')
5382 @DocsEditable()
5383 @Experimental() // untriaged
5384 bool isTransformFeedback(TransformFeedback feedback) native;
5385
5386 @DomName('WebGL2RenderingContext.isVertexArray')
5387 @DocsEditable()
5388 @Experimental() // untriaged
5389 bool isVertexArray(VertexArrayObject vertexArray) native;
5390
5391 @DomName('WebGL2RenderingContext.pauseTransformFeedback')
5392 @DocsEditable()
5393 @Experimental() // untriaged
5394 void pauseTransformFeedback() native;
5395
5396 @DomName('WebGL2RenderingContext.readBuffer')
5397 @DocsEditable()
5398 @Experimental() // untriaged
5399 void readBuffer(int mode) native;
5400
5401 @JSName('readPixels')
5402 @DomName('WebGL2RenderingContext.readPixels')
5403 @DocsEditable()
5404 @Experimental() // untriaged
5405 void readPixels2(int x, int y, int width, int height, int format, int type,
5406 int offset) native;
5407
5408 @DomName('WebGL2RenderingContext.renderbufferStorageMultisample')
5409 @DocsEditable()
5410 @Experimental() // untriaged
5411 void renderbufferStorageMultisample(int target, int samples,
5412 int internalformat, int width, int height) native;
5413
5414 @DomName('WebGL2RenderingContext.resumeTransformFeedback')
5415 @DocsEditable()
5416 @Experimental() // untriaged
5417 void resumeTransformFeedback() native;
5418
5419 @DomName('WebGL2RenderingContext.samplerParameterf')
5420 @DocsEditable()
5421 @Experimental() // untriaged
5422 void samplerParameterf(Sampler sampler, int pname, num param) native;
5423
5424 @DomName('WebGL2RenderingContext.samplerParameteri')
5425 @DocsEditable()
5426 @Experimental() // untriaged
5427 void samplerParameteri(Sampler sampler, int pname, int param) native;
5428
5429 @JSName('texImage2D')
5430 @DomName('WebGL2RenderingContext.texImage2D')
5431 @DocsEditable()
5432 @Experimental() // untriaged
5433 void texImage2D2(int target, int level, int internalformat, int width,
5434 int height, int border, int format, int type, int offset) native;
5435
5436 @DomName('WebGL2RenderingContext.texImage3D')
5437 @DocsEditable()
5438 @Experimental() // untriaged
5439 void texImage3D(
5440 int target,
5441 int level,
5442 int internalformat,
5443 int width,
5444 int height,
5445 int depth,
5446 int border,
5447 int format,
5448 int type,
5449 offset_OR_pixels) native;
5450
5451 @DomName('WebGL2RenderingContext.texStorage2D')
5452 @DocsEditable()
5453 @Experimental() // untriaged
5454 void texStorage2D(
5455 int target, int levels, int internalformat, int width, int height) native;
5456
5457 @DomName('WebGL2RenderingContext.texStorage3D')
5458 @DocsEditable()
5459 @Experimental() // untriaged
5460 void texStorage3D(int target, int levels, int internalformat, int width,
5461 int height, int depth) native;
5462
5463 @DomName('WebGL2RenderingContext.texSubImage3D')
5464 @DocsEditable()
5465 @Experimental() // untriaged
5466 void texSubImage3D(
5467 int target,
5468 int level,
5469 int xoffset,
5470 int yoffset,
5471 int zoffset,
5472 int format_OR_width,
5473 int height_OR_type,
5474 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video,
5475 [int format,
5476 int type,
5477 TypedData pixels]) {
5478 if (type != null &&
5479 format != null &&
5480 (bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is int)) {
5481 _texSubImage3D_1(
5482 target,
5483 level,
5484 xoffset,
5485 yoffset,
5486 zoffset,
5487 format_OR_width,
5488 height_OR_type,
5489 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video,
5490 format,
5491 type,
5492 pixels);
5493 return;
5494 }
5495 if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is ImageData ||
5496 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
5497 format == null &&
5498 type == null &&
5499 pixels == null) {
5500 var data_1 = convertDartToNative_ImageData(
5501 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
5502 _texSubImage3D_2(target, level, xoffset, yoffset, zoffset,
5503 format_OR_width, height_OR_type, data_1);
5504 return;
5505 }
5506 if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is ImageElement ||
5507 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
5508 format == null &&
5509 type == null &&
5510 pixels == null) {
5511 _texSubImage3D_3(
5512 target,
5513 level,
5514 xoffset,
5515 yoffset,
5516 zoffset,
5517 format_OR_width,
5518 height_OR_type,
5519 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
5520 return;
5521 }
5522 if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is CanvasElement ||
5523 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
5524 format == null &&
5525 type == null &&
5526 pixels == null) {
5527 _texSubImage3D_4(
5528 target,
5529 level,
5530 xoffset,
5531 yoffset,
5532 zoffset,
5533 format_OR_width,
5534 height_OR_type,
5535 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
5536 return;
5537 }
5538 if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is VideoElement ||
5539 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
5540 format == null &&
5541 type == null &&
5542 pixels == null) {
5543 _texSubImage3D_5(
5544 target,
5545 level,
5546 xoffset,
5547 yoffset,
5548 zoffset,
5549 format_OR_width,
5550 height_OR_type,
5551 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
5552 return;
5553 }
5554 if ((bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video is ImageBitmap ||
5555 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video == null) &&
5556 format == null &&
5557 type == null &&
5558 pixels == null) {
5559 _texSubImage3D_6(
5560 target,
5561 level,
5562 xoffset,
5563 yoffset,
5564 zoffset,
5565 format_OR_width,
5566 height_OR_type,
5567 bitmap_OR_canvas_OR_data_OR_depth_OR_image_OR_video);
5568 return;
5569 }
5570 throw new ArgumentError("Incorrect number or type of arguments");
5571 }
5572
5573 @JSName('texSubImage3D')
5574 @DomName('WebGL2RenderingContext.texSubImage3D')
5575 @DocsEditable()
5576 @Experimental() // untriaged
5577 void _texSubImage3D_1(target, level, xoffset, yoffset, zoffset, width, height,
5578 int depth, format, type, TypedData pixels) native;
5579 @JSName('texSubImage3D')
5580 @DomName('WebGL2RenderingContext.texSubImage3D')
5581 @DocsEditable()
5582 @Experimental() // untriaged
5583 void _texSubImage3D_2(
5584 target, level, xoffset, yoffset, zoffset, format, type, data) native;
5585 @JSName('texSubImage3D')
5586 @DomName('WebGL2RenderingContext.texSubImage3D')
5587 @DocsEditable()
5588 @Experimental() // untriaged
5589 void _texSubImage3D_3(target, level, xoffset, yoffset, zoffset, format, type,
5590 ImageElement image) native;
5591 @JSName('texSubImage3D')
5592 @DomName('WebGL2RenderingContext.texSubImage3D')
5593 @DocsEditable()
5594 @Experimental() // untriaged
5595 void _texSubImage3D_4(target, level, xoffset, yoffset, zoffset, format, type,
5596 CanvasElement canvas) native;
5597 @JSName('texSubImage3D')
5598 @DomName('WebGL2RenderingContext.texSubImage3D')
5599 @DocsEditable()
5600 @Experimental() // untriaged
5601 void _texSubImage3D_5(target, level, xoffset, yoffset, zoffset, format, type,
5602 VideoElement video) native;
5603 @JSName('texSubImage3D')
5604 @DomName('WebGL2RenderingContext.texSubImage3D')
5605 @DocsEditable()
5606 @Experimental() // untriaged
5607 void _texSubImage3D_6(target, level, xoffset, yoffset, zoffset, format, type,
5608 ImageBitmap bitmap) native;
5609
5610 @DomName('WebGL2RenderingContext.transformFeedbackVaryings')
5611 @DocsEditable()
5612 @Experimental() // untriaged
5613 void transformFeedbackVaryings(
5614 Program program, List<String> varyings, int bufferMode) {
5615 List varyings_1 = convertDartToNative_StringArray(varyings);
5616 _transformFeedbackVaryings_1(program, varyings_1, bufferMode);
5617 return;
5618 }
5619
5620 @JSName('transformFeedbackVaryings')
5621 @DomName('WebGL2RenderingContext.transformFeedbackVaryings')
5622 @DocsEditable()
5623 @Experimental() // untriaged
5624 void _transformFeedbackVaryings_1(Program program, List varyings, bufferMode)
5625 native;
5626
5627 @DomName('WebGL2RenderingContext.uniform1ui')
5628 @DocsEditable()
5629 @Experimental() // untriaged
5630 void uniform1ui(UniformLocation location, int v0) native;
5631
5632 @DomName('WebGL2RenderingContext.uniform1uiv')
5633 @DocsEditable()
5634 @Experimental() // untriaged
5635 void uniform1uiv(UniformLocation location, v) native;
5636
5637 @DomName('WebGL2RenderingContext.uniform2ui')
5638 @DocsEditable()
5639 @Experimental() // untriaged
5640 void uniform2ui(UniformLocation location, int v0, int v1) native;
5641
5642 @DomName('WebGL2RenderingContext.uniform2uiv')
5643 @DocsEditable()
5644 @Experimental() // untriaged
5645 void uniform2uiv(UniformLocation location, v) native;
5646
5647 @DomName('WebGL2RenderingContext.uniform3ui')
5648 @DocsEditable()
5649 @Experimental() // untriaged
5650 void uniform3ui(UniformLocation location, int v0, int v1, int v2) native;
5651
5652 @DomName('WebGL2RenderingContext.uniform3uiv')
5653 @DocsEditable()
5654 @Experimental() // untriaged
5655 void uniform3uiv(UniformLocation location, v) native;
5656
5657 @DomName('WebGL2RenderingContext.uniform4ui')
5658 @DocsEditable()
5659 @Experimental() // untriaged
5660 void uniform4ui(UniformLocation location, int v0, int v1, int v2, int v3)
5661 native;
5662
5663 @DomName('WebGL2RenderingContext.uniform4uiv')
5664 @DocsEditable()
5665 @Experimental() // untriaged
5666 void uniform4uiv(UniformLocation location, v) native;
5667
5668 @DomName('WebGL2RenderingContext.uniformBlockBinding')
5669 @DocsEditable()
5670 @Experimental() // untriaged
5671 void uniformBlockBinding(
5672 Program program, int uniformBlockIndex, int uniformBlockBinding) native;
5673
5674 @DomName('WebGL2RenderingContext.uniformMatrix2x3fv')
5675 @DocsEditable()
5676 @Experimental() // untriaged
5677 void uniformMatrix2x3fv(UniformLocation location, bool transpose, value)
5678 native;
5679
5680 @DomName('WebGL2RenderingContext.uniformMatrix2x4fv')
5681 @DocsEditable()
5682 @Experimental() // untriaged
5683 void uniformMatrix2x4fv(UniformLocation location, bool transpose, value)
5684 native;
5685
5686 @DomName('WebGL2RenderingContext.uniformMatrix3x2fv')
5687 @DocsEditable()
5688 @Experimental() // untriaged
5689 void uniformMatrix3x2fv(UniformLocation location, bool transpose, value)
5690 native;
5691
5692 @DomName('WebGL2RenderingContext.uniformMatrix3x4fv')
5693 @DocsEditable()
5694 @Experimental() // untriaged
5695 void uniformMatrix3x4fv(UniformLocation location, bool transpose, value)
5696 native;
5697
5698 @DomName('WebGL2RenderingContext.uniformMatrix4x2fv')
5699 @DocsEditable()
5700 @Experimental() // untriaged
5701 void uniformMatrix4x2fv(UniformLocation location, bool transpose, value)
5702 native;
5703
5704 @DomName('WebGL2RenderingContext.uniformMatrix4x3fv')
5705 @DocsEditable()
5706 @Experimental() // untriaged
5707 void uniformMatrix4x3fv(UniformLocation location, bool transpose, value)
5708 native;
5709
5710 @DomName('WebGL2RenderingContext.vertexAttribDivisor')
5711 @DocsEditable()
5712 @Experimental() // untriaged
5713 void vertexAttribDivisor(int index, int divisor) native;
5714
5715 @DomName('WebGL2RenderingContext.vertexAttribI4i')
5716 @DocsEditable()
5717 @Experimental() // untriaged
5718 void vertexAttribI4i(int index, int x, int y, int z, int w) native;
5719
5720 @DomName('WebGL2RenderingContext.vertexAttribI4iv')
5721 @DocsEditable()
5722 @Experimental() // untriaged
5723 void vertexAttribI4iv(int index, v) native;
5724
5725 @DomName('WebGL2RenderingContext.vertexAttribI4ui')
5726 @DocsEditable()
5727 @Experimental() // untriaged
5728 void vertexAttribI4ui(int index, int x, int y, int z, int w) native;
5729
5730 @DomName('WebGL2RenderingContext.vertexAttribI4uiv')
5731 @DocsEditable()
5732 @Experimental() // untriaged
5733 void vertexAttribI4uiv(int index, v) native;
5734
5735 @DomName('WebGL2RenderingContext.vertexAttribIPointer')
5736 @DocsEditable()
5737 @Experimental() // untriaged
5738 void vertexAttribIPointer(
5739 int index, int size, int type, int stride, int offset) native;
5740
5741 @DomName('WebGL2RenderingContext.waitSync')
5742 @DocsEditable()
5743 @Experimental() // untriaged
5744 void waitSync(Sync sync, int flags, int timeout) native;
5745
5746 // From WebGLRenderingContextBase
5747
5748 @DomName('WebGL2RenderingContext.canvas')
5749 @DocsEditable()
5750 @Experimental() // untriaged
5751 final CanvasElement canvas;
5752
5753 @DomName('WebGL2RenderingContext.drawingBufferHeight')
5754 @DocsEditable()
5755 @Experimental() // untriaged
5756 final int drawingBufferHeight;
5757
5758 @DomName('WebGL2RenderingContext.drawingBufferWidth')
5759 @DocsEditable()
5760 @Experimental() // untriaged
5761 final int drawingBufferWidth;
5762
5763 @DomName('WebGL2RenderingContext.activeTexture')
5764 @DocsEditable()
5765 @Experimental() // untriaged
5766 void activeTexture(int texture) native;
5767
5768 @DomName('WebGL2RenderingContext.attachShader')
5769 @DocsEditable()
5770 @Experimental() // untriaged
5771 void attachShader(Program program, Shader shader) native;
5772
5773 @DomName('WebGL2RenderingContext.bindAttribLocation')
5774 @DocsEditable()
5775 @Experimental() // untriaged
5776 void bindAttribLocation(Program program, int index, String name) native;
5777
5778 @DomName('WebGL2RenderingContext.bindBuffer')
5779 @DocsEditable()
5780 @Experimental() // untriaged
5781 void bindBuffer(int target, Buffer buffer) native;
5782
5783 @DomName('WebGL2RenderingContext.bindFramebuffer')
5784 @DocsEditable()
5785 @Experimental() // untriaged
5786 void bindFramebuffer(int target, Framebuffer framebuffer) native;
5787
5788 @DomName('WebGL2RenderingContext.bindRenderbuffer')
5789 @DocsEditable()
5790 @Experimental() // untriaged
5791 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native;
5792
5793 @DomName('WebGL2RenderingContext.bindTexture')
5794 @DocsEditable()
5795 @Experimental() // untriaged
5796 void bindTexture(int target, Texture texture) native;
5797
5798 @DomName('WebGL2RenderingContext.blendColor')
5799 @DocsEditable()
5800 @Experimental() // untriaged
5801 void blendColor(num red, num green, num blue, num alpha) native;
5802
5803 @DomName('WebGL2RenderingContext.blendEquation')
5804 @DocsEditable()
5805 @Experimental() // untriaged
5806 void blendEquation(int mode) native;
5807
5808 @DomName('WebGL2RenderingContext.blendEquationSeparate')
5809 @DocsEditable()
5810 @Experimental() // untriaged
5811 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
5812
5813 @DomName('WebGL2RenderingContext.blendFunc')
5814 @DocsEditable()
5815 @Experimental() // untriaged
5816 void blendFunc(int sfactor, int dfactor) native;
5817
5818 @DomName('WebGL2RenderingContext.blendFuncSeparate')
5819 @DocsEditable()
5820 @Experimental() // untriaged
5821 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
5822 native;
5823
5824 @DomName('WebGL2RenderingContext.bufferData')
5825 @DocsEditable()
5826 @Experimental() // untriaged
5827 void bufferData(int target, data_OR_size, int usage) native;
5828
5829 @DomName('WebGL2RenderingContext.bufferSubData')
5830 @DocsEditable()
5831 @Experimental() // untriaged
5832 void bufferSubData(int target, int offset, data) native;
5833
5834 @DomName('WebGL2RenderingContext.checkFramebufferStatus')
5835 @DocsEditable()
5836 @Experimental() // untriaged
5837 int checkFramebufferStatus(int target) native;
5838
5839 @DomName('WebGL2RenderingContext.clear')
5840 @DocsEditable()
5841 @Experimental() // untriaged
5842 void clear(int mask) native;
5843
5844 @DomName('WebGL2RenderingContext.clearColor')
5845 @DocsEditable()
5846 @Experimental() // untriaged
5847 void clearColor(num red, num green, num blue, num alpha) native;
5848
5849 @DomName('WebGL2RenderingContext.clearDepth')
5850 @DocsEditable()
5851 @Experimental() // untriaged
5852 void clearDepth(num depth) native;
5853
5854 @DomName('WebGL2RenderingContext.clearStencil')
5855 @DocsEditable()
5856 @Experimental() // untriaged
5857 void clearStencil(int s) native;
5858
5859 @DomName('WebGL2RenderingContext.colorMask')
5860 @DocsEditable()
5861 @Experimental() // untriaged
5862 void colorMask(bool red, bool green, bool blue, bool alpha) native;
5863
5864 @DomName('WebGL2RenderingContext.compileShader')
5865 @DocsEditable()
5866 @Experimental() // untriaged
5867 void compileShader(Shader shader) native;
5868
5869 @DomName('WebGL2RenderingContext.compressedTexImage2D')
5870 @DocsEditable()
5871 @Experimental() // untriaged
5872 void compressedTexImage2D(int target, int level, int internalformat,
5873 int width, int height, int border, TypedData data) native;
5874
5875 @DomName('WebGL2RenderingContext.compressedTexSubImage2D')
5876 @DocsEditable()
5877 @Experimental() // untriaged
5878 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
5879 int width, int height, int format, TypedData data) native;
5880
5881 @DomName('WebGL2RenderingContext.copyTexImage2D')
5882 @DocsEditable()
5883 @Experimental() // untriaged
5884 void copyTexImage2D(int target, int level, int internalformat, int x, int y,
5885 int width, int height, int border) native;
5886
5887 @DomName('WebGL2RenderingContext.copyTexSubImage2D')
5888 @DocsEditable()
5889 @Experimental() // untriaged
5890 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
5891 int y, int width, int height) native;
5892
5893 @DomName('WebGL2RenderingContext.createBuffer')
5894 @DocsEditable()
5895 @Experimental() // untriaged
5896 Buffer createBuffer() native;
5897
5898 @DomName('WebGL2RenderingContext.createFramebuffer')
5899 @DocsEditable()
5900 @Experimental() // untriaged
5901 Framebuffer createFramebuffer() native;
5902
5903 @DomName('WebGL2RenderingContext.createProgram')
5904 @DocsEditable()
5905 @Experimental() // untriaged
5906 Program createProgram() native;
5907
5908 @DomName('WebGL2RenderingContext.createRenderbuffer')
5909 @DocsEditable()
5910 @Experimental() // untriaged
5911 Renderbuffer createRenderbuffer() native;
5912
5913 @DomName('WebGL2RenderingContext.createShader')
5914 @DocsEditable()
5915 @Experimental() // untriaged
5916 Shader createShader(int type) native;
5917
5918 @DomName('WebGL2RenderingContext.createTexture')
5919 @DocsEditable()
5920 @Experimental() // untriaged
5921 Texture createTexture() native;
5922
5923 @DomName('WebGL2RenderingContext.cullFace')
5924 @DocsEditable()
5925 @Experimental() // untriaged
5926 void cullFace(int mode) native;
5927
5928 @DomName('WebGL2RenderingContext.deleteBuffer')
5929 @DocsEditable()
5930 @Experimental() // untriaged
5931 void deleteBuffer(Buffer buffer) native;
5932
5933 @DomName('WebGL2RenderingContext.deleteFramebuffer')
5934 @DocsEditable()
5935 @Experimental() // untriaged
5936 void deleteFramebuffer(Framebuffer framebuffer) native;
5937
5938 @DomName('WebGL2RenderingContext.deleteProgram')
5939 @DocsEditable()
5940 @Experimental() // untriaged
5941 void deleteProgram(Program program) native;
5942
5943 @DomName('WebGL2RenderingContext.deleteRenderbuffer')
5944 @DocsEditable()
5945 @Experimental() // untriaged
5946 void deleteRenderbuffer(Renderbuffer renderbuffer) native;
5947
5948 @DomName('WebGL2RenderingContext.deleteShader')
5949 @DocsEditable()
5950 @Experimental() // untriaged
5951 void deleteShader(Shader shader) native;
5952
5953 @DomName('WebGL2RenderingContext.deleteTexture')
5954 @DocsEditable()
5955 @Experimental() // untriaged
5956 void deleteTexture(Texture texture) native;
5957
5958 @DomName('WebGL2RenderingContext.depthFunc')
5959 @DocsEditable()
5960 @Experimental() // untriaged
5961 void depthFunc(int func) native;
5962
5963 @DomName('WebGL2RenderingContext.depthMask')
5964 @DocsEditable()
5965 @Experimental() // untriaged
5966 void depthMask(bool flag) native;
5967
5968 @DomName('WebGL2RenderingContext.depthRange')
5969 @DocsEditable()
5970 @Experimental() // untriaged
5971 void depthRange(num zNear, num zFar) native;
5972
5973 @DomName('WebGL2RenderingContext.detachShader')
5974 @DocsEditable()
5975 @Experimental() // untriaged
5976 void detachShader(Program program, Shader shader) native;
5977
5978 @DomName('WebGL2RenderingContext.disable')
5979 @DocsEditable()
5980 @Experimental() // untriaged
5981 void disable(int cap) native;
5982
5983 @DomName('WebGL2RenderingContext.disableVertexAttribArray')
5984 @DocsEditable()
5985 @Experimental() // untriaged
5986 void disableVertexAttribArray(int index) native;
5987
5988 @DomName('WebGL2RenderingContext.drawArrays')
5989 @DocsEditable()
5990 @Experimental() // untriaged
5991 void drawArrays(int mode, int first, int count) native;
5992
5993 @DomName('WebGL2RenderingContext.drawElements')
5994 @DocsEditable()
5995 @Experimental() // untriaged
5996 void drawElements(int mode, int count, int type, int offset) native;
5997
5998 @DomName('WebGL2RenderingContext.enable')
5999 @DocsEditable()
6000 @Experimental() // untriaged
6001 void enable(int cap) native;
6002
6003 @DomName('WebGL2RenderingContext.enableVertexAttribArray')
6004 @DocsEditable()
6005 @Experimental() // untriaged
6006 void enableVertexAttribArray(int index) native;
6007
6008 @DomName('WebGL2RenderingContext.finish')
6009 @DocsEditable()
6010 @Experimental() // untriaged
6011 void finish() native;
6012
6013 @DomName('WebGL2RenderingContext.flush')
6014 @DocsEditable()
6015 @Experimental() // untriaged
6016 void flush() native;
6017
6018 @DomName('WebGL2RenderingContext.framebufferRenderbuffer')
6019 @DocsEditable()
6020 @Experimental() // untriaged
6021 void framebufferRenderbuffer(int target, int attachment,
6022 int renderbuffertarget, Renderbuffer renderbuffer) native;
6023
6024 @DomName('WebGL2RenderingContext.framebufferTexture2D')
6025 @DocsEditable()
6026 @Experimental() // untriaged
6027 void framebufferTexture2D(int target, int attachment, int textarget,
6028 Texture texture, int level) native;
6029
6030 @DomName('WebGL2RenderingContext.frontFace')
6031 @DocsEditable()
6032 @Experimental() // untriaged
6033 void frontFace(int mode) native;
6034
6035 @DomName('WebGL2RenderingContext.generateMipmap')
6036 @DocsEditable()
6037 @Experimental() // untriaged
6038 void generateMipmap(int target) native;
6039
6040 @DomName('WebGL2RenderingContext.getActiveAttrib')
6041 @DocsEditable()
6042 @Experimental() // untriaged
6043 ActiveInfo getActiveAttrib(Program program, int index) native;
6044
6045 @DomName('WebGL2RenderingContext.getActiveUniform')
6046 @DocsEditable()
6047 @Experimental() // untriaged
6048 ActiveInfo getActiveUniform(Program program, int index) native;
6049
6050 @DomName('WebGL2RenderingContext.getAttachedShaders')
6051 @DocsEditable()
6052 @Experimental() // untriaged
6053 List<Shader> getAttachedShaders(Program program) native;
6054
6055 @DomName('WebGL2RenderingContext.getAttribLocation')
6056 @DocsEditable()
6057 @Experimental() // untriaged
6058 int getAttribLocation(Program program, String name) native;
6059
6060 @DomName('WebGL2RenderingContext.getBufferParameter')
6061 @DocsEditable()
6062 @Experimental() // untriaged
6063 Object getBufferParameter(int target, int pname) native;
6064
6065 @DomName('WebGL2RenderingContext.getContextAttributes')
6066 @DocsEditable()
6067 @Experimental() // untriaged
6068 Map getContextAttributes() {
6069 return convertNativeToDart_Dictionary(_getContextAttributes_1());
6070 }
6071
6072 @JSName('getContextAttributes')
6073 @DomName('WebGL2RenderingContext.getContextAttributes')
6074 @DocsEditable()
6075 @Experimental() // untriaged
6076 _getContextAttributes_1() native;
6077
6078 @DomName('WebGL2RenderingContext.getError')
6079 @DocsEditable()
6080 @Experimental() // untriaged
6081 int getError() native;
6082
6083 @DomName('WebGL2RenderingContext.getExtension')
6084 @DocsEditable()
6085 @Experimental() // untriaged
6086 Object getExtension(String name) native;
6087
6088 @DomName('WebGL2RenderingContext.getFramebufferAttachmentParameter')
6089 @DocsEditable()
6090 @Experimental() // untriaged
6091 Object getFramebufferAttachmentParameter(
6092 int target, int attachment, int pname) native;
6093
6094 @DomName('WebGL2RenderingContext.getParameter')
6095 @DocsEditable()
6096 @Experimental() // untriaged
6097 Object getParameter(int pname) native;
6098
6099 @DomName('WebGL2RenderingContext.getProgramInfoLog')
6100 @DocsEditable()
6101 @Experimental() // untriaged
6102 String getProgramInfoLog(Program program) native;
6103
6104 @DomName('WebGL2RenderingContext.getProgramParameter')
6105 @DocsEditable()
6106 @Experimental() // untriaged
6107 Object getProgramParameter(Program program, int pname) native;
6108
6109 @DomName('WebGL2RenderingContext.getRenderbufferParameter')
6110 @DocsEditable()
6111 @Experimental() // untriaged
6112 Object getRenderbufferParameter(int target, int pname) native;
6113
6114 @DomName('WebGL2RenderingContext.getShaderInfoLog')
6115 @DocsEditable()
6116 @Experimental() // untriaged
6117 String getShaderInfoLog(Shader shader) native;
6118
6119 @DomName('WebGL2RenderingContext.getShaderParameter')
6120 @DocsEditable()
6121 @Experimental() // untriaged
6122 Object getShaderParameter(Shader shader, int pname) native;
6123
6124 @DomName('WebGL2RenderingContext.getShaderPrecisionFormat')
6125 @DocsEditable()
6126 @Experimental() // untriaged
6127 ShaderPrecisionFormat getShaderPrecisionFormat(
6128 int shadertype, int precisiontype) native;
6129
6130 @DomName('WebGL2RenderingContext.getShaderSource')
6131 @DocsEditable()
6132 @Experimental() // untriaged
6133 String getShaderSource(Shader shader) native;
6134
6135 @DomName('WebGL2RenderingContext.getSupportedExtensions')
6136 @DocsEditable()
6137 @Experimental() // untriaged
6138 List<String> getSupportedExtensions() native;
6139
6140 @DomName('WebGL2RenderingContext.getTexParameter')
6141 @DocsEditable()
6142 @Experimental() // untriaged
6143 Object getTexParameter(int target, int pname) native;
6144
6145 @DomName('WebGL2RenderingContext.getUniform')
6146 @DocsEditable()
6147 @Experimental() // untriaged
6148 Object getUniform(Program program, UniformLocation location) native;
6149
6150 @DomName('WebGL2RenderingContext.getUniformLocation')
6151 @DocsEditable()
6152 @Experimental() // untriaged
6153 UniformLocation getUniformLocation(Program program, String name) native;
6154
6155 @DomName('WebGL2RenderingContext.getVertexAttrib')
6156 @DocsEditable()
6157 @Experimental() // untriaged
6158 Object getVertexAttrib(int index, int pname) native;
6159
6160 @DomName('WebGL2RenderingContext.getVertexAttribOffset')
6161 @DocsEditable()
6162 @Experimental() // untriaged
6163 int getVertexAttribOffset(int index, int pname) native;
6164
6165 @DomName('WebGL2RenderingContext.hint')
6166 @DocsEditable()
6167 @Experimental() // untriaged
6168 void hint(int target, int mode) native;
6169
6170 @DomName('WebGL2RenderingContext.isBuffer')
6171 @DocsEditable()
6172 @Experimental() // untriaged
6173 bool isBuffer(Buffer buffer) native;
6174
6175 @DomName('WebGL2RenderingContext.isContextLost')
6176 @DocsEditable()
6177 @Experimental() // untriaged
6178 bool isContextLost() native;
6179
6180 @DomName('WebGL2RenderingContext.isEnabled')
6181 @DocsEditable()
6182 @Experimental() // untriaged
6183 bool isEnabled(int cap) native;
6184
6185 @DomName('WebGL2RenderingContext.isFramebuffer')
6186 @DocsEditable()
6187 @Experimental() // untriaged
6188 bool isFramebuffer(Framebuffer framebuffer) native;
6189
6190 @DomName('WebGL2RenderingContext.isProgram')
6191 @DocsEditable()
6192 @Experimental() // untriaged
6193 bool isProgram(Program program) native;
6194
6195 @DomName('WebGL2RenderingContext.isRenderbuffer')
6196 @DocsEditable()
6197 @Experimental() // untriaged
6198 bool isRenderbuffer(Renderbuffer renderbuffer) native;
6199
6200 @DomName('WebGL2RenderingContext.isShader')
6201 @DocsEditable()
6202 @Experimental() // untriaged
6203 bool isShader(Shader shader) native;
6204
6205 @DomName('WebGL2RenderingContext.isTexture')
6206 @DocsEditable()
6207 @Experimental() // untriaged
6208 bool isTexture(Texture texture) native;
6209
6210 @DomName('WebGL2RenderingContext.lineWidth')
6211 @DocsEditable()
6212 @Experimental() // untriaged
6213 void lineWidth(num width) native;
6214
6215 @DomName('WebGL2RenderingContext.linkProgram')
6216 @DocsEditable()
6217 @Experimental() // untriaged
6218 void linkProgram(Program program) native;
6219
6220 @DomName('WebGL2RenderingContext.pixelStorei')
6221 @DocsEditable()
6222 @Experimental() // untriaged
6223 void pixelStorei(int pname, int param) native;
6224
6225 @DomName('WebGL2RenderingContext.polygonOffset')
6226 @DocsEditable()
6227 @Experimental() // untriaged
6228 void polygonOffset(num factor, num units) native;
6229
6230 @DomName('WebGL2RenderingContext.readPixels')
6231 @DocsEditable()
6232 @Experimental() // untriaged
6233 void readPixels(int x, int y, int width, int height, int format, int type,
6234 TypedData pixels) native;
6235
6236 @DomName('WebGL2RenderingContext.renderbufferStorage')
6237 @DocsEditable()
6238 @Experimental() // untriaged
6239 void renderbufferStorage(
6240 int target, int internalformat, int width, int height) native;
6241
6242 @DomName('WebGL2RenderingContext.sampleCoverage')
6243 @DocsEditable()
6244 @Experimental() // untriaged
6245 void sampleCoverage(num value, bool invert) native;
6246
6247 @DomName('WebGL2RenderingContext.scissor')
6248 @DocsEditable()
6249 @Experimental() // untriaged
6250 void scissor(int x, int y, int width, int height) native;
6251
6252 @DomName('WebGL2RenderingContext.shaderSource')
6253 @DocsEditable()
6254 @Experimental() // untriaged
6255 void shaderSource(Shader shader, String string) native;
6256
6257 @DomName('WebGL2RenderingContext.stencilFunc')
6258 @DocsEditable()
6259 @Experimental() // untriaged
6260 void stencilFunc(int func, int ref, int mask) native;
6261
6262 @DomName('WebGL2RenderingContext.stencilFuncSeparate')
6263 @DocsEditable()
6264 @Experimental() // untriaged
6265 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
6266
6267 @DomName('WebGL2RenderingContext.stencilMask')
6268 @DocsEditable()
6269 @Experimental() // untriaged
6270 void stencilMask(int mask) native;
6271
6272 @DomName('WebGL2RenderingContext.stencilMaskSeparate')
6273 @DocsEditable()
6274 @Experimental() // untriaged
6275 void stencilMaskSeparate(int face, int mask) native;
6276
6277 @DomName('WebGL2RenderingContext.stencilOp')
6278 @DocsEditable()
6279 @Experimental() // untriaged
6280 void stencilOp(int fail, int zfail, int zpass) native;
6281
6282 @DomName('WebGL2RenderingContext.stencilOpSeparate')
6283 @DocsEditable()
6284 @Experimental() // untriaged
6285 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
6286
6287 @DomName('WebGL2RenderingContext.texImage2D')
6288 @DocsEditable()
6289 @Experimental() // untriaged
6290 void texImage2D(
6291 int target,
6292 int level,
6293 int internalformat,
6294 int format_OR_width,
6295 int height_OR_type,
6296 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
6297 [int format,
6298 int type,
6299 TypedData pixels]) {
6300 if (type != null &&
6301 format != null &&
6302 (bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is int)) {
6303 _texImage2D_1(
6304 target,
6305 level,
6306 internalformat,
6307 format_OR_width,
6308 height_OR_type,
6309 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
6310 format,
6311 type,
6312 pixels);
6313 return;
6314 }
6315 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData ||
6316 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
6317 format == null &&
6318 type == null &&
6319 pixels == null) {
6320 var pixels_1 = convertDartToNative_ImageData(
6321 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
6322 _texImage2D_2(target, level, internalformat, format_OR_width,
6323 height_OR_type, pixels_1);
6324 return;
6325 }
6326 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
6327 is ImageElement) &&
6328 format == null &&
6329 type == null &&
6330 pixels == null) {
6331 _texImage2D_3(
6332 target,
6333 level,
6334 internalformat,
6335 format_OR_width,
6336 height_OR_type,
6337 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
6338 return;
6339 }
6340 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
6341 is CanvasElement) &&
6342 format == null &&
6343 type == null &&
6344 pixels == null) {
6345 _texImage2D_4(
6346 target,
6347 level,
6348 internalformat,
6349 format_OR_width,
6350 height_OR_type,
6351 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
6352 return;
6353 }
6354 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
6355 is VideoElement) &&
6356 format == null &&
6357 type == null &&
6358 pixels == null) {
6359 _texImage2D_5(
6360 target,
6361 level,
6362 internalformat,
6363 format_OR_width,
6364 height_OR_type,
6365 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
6366 return;
6367 }
6368 if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
6369 is ImageBitmap) &&
6370 format == null &&
6371 type == null &&
6372 pixels == null) {
6373 _texImage2D_6(
6374 target,
6375 level,
6376 internalformat,
6377 format_OR_width,
6378 height_OR_type,
6379 bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video);
6380 return;
6381 }
6382 throw new ArgumentError("Incorrect number or type of arguments");
6383 }
6384
6385 @JSName('texImage2D')
6386 @DomName('WebGL2RenderingContext.texImage2D')
6387 @DocsEditable()
6388 @Experimental() // untriaged
6389 void _texImage2D_1(target, level, internalformat, width, height, int border,
6390 format, type, TypedData pixels) native;
6391 @JSName('texImage2D')
6392 @DomName('WebGL2RenderingContext.texImage2D')
6393 @DocsEditable()
6394 @Experimental() // untriaged
6395 void _texImage2D_2(target, level, internalformat, format, type, pixels)
6396 native;
6397 @JSName('texImage2D')
6398 @DomName('WebGL2RenderingContext.texImage2D')
6399 @DocsEditable()
6400 @Experimental() // untriaged
6401 void _texImage2D_3(
6402 target, level, internalformat, format, type, ImageElement image) native;
6403 @JSName('texImage2D')
6404 @DomName('WebGL2RenderingContext.texImage2D')
6405 @DocsEditable()
6406 @Experimental() // untriaged
6407 void _texImage2D_4(
6408 target, level, internalformat, format, type, CanvasElement canvas) native;
6409 @JSName('texImage2D')
6410 @DomName('WebGL2RenderingContext.texImage2D')
6411 @DocsEditable()
6412 @Experimental() // untriaged
6413 void _texImage2D_5(
6414 target, level, internalformat, format, type, VideoElement video) native;
6415 @JSName('texImage2D')
6416 @DomName('WebGL2RenderingContext.texImage2D')
6417 @DocsEditable()
6418 @Experimental() // untriaged
6419 void _texImage2D_6(
6420 target, level, internalformat, format, type, ImageBitmap bitmap) native;
6421
6422 @DomName('WebGL2RenderingContext.texParameterf')
6423 @DocsEditable()
6424 @Experimental() // untriaged
6425 void texParameterf(int target, int pname, num param) native;
6426
6427 @DomName('WebGL2RenderingContext.texParameteri')
6428 @DocsEditable()
6429 @Experimental() // untriaged
6430 void texParameteri(int target, int pname, int param) native;
6431
6432 @DomName('WebGL2RenderingContext.texSubImage2D')
6433 @DocsEditable()
6434 @Experimental() // untriaged
6435 void texSubImage2D(
6436 int target,
6437 int level,
6438 int xoffset,
6439 int yoffset,
6440 int format_OR_width,
6441 int height_OR_type,
6442 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
6443 [int type,
6444 TypedData pixels]) {
6445 if (type != null &&
6446 (bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is int)) {
6447 _texSubImage2D_1(
6448 target,
6449 level,
6450 xoffset,
6451 yoffset,
6452 format_OR_width,
6453 height_OR_type,
6454 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
6455 type,
6456 pixels);
6457 return;
6458 }
6459 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData ||
6460 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
6461 type == null &&
6462 pixels == null) {
6463 var pixels_1 = convertDartToNative_ImageData(
6464 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
6465 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width,
6466 height_OR_type, pixels_1);
6467 return;
6468 }
6469 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
6470 is ImageElement) &&
6471 type == null &&
6472 pixels == null) {
6473 _texSubImage2D_3(
6474 target,
6475 level,
6476 xoffset,
6477 yoffset,
6478 format_OR_width,
6479 height_OR_type,
6480 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
6481 return;
6482 }
6483 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
6484 is CanvasElement) &&
6485 type == null &&
6486 pixels == null) {
6487 _texSubImage2D_4(
6488 target,
6489 level,
6490 xoffset,
6491 yoffset,
6492 format_OR_width,
6493 height_OR_type,
6494 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
6495 return;
6496 }
6497 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
6498 is VideoElement) &&
6499 type == null &&
6500 pixels == null) {
6501 _texSubImage2D_5(
6502 target,
6503 level,
6504 xoffset,
6505 yoffset,
6506 format_OR_width,
6507 height_OR_type,
6508 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
6509 return;
6510 }
6511 if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
6512 is ImageBitmap) &&
6513 type == null &&
6514 pixels == null) {
6515 _texSubImage2D_6(
6516 target,
6517 level,
6518 xoffset,
6519 yoffset,
6520 format_OR_width,
6521 height_OR_type,
6522 bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video);
6523 return;
6524 }
6525 throw new ArgumentError("Incorrect number or type of arguments");
6526 }
6527
6528 @JSName('texSubImage2D')
6529 @DomName('WebGL2RenderingContext.texSubImage2D')
6530 @DocsEditable()
6531 @Experimental() // untriaged
6532 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height,
6533 int format, type, TypedData pixels) native;
6534 @JSName('texSubImage2D')
6535 @DomName('WebGL2RenderingContext.texSubImage2D')
6536 @DocsEditable()
6537 @Experimental() // untriaged
6538 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels)
6539 native;
6540 @JSName('texSubImage2D')
6541 @DomName('WebGL2RenderingContext.texSubImage2D')
6542 @DocsEditable()
6543 @Experimental() // untriaged
6544 void _texSubImage2D_3(
6545 target, level, xoffset, yoffset, format, type, ImageElement image) native;
6546 @JSName('texSubImage2D')
6547 @DomName('WebGL2RenderingContext.texSubImage2D')
6548 @DocsEditable()
6549 @Experimental() // untriaged
6550 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type,
6551 CanvasElement canvas) native;
6552 @JSName('texSubImage2D')
6553 @DomName('WebGL2RenderingContext.texSubImage2D')
6554 @DocsEditable()
6555 @Experimental() // untriaged
6556 void _texSubImage2D_5(
6557 target, level, xoffset, yoffset, format, type, VideoElement video) native;
6558 @JSName('texSubImage2D')
6559 @DomName('WebGL2RenderingContext.texSubImage2D')
6560 @DocsEditable()
6561 @Experimental() // untriaged
6562 void _texSubImage2D_6(
6563 target, level, xoffset, yoffset, format, type, ImageBitmap bitmap) native;
6564
6565 @DomName('WebGL2RenderingContext.uniform1f')
6566 @DocsEditable()
6567 @Experimental() // untriaged
6568 void uniform1f(UniformLocation location, num x) native;
6569
6570 @DomName('WebGL2RenderingContext.uniform1fv')
6571 @DocsEditable()
6572 @Experimental() // untriaged
6573 void uniform1fv(UniformLocation location, v) native;
6574
6575 @DomName('WebGL2RenderingContext.uniform1i')
6576 @DocsEditable()
6577 @Experimental() // untriaged
6578 void uniform1i(UniformLocation location, int x) native;
6579
6580 @DomName('WebGL2RenderingContext.uniform1iv')
6581 @DocsEditable()
6582 @Experimental() // untriaged
6583 void uniform1iv(UniformLocation location, v) native;
6584
6585 @DomName('WebGL2RenderingContext.uniform2f')
6586 @DocsEditable()
6587 @Experimental() // untriaged
6588 void uniform2f(UniformLocation location, num x, num y) native;
6589
6590 @DomName('WebGL2RenderingContext.uniform2fv')
6591 @DocsEditable()
6592 @Experimental() // untriaged
6593 void uniform2fv(UniformLocation location, v) native;
6594
6595 @DomName('WebGL2RenderingContext.uniform2i')
6596 @DocsEditable()
6597 @Experimental() // untriaged
6598 void uniform2i(UniformLocation location, int x, int y) native;
6599
6600 @DomName('WebGL2RenderingContext.uniform2iv')
6601 @DocsEditable()
6602 @Experimental() // untriaged
6603 void uniform2iv(UniformLocation location, v) native;
6604
6605 @DomName('WebGL2RenderingContext.uniform3f')
6606 @DocsEditable()
6607 @Experimental() // untriaged
6608 void uniform3f(UniformLocation location, num x, num y, num z) native;
6609
6610 @DomName('WebGL2RenderingContext.uniform3fv')
6611 @DocsEditable()
6612 @Experimental() // untriaged
6613 void uniform3fv(UniformLocation location, v) native;
6614
6615 @DomName('WebGL2RenderingContext.uniform3i')
6616 @DocsEditable()
6617 @Experimental() // untriaged
6618 void uniform3i(UniformLocation location, int x, int y, int z) native;
6619
6620 @DomName('WebGL2RenderingContext.uniform3iv')
6621 @DocsEditable()
6622 @Experimental() // untriaged
6623 void uniform3iv(UniformLocation location, v) native;
6624
6625 @DomName('WebGL2RenderingContext.uniform4f')
6626 @DocsEditable()
6627 @Experimental() // untriaged
6628 void uniform4f(UniformLocation location, num x, num y, num z, num w) native;
6629
6630 @DomName('WebGL2RenderingContext.uniform4fv')
6631 @DocsEditable()
6632 @Experimental() // untriaged
6633 void uniform4fv(UniformLocation location, v) native;
6634
6635 @DomName('WebGL2RenderingContext.uniform4i')
6636 @DocsEditable()
6637 @Experimental() // untriaged
6638 void uniform4i(UniformLocation location, int x, int y, int z, int w) native;
6639
6640 @DomName('WebGL2RenderingContext.uniform4iv')
6641 @DocsEditable()
6642 @Experimental() // untriaged
6643 void uniform4iv(UniformLocation location, v) native;
6644
6645 @DomName('WebGL2RenderingContext.uniformMatrix2fv')
6646 @DocsEditable()
6647 @Experimental() // untriaged
6648 void uniformMatrix2fv(UniformLocation location, bool transpose, array) native;
6649
6650 @DomName('WebGL2RenderingContext.uniformMatrix3fv')
6651 @DocsEditable()
6652 @Experimental() // untriaged
6653 void uniformMatrix3fv(UniformLocation location, bool transpose, array) native;
6654
6655 @DomName('WebGL2RenderingContext.uniformMatrix4fv')
6656 @DocsEditable()
6657 @Experimental() // untriaged
6658 void uniformMatrix4fv(UniformLocation location, bool transpose, array) native;
6659
6660 @DomName('WebGL2RenderingContext.useProgram')
6661 @DocsEditable()
6662 @Experimental() // untriaged
6663 void useProgram(Program program) native;
6664
6665 @DomName('WebGL2RenderingContext.validateProgram')
6666 @DocsEditable()
6667 @Experimental() // untriaged
6668 void validateProgram(Program program) native;
6669
6670 @DomName('WebGL2RenderingContext.vertexAttrib1f')
6671 @DocsEditable()
6672 @Experimental() // untriaged
6673 void vertexAttrib1f(int indx, num x) native;
6674
6675 @DomName('WebGL2RenderingContext.vertexAttrib1fv')
6676 @DocsEditable()
6677 @Experimental() // untriaged
6678 void vertexAttrib1fv(int indx, values) native;
6679
6680 @DomName('WebGL2RenderingContext.vertexAttrib2f')
6681 @DocsEditable()
6682 @Experimental() // untriaged
6683 void vertexAttrib2f(int indx, num x, num y) native;
6684
6685 @DomName('WebGL2RenderingContext.vertexAttrib2fv')
6686 @DocsEditable()
6687 @Experimental() // untriaged
6688 void vertexAttrib2fv(int indx, values) native;
6689
6690 @DomName('WebGL2RenderingContext.vertexAttrib3f')
6691 @DocsEditable()
6692 @Experimental() // untriaged
6693 void vertexAttrib3f(int indx, num x, num y, num z) native;
6694
6695 @DomName('WebGL2RenderingContext.vertexAttrib3fv')
6696 @DocsEditable()
6697 @Experimental() // untriaged
6698 void vertexAttrib3fv(int indx, values) native;
6699
6700 @DomName('WebGL2RenderingContext.vertexAttrib4f')
6701 @DocsEditable()
6702 @Experimental() // untriaged
6703 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
6704
6705 @DomName('WebGL2RenderingContext.vertexAttrib4fv')
6706 @DocsEditable()
6707 @Experimental() // untriaged
6708 void vertexAttrib4fv(int indx, values) native;
6709
6710 @DomName('WebGL2RenderingContext.vertexAttribPointer')
6711 @DocsEditable()
6712 @Experimental() // untriaged
6713 void vertexAttribPointer(int indx, int size, int type, bool normalized,
6714 int stride, int offset) native;
6715
6716 @DomName('WebGL2RenderingContext.viewport')
6717 @DocsEditable()
6718 @Experimental() // untriaged
6719 void viewport(int x, int y, int width, int height) native;
6720 }
6721 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6722 // for details. All rights reserved. Use of this source code is governed by a
6723 // BSD-style license that can be found in the LICENSE file.
6724
6725 @DocsEditable()
6726 @DomName('WebGLSampler')
6727 @Experimental() // untriaged
6728 @Native("WebGLSampler")
6729 class Sampler extends Interceptor {
6730 // To suppress missing implicit constructor warnings.
6731 factory Sampler._() {
6732 throw new UnsupportedError("Not supported");
6733 }
6734 }
6735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6736 // for details. All rights reserved. Use of this source code is governed by a
6737 // BSD-style license that can be found in the LICENSE file.
6738
6739 @DocsEditable()
6740 @DomName('WebGLShader')
6741 @Native("WebGLShader")
6742 class Shader extends Interceptor {
6743 // To suppress missing implicit constructor warnings.
6744 factory Shader._() {
6745 throw new UnsupportedError("Not supported");
6746 }
6747 }
6748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6749 // for details. All rights reserved. Use of this source code is governed by a
6750 // BSD-style license that can be found in the LICENSE file.
6751
6752 @DocsEditable()
3484 @DomName('WebGLShaderPrecisionFormat') 6753 @DomName('WebGLShaderPrecisionFormat')
3485 @Native("WebGLShaderPrecisionFormat") 6754 @Native("WebGLShaderPrecisionFormat")
3486 class ShaderPrecisionFormat extends Interceptor { 6755 class ShaderPrecisionFormat extends Interceptor {
3487 // To suppress missing implicit constructor warnings. 6756 // To suppress missing implicit constructor warnings.
3488 factory ShaderPrecisionFormat._() { 6757 factory ShaderPrecisionFormat._() {
3489 throw new UnsupportedError("Not supported"); 6758 throw new UnsupportedError("Not supported");
3490 } 6759 }
3491 6760
3492 @DomName('WebGLShaderPrecisionFormat.precision') 6761 @DomName('WebGLShaderPrecisionFormat.precision')
3493 @DocsEditable() 6762 @DocsEditable()
3494 final int precision; 6763 final int precision;
3495 6764
3496 @DomName('WebGLShaderPrecisionFormat.rangeMax') 6765 @DomName('WebGLShaderPrecisionFormat.rangeMax')
3497 @DocsEditable() 6766 @DocsEditable()
3498 final int rangeMax; 6767 final int rangeMax;
3499 6768
3500 @DomName('WebGLShaderPrecisionFormat.rangeMin') 6769 @DomName('WebGLShaderPrecisionFormat.rangeMin')
3501 @DocsEditable() 6770 @DocsEditable()
3502 final int rangeMin; 6771 final int rangeMin;
3503 } 6772 }
3504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6773 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3505 // for details. All rights reserved. Use of this source code is governed by a 6774 // for details. All rights reserved. Use of this source code is governed by a
3506 // BSD-style license that can be found in the LICENSE file. 6775 // BSD-style license that can be found in the LICENSE file.
3507 6776
3508 @DocsEditable() 6777 @DocsEditable()
6778 @DomName('WebGLSync')
6779 @Experimental() // untriaged
6780 @Native("WebGLSync")
6781 class Sync extends Interceptor {
6782 // To suppress missing implicit constructor warnings.
6783 factory Sync._() {
6784 throw new UnsupportedError("Not supported");
6785 }
6786 }
6787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6788 // for details. All rights reserved. Use of this source code is governed by a
6789 // BSD-style license that can be found in the LICENSE file.
6790
6791 @DocsEditable()
3509 @DomName('WebGLTexture') 6792 @DomName('WebGLTexture')
3510 @Native("WebGLTexture") 6793 @Native("WebGLTexture")
3511 class Texture extends Interceptor { 6794 class Texture extends Interceptor {
3512 // To suppress missing implicit constructor warnings. 6795 // To suppress missing implicit constructor warnings.
3513 factory Texture._() { 6796 factory Texture._() {
3514 throw new UnsupportedError("Not supported"); 6797 throw new UnsupportedError("Not supported");
3515 } 6798 }
3516 } 6799 }
3517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3518 // for details. All rights reserved. Use of this source code is governed by a 6801 // for details. All rights reserved. Use of this source code is governed by a
3519 // BSD-style license that can be found in the LICENSE file. 6802 // BSD-style license that can be found in the LICENSE file.
3520 6803
3521 @DocsEditable() 6804 @DocsEditable()
6805 @DomName('WebGLTimerQueryEXT')
6806 @Experimental() // untriaged
6807 @Native("WebGLTimerQueryEXT")
6808 class TimerQueryExt extends Interceptor {
6809 // To suppress missing implicit constructor warnings.
6810 factory TimerQueryExt._() {
6811 throw new UnsupportedError("Not supported");
6812 }
6813 }
6814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6815 // for details. All rights reserved. Use of this source code is governed by a
6816 // BSD-style license that can be found in the LICENSE file.
6817
6818 @DocsEditable()
6819 @DomName('WebGLTransformFeedback')
6820 @Experimental() // untriaged
6821 @Native("WebGLTransformFeedback")
6822 class TransformFeedback extends Interceptor {
6823 // To suppress missing implicit constructor warnings.
6824 factory TransformFeedback._() {
6825 throw new UnsupportedError("Not supported");
6826 }
6827 }
6828 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6829 // for details. All rights reserved. Use of this source code is governed by a
6830 // BSD-style license that can be found in the LICENSE file.
6831
6832 @DocsEditable()
3522 @DomName('WebGLUniformLocation') 6833 @DomName('WebGLUniformLocation')
3523 @Native("WebGLUniformLocation") 6834 @Native("WebGLUniformLocation")
3524 class UniformLocation extends Interceptor { 6835 class UniformLocation extends Interceptor {
3525 // To suppress missing implicit constructor warnings. 6836 // To suppress missing implicit constructor warnings.
3526 factory UniformLocation._() { 6837 factory UniformLocation._() {
3527 throw new UnsupportedError("Not supported"); 6838 throw new UnsupportedError("Not supported");
3528 } 6839 }
3529 } 6840 }
3530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3531 // for details. All rights reserved. Use of this source code is governed by a 6842 // for details. All rights reserved. Use of this source code is governed by a
3532 // BSD-style license that can be found in the LICENSE file. 6843 // BSD-style license that can be found in the LICENSE file.
3533 6844
3534 @DocsEditable() 6845 @DocsEditable()
3535 @DomName('WebGLVertexArrayObjectOES') 6846 @DomName('WebGLVertexArrayObject')
3536 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 6847 @Experimental() // untriaged
3537 @Experimental() // experimental 6848 @Native("WebGLVertexArrayObject")
3538 @Native("WebGLVertexArrayObjectOES")
3539 class VertexArrayObject extends Interceptor { 6849 class VertexArrayObject extends Interceptor {
3540 // To suppress missing implicit constructor warnings. 6850 // To suppress missing implicit constructor warnings.
3541 factory VertexArrayObject._() { 6851 factory VertexArrayObject._() {
3542 throw new UnsupportedError("Not supported"); 6852 throw new UnsupportedError("Not supported");
3543 } 6853 }
3544 } 6854 }
3545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 6855 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3546 // for details. All rights reserved. Use of this source code is governed by a 6856 // for details. All rights reserved. Use of this source code is governed by a
6857 // BSD-style license that can be found in the LICENSE file.
6858
6859 @DocsEditable()
6860 @DomName('WebGLVertexArrayObjectOES')
6861 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
6862 @Experimental() // experimental
6863 @Native("WebGLVertexArrayObjectOES")
6864 class VertexArrayObjectOes extends Interceptor {
6865 // To suppress missing implicit constructor warnings.
6866 factory VertexArrayObjectOes._() {
6867 throw new UnsupportedError("Not supported");
6868 }
6869 }
6870 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6871 // for details. All rights reserved. Use of this source code is governed by a
6872 // BSD-style license that can be found in the LICENSE file.
6873
6874 @DocsEditable()
6875 @DomName('WebGL2RenderingContextBase')
6876 @Experimental() // untriaged
6877 @Native("WebGL2RenderingContextBase")
6878 abstract class _WebGL2RenderingContextBase extends Interceptor
6879 implements _WebGLRenderingContextBase {
6880 // To suppress missing implicit constructor warnings.
6881 factory _WebGL2RenderingContextBase._() {
6882 throw new UnsupportedError("Not supported");
6883 }
6884
6885 // From WebGLRenderingContextBase
6886 }
6887 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
6888 // for details. All rights reserved. Use of this source code is governed by a
3547 // BSD-style license that can be found in the LICENSE file. 6889 // BSD-style license that can be found in the LICENSE file.
3548 6890
3549 @DocsEditable() 6891 @DocsEditable()
3550 @DomName('WebGLRenderingContextBase') 6892 @DomName('WebGLRenderingContextBase')
3551 @Experimental() // untriaged 6893 @Experimental() // untriaged
3552 abstract class _WebGLRenderingContextBase extends Interceptor { 6894 abstract class _WebGLRenderingContextBase extends Interceptor {
3553 // To suppress missing implicit constructor warnings. 6895 // To suppress missing implicit constructor warnings.
3554 factory _WebGLRenderingContextBase._() { 6896 factory _WebGLRenderingContextBase._() {
3555 throw new UnsupportedError("Not supported"); 6897 throw new UnsupportedError("Not supported");
3556 } 6898 }
3557 } 6899 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698