| OLD | NEW |
| 1 library dart.dom.web_gl; | 1 library dart.dom.web_gl; |
| 2 | 2 |
| 3 import 'dart:collection'; | 3 import 'dart:collection'; |
| 4 import 'dart:_collection-dev' hide deprecated; | 4 import 'dart:_collection-dev' hide deprecated; |
| 5 import 'dart:html'; | 5 import 'dart:html'; |
| 6 import 'dart:html_common'; | 6 import 'dart:html_common'; |
| 7 import 'dart:typed_data'; | 7 import 'dart:typed_data'; |
| 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure
ToJS; | 8 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure
ToJS; |
| 9 import 'dart:_foreign_helper' show JS; | 9 import 'dart:_foreign_helper' show JS; |
| 10 import 'dart:_interceptors' show Interceptor, JSExtendableArray; | 10 import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') | 524 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') |
| 525 @DocsEditable() | 525 @DocsEditable() |
| 526 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | 526 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; |
| 527 } | 527 } |
| 528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 529 // for details. All rights reserved. Use of this source code is governed by a | 529 // for details. All rights reserved. Use of this source code is governed by a |
| 530 // BSD-style license that can be found in the LICENSE file. | 530 // BSD-style license that can be found in the LICENSE file. |
| 531 | 531 |
| 532 | 532 |
| 533 @DocsEditable() | 533 @DocsEditable() |
| 534 @DomName('EXTDrawBuffers') | 534 @DomName('WebGLDrawBuffers') |
| 535 // http://www.khronos.org/registry/webgl/specs/latest/ | 535 // http://www.khronos.org/registry/webgl/specs/latest/ |
| 536 @Experimental() // stable | 536 @Experimental() // stable |
| 537 class ExtDrawBuffers extends Interceptor native "EXTDrawBuffers" { | 537 class DrawBuffers extends Interceptor native "WebGLDrawBuffers" { |
| 538 | 538 |
| 539 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT') | 539 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') |
| 540 @DocsEditable() | 540 @DocsEditable() |
| 541 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; | 541 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; |
| 542 | 542 |
| 543 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT') | 543 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL') |
| 544 @DocsEditable() | 544 @DocsEditable() |
| 545 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; | 545 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA; |
| 546 | 546 |
| 547 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT11_EXT') | 547 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT11_WEBGL') |
| 548 @DocsEditable() | 548 @DocsEditable() |
| 549 static const int COLOR_ATTACHMENT11_EXT = 0x8CEB; | 549 static const int COLOR_ATTACHMENT11_WEBGL = 0x8CEB; |
| 550 | 550 |
| 551 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT12_EXT') | 551 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT12_WEBGL') |
| 552 @DocsEditable() | 552 @DocsEditable() |
| 553 static const int COLOR_ATTACHMENT12_EXT = 0x8CEC; | 553 static const int COLOR_ATTACHMENT12_WEBGL = 0x8CEC; |
| 554 | 554 |
| 555 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT13_EXT') | 555 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT13_WEBGL') |
| 556 @DocsEditable() | 556 @DocsEditable() |
| 557 static const int COLOR_ATTACHMENT13_EXT = 0x8CED; | 557 static const int COLOR_ATTACHMENT13_WEBGL = 0x8CED; |
| 558 | 558 |
| 559 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT14_EXT') | 559 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT14_WEBGL') |
| 560 @DocsEditable() | 560 @DocsEditable() |
| 561 static const int COLOR_ATTACHMENT14_EXT = 0x8CEE; | 561 static const int COLOR_ATTACHMENT14_WEBGL = 0x8CEE; |
| 562 | 562 |
| 563 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT15_EXT') | 563 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT15_WEBGL') |
| 564 @DocsEditable() | 564 @DocsEditable() |
| 565 static const int COLOR_ATTACHMENT15_EXT = 0x8CEF; | 565 static const int COLOR_ATTACHMENT15_WEBGL = 0x8CEF; |
| 566 | 566 |
| 567 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT1_EXT') | 567 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT1_WEBGL') |
| 568 @DocsEditable() | 568 @DocsEditable() |
| 569 static const int COLOR_ATTACHMENT1_EXT = 0x8CE1; | 569 static const int COLOR_ATTACHMENT1_WEBGL = 0x8CE1; |
| 570 | 570 |
| 571 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT2_EXT') | 571 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT2_WEBGL') |
| 572 @DocsEditable() | 572 @DocsEditable() |
| 573 static const int COLOR_ATTACHMENT2_EXT = 0x8CE2; | 573 static const int COLOR_ATTACHMENT2_WEBGL = 0x8CE2; |
| 574 | 574 |
| 575 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT3_EXT') | 575 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT3_WEBGL') |
| 576 @DocsEditable() | 576 @DocsEditable() |
| 577 static const int COLOR_ATTACHMENT3_EXT = 0x8CE3; | 577 static const int COLOR_ATTACHMENT3_WEBGL = 0x8CE3; |
| 578 | 578 |
| 579 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT4_EXT') | 579 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT4_WEBGL') |
| 580 @DocsEditable() | 580 @DocsEditable() |
| 581 static const int COLOR_ATTACHMENT4_EXT = 0x8CE4; | 581 static const int COLOR_ATTACHMENT4_WEBGL = 0x8CE4; |
| 582 | 582 |
| 583 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT5_EXT') | 583 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT5_WEBGL') |
| 584 @DocsEditable() | 584 @DocsEditable() |
| 585 static const int COLOR_ATTACHMENT5_EXT = 0x8CE5; | 585 static const int COLOR_ATTACHMENT5_WEBGL = 0x8CE5; |
| 586 | 586 |
| 587 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT6_EXT') | 587 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT6_WEBGL') |
| 588 @DocsEditable() | 588 @DocsEditable() |
| 589 static const int COLOR_ATTACHMENT6_EXT = 0x8CE6; | 589 static const int COLOR_ATTACHMENT6_WEBGL = 0x8CE6; |
| 590 | 590 |
| 591 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT7_EXT') | 591 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT7_WEBGL') |
| 592 @DocsEditable() | 592 @DocsEditable() |
| 593 static const int COLOR_ATTACHMENT7_EXT = 0x8CE7; | 593 static const int COLOR_ATTACHMENT7_WEBGL = 0x8CE7; |
| 594 | 594 |
| 595 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT8_EXT') | 595 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT8_WEBGL') |
| 596 @DocsEditable() | 596 @DocsEditable() |
| 597 static const int COLOR_ATTACHMENT8_EXT = 0x8CE8; | 597 static const int COLOR_ATTACHMENT8_WEBGL = 0x8CE8; |
| 598 | 598 |
| 599 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT9_EXT') | 599 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT9_WEBGL') |
| 600 @DocsEditable() | 600 @DocsEditable() |
| 601 static const int COLOR_ATTACHMENT9_EXT = 0x8CE9; | 601 static const int COLOR_ATTACHMENT9_WEBGL = 0x8CE9; |
| 602 | 602 |
| 603 @DomName('EXTDrawBuffers.DRAW_BUFFER0_EXT') | 603 @DomName('WebGLDrawBuffers.DRAW_BUFFER0_WEBGL') |
| 604 @DocsEditable() | 604 @DocsEditable() |
| 605 static const int DRAW_BUFFER0_EXT = 0x8825; | 605 static const int DRAW_BUFFER0_WEBGL = 0x8825; |
| 606 | 606 |
| 607 @DomName('EXTDrawBuffers.DRAW_BUFFER10_EXT') | 607 @DomName('WebGLDrawBuffers.DRAW_BUFFER10_WEBGL') |
| 608 @DocsEditable() | 608 @DocsEditable() |
| 609 static const int DRAW_BUFFER10_EXT = 0x882F; | 609 static const int DRAW_BUFFER10_WEBGL = 0x882F; |
| 610 | 610 |
| 611 @DomName('EXTDrawBuffers.DRAW_BUFFER11_EXT') | 611 @DomName('WebGLDrawBuffers.DRAW_BUFFER11_WEBGL') |
| 612 @DocsEditable() | 612 @DocsEditable() |
| 613 static const int DRAW_BUFFER11_EXT = 0x8830; | 613 static const int DRAW_BUFFER11_WEBGL = 0x8830; |
| 614 | 614 |
| 615 @DomName('EXTDrawBuffers.DRAW_BUFFER12_EXT') | 615 @DomName('WebGLDrawBuffers.DRAW_BUFFER12_WEBGL') |
| 616 @DocsEditable() | 616 @DocsEditable() |
| 617 static const int DRAW_BUFFER12_EXT = 0x8831; | 617 static const int DRAW_BUFFER12_WEBGL = 0x8831; |
| 618 | 618 |
| 619 @DomName('EXTDrawBuffers.DRAW_BUFFER13_EXT') | 619 @DomName('WebGLDrawBuffers.DRAW_BUFFER13_WEBGL') |
| 620 @DocsEditable() | 620 @DocsEditable() |
| 621 static const int DRAW_BUFFER13_EXT = 0x8832; | 621 static const int DRAW_BUFFER13_WEBGL = 0x8832; |
| 622 | 622 |
| 623 @DomName('EXTDrawBuffers.DRAW_BUFFER14_EXT') | 623 @DomName('WebGLDrawBuffers.DRAW_BUFFER14_WEBGL') |
| 624 @DocsEditable() | 624 @DocsEditable() |
| 625 static const int DRAW_BUFFER14_EXT = 0x8833; | 625 static const int DRAW_BUFFER14_WEBGL = 0x8833; |
| 626 | 626 |
| 627 @DomName('EXTDrawBuffers.DRAW_BUFFER15_EXT') | 627 @DomName('WebGLDrawBuffers.DRAW_BUFFER15_WEBGL') |
| 628 @DocsEditable() | 628 @DocsEditable() |
| 629 static const int DRAW_BUFFER15_EXT = 0x8834; | 629 static const int DRAW_BUFFER15_WEBGL = 0x8834; |
| 630 | 630 |
| 631 @DomName('EXTDrawBuffers.DRAW_BUFFER1_EXT') | 631 @DomName('WebGLDrawBuffers.DRAW_BUFFER1_WEBGL') |
| 632 @DocsEditable() | 632 @DocsEditable() |
| 633 static const int DRAW_BUFFER1_EXT = 0x8826; | 633 static const int DRAW_BUFFER1_WEBGL = 0x8826; |
| 634 | 634 |
| 635 @DomName('EXTDrawBuffers.DRAW_BUFFER2_EXT') | 635 @DomName('WebGLDrawBuffers.DRAW_BUFFER2_WEBGL') |
| 636 @DocsEditable() | 636 @DocsEditable() |
| 637 static const int DRAW_BUFFER2_EXT = 0x8827; | 637 static const int DRAW_BUFFER2_WEBGL = 0x8827; |
| 638 | 638 |
| 639 @DomName('EXTDrawBuffers.DRAW_BUFFER3_EXT') | 639 @DomName('WebGLDrawBuffers.DRAW_BUFFER3_WEBGL') |
| 640 @DocsEditable() | 640 @DocsEditable() |
| 641 static const int DRAW_BUFFER3_EXT = 0x8828; | 641 static const int DRAW_BUFFER3_WEBGL = 0x8828; |
| 642 | 642 |
| 643 @DomName('EXTDrawBuffers.DRAW_BUFFER4_EXT') | 643 @DomName('WebGLDrawBuffers.DRAW_BUFFER4_WEBGL') |
| 644 @DocsEditable() | 644 @DocsEditable() |
| 645 static const int DRAW_BUFFER4_EXT = 0x8829; | 645 static const int DRAW_BUFFER4_WEBGL = 0x8829; |
| 646 | 646 |
| 647 @DomName('EXTDrawBuffers.DRAW_BUFFER5_EXT') | 647 @DomName('WebGLDrawBuffers.DRAW_BUFFER5_WEBGL') |
| 648 @DocsEditable() | 648 @DocsEditable() |
| 649 static const int DRAW_BUFFER5_EXT = 0x882A; | 649 static const int DRAW_BUFFER5_WEBGL = 0x882A; |
| 650 | 650 |
| 651 @DomName('EXTDrawBuffers.DRAW_BUFFER6_EXT') | 651 @DomName('WebGLDrawBuffers.DRAW_BUFFER6_WEBGL') |
| 652 @DocsEditable() | 652 @DocsEditable() |
| 653 static const int DRAW_BUFFER6_EXT = 0x882B; | 653 static const int DRAW_BUFFER6_WEBGL = 0x882B; |
| 654 | 654 |
| 655 @DomName('EXTDrawBuffers.DRAW_BUFFER7_EXT') | 655 @DomName('WebGLDrawBuffers.DRAW_BUFFER7_WEBGL') |
| 656 @DocsEditable() | 656 @DocsEditable() |
| 657 static const int DRAW_BUFFER7_EXT = 0x882C; | 657 static const int DRAW_BUFFER7_WEBGL = 0x882C; |
| 658 | 658 |
| 659 @DomName('EXTDrawBuffers.DRAW_BUFFER8_EXT') | 659 @DomName('WebGLDrawBuffers.DRAW_BUFFER8_WEBGL') |
| 660 @DocsEditable() | 660 @DocsEditable() |
| 661 static const int DRAW_BUFFER8_EXT = 0x882D; | 661 static const int DRAW_BUFFER8_WEBGL = 0x882D; |
| 662 | 662 |
| 663 @DomName('EXTDrawBuffers.DRAW_BUFFER9_EXT') | 663 @DomName('WebGLDrawBuffers.DRAW_BUFFER9_WEBGL') |
| 664 @DocsEditable() | 664 @DocsEditable() |
| 665 static const int DRAW_BUFFER9_EXT = 0x882E; | 665 static const int DRAW_BUFFER9_WEBGL = 0x882E; |
| 666 | 666 |
| 667 @DomName('EXTDrawBuffers.MAX_COLOR_ATTACHMENTS_EXT') | 667 @DomName('WebGLDrawBuffers.MAX_COLOR_ATTACHMENTS_WEBGL') |
| 668 @DocsEditable() | 668 @DocsEditable() |
| 669 static const int MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF; | 669 static const int MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF; |
| 670 | 670 |
| 671 @DomName('EXTDrawBuffers.MAX_DRAW_BUFFERS_EXT') | 671 @DomName('WebGLDrawBuffers.MAX_DRAW_BUFFERS_WEBGL') |
| 672 @DocsEditable() | 672 @DocsEditable() |
| 673 static const int MAX_DRAW_BUFFERS_EXT = 0x8824; | 673 static const int MAX_DRAW_BUFFERS_WEBGL = 0x8824; |
| 674 | 674 |
| 675 @JSName('drawBuffersEXT') | 675 @JSName('drawBuffersWEBGL') |
| 676 @DomName('EXTDrawBuffers.drawBuffersEXT') | 676 @DomName('WebGLDrawBuffers.drawBuffersWEBGL') |
| 677 @DocsEditable() | 677 @DocsEditable() |
| 678 void drawBuffersExt(List<int> buffers) native; | 678 void drawBuffersWebgl(List<int> buffers) native; |
| 679 } | 679 } |
| 680 // 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 |
| 681 // 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 |
| 682 // BSD-style license that can be found in the LICENSE file. | 682 // BSD-style license that can be found in the LICENSE file. |
| 683 | 683 |
| 684 | 684 |
| 685 @DocsEditable() | 685 @DocsEditable() |
| 686 @DomName('EXTFragDepth') | 686 @DomName('EXTFragDepth') |
| 687 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ | 687 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ |
| 688 @Experimental() | 688 @Experimental() |
| (...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2791 // for details. All rights reserved. Use of this source code is governed by a | 2791 // for details. All rights reserved. Use of this source code is governed by a |
| 2792 // BSD-style license that can be found in the LICENSE file. | 2792 // BSD-style license that can be found in the LICENSE file. |
| 2793 | 2793 |
| 2794 | 2794 |
| 2795 @DocsEditable() | 2795 @DocsEditable() |
| 2796 @DomName('WebGLVertexArrayObjectOES') | 2796 @DomName('WebGLVertexArrayObjectOES') |
| 2797 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 2797 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 2798 @Experimental() // experimental | 2798 @Experimental() // experimental |
| 2799 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { | 2799 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { |
| 2800 } | 2800 } |
| OLD | NEW |