| 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'; | 4 import 'dart:_collection-dev'; |
| 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 // DO NOT EDIT - unless you are editing documentation as per: | 10 // DO NOT EDIT - unless you are editing documentation as per: |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER; | 316 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER; |
| 317 const int VIEWPORT = RenderingContext.VIEWPORT; | 317 const int VIEWPORT = RenderingContext.VIEWPORT; |
| 318 const int ZERO = RenderingContext.ZERO; | 318 const int ZERO = RenderingContext.ZERO; |
| 319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 320 // for details. All rights reserved. Use of this source code is governed by a | 320 // for details. All rights reserved. Use of this source code is governed by a |
| 321 // BSD-style license that can be found in the LICENSE file. | 321 // BSD-style license that can be found in the LICENSE file. |
| 322 | 322 |
| 323 | 323 |
| 324 @DocsEditable | 324 @DocsEditable |
| 325 @DomName('WebGLActiveInfo') | 325 @DomName('WebGLActiveInfo') |
| 326 @Unstable |
| 326 class ActiveInfo native "WebGLActiveInfo" { | 327 class ActiveInfo native "WebGLActiveInfo" { |
| 327 | 328 |
| 328 @DomName('WebGLActiveInfo.name') | 329 @DomName('WebGLActiveInfo.name') |
| 329 @DocsEditable | 330 @DocsEditable |
| 330 final String name; | 331 final String name; |
| 331 | 332 |
| 332 @DomName('WebGLActiveInfo.size') | 333 @DomName('WebGLActiveInfo.size') |
| 333 @DocsEditable | 334 @DocsEditable |
| 334 final int size; | 335 final int size; |
| 335 | 336 |
| 336 @DomName('WebGLActiveInfo.type') | 337 @DomName('WebGLActiveInfo.type') |
| 337 @DocsEditable | 338 @DocsEditable |
| 338 final int type; | 339 final int type; |
| 339 } | 340 } |
| 340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 341 // for details. All rights reserved. Use of this source code is governed by a | 342 // for details. All rights reserved. Use of this source code is governed by a |
| 342 // BSD-style license that can be found in the LICENSE file. | 343 // BSD-style license that can be found in the LICENSE file. |
| 343 | 344 |
| 344 | 345 |
| 345 @DocsEditable | 346 @DocsEditable |
| 346 @DomName('WebGLBuffer') | 347 @DomName('WebGLBuffer') |
| 348 @Unstable |
| 347 class Buffer native "WebGLBuffer" { | 349 class Buffer native "WebGLBuffer" { |
| 348 } | 350 } |
| 349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 350 // for details. All rights reserved. Use of this source code is governed by a | 352 // for details. All rights reserved. Use of this source code is governed by a |
| 351 // BSD-style license that can be found in the LICENSE file. | 353 // BSD-style license that can be found in the LICENSE file. |
| 352 | 354 |
| 353 | 355 |
| 354 @DocsEditable | 356 @DocsEditable |
| 355 @DomName('WebGLCompressedTextureATC') | 357 @DomName('WebGLCompressedTextureATC') |
| 358 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc
/ |
| 359 @Experimental |
| 356 class CompressedTextureAtc native "WebGLCompressedTextureATC" { | 360 class CompressedTextureAtc native "WebGLCompressedTextureATC" { |
| 357 | 361 |
| 358 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') | 362 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') |
| 359 @DocsEditable | 363 @DocsEditable |
| 360 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; | 364 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; |
| 361 | 365 |
| 362 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB
GL') | 366 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB
GL') |
| 363 @DocsEditable | 367 @DocsEditable |
| 364 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; | 368 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; |
| 365 | 369 |
| 366 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') | 370 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') |
| 367 @DocsEditable | 371 @DocsEditable |
| 368 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; | 372 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; |
| 369 } | 373 } |
| 370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 371 // for details. All rights reserved. Use of this source code is governed by a | 375 // for details. All rights reserved. Use of this source code is governed by a |
| 372 // BSD-style license that can be found in the LICENSE file. | 376 // BSD-style license that can be found in the LICENSE file. |
| 373 | 377 |
| 374 | 378 |
| 375 @DocsEditable | 379 @DocsEditable |
| 376 @DomName('WebGLCompressedTexturePVRTC') | 380 @DomName('WebGLCompressedTexturePVRTC') |
| 381 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr
tc/ |
| 382 @Experimental // experimental |
| 377 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" { | 383 class CompressedTexturePvrtc native "WebGLCompressedTexturePVRTC" { |
| 378 | 384 |
| 379 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') | 385 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') |
| 380 @DocsEditable | 386 @DocsEditable |
| 381 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; | 387 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; |
| 382 | 388 |
| 383 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') | 389 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') |
| 384 @DocsEditable | 390 @DocsEditable |
| 385 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; | 391 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; |
| 386 | 392 |
| 387 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') | 393 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') |
| 388 @DocsEditable | 394 @DocsEditable |
| 389 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; | 395 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; |
| 390 | 396 |
| 391 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') | 397 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') |
| 392 @DocsEditable | 398 @DocsEditable |
| 393 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; | 399 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; |
| 394 } | 400 } |
| 395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 401 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 396 // for details. All rights reserved. Use of this source code is governed by a | 402 // for details. All rights reserved. Use of this source code is governed by a |
| 397 // BSD-style license that can be found in the LICENSE file. | 403 // BSD-style license that can be found in the LICENSE file. |
| 398 | 404 |
| 399 | 405 |
| 400 @DocsEditable | 406 @DocsEditable |
| 401 @DomName('WebGLCompressedTextureS3TC') | 407 @DomName('WebGLCompressedTextureS3TC') |
| 408 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t
c/ |
| 409 @Experimental // experimental |
| 402 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" { | 410 class CompressedTextureS3TC native "WebGLCompressedTextureS3TC" { |
| 403 | 411 |
| 404 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') | 412 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') |
| 405 @DocsEditable | 413 @DocsEditable |
| 406 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | 414 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; |
| 407 | 415 |
| 408 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') | 416 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') |
| 409 @DocsEditable | 417 @DocsEditable |
| 410 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | 418 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; |
| 411 | 419 |
| 412 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') | 420 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') |
| 413 @DocsEditable | 421 @DocsEditable |
| 414 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; | 422 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; |
| 415 | 423 |
| 416 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') | 424 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') |
| 417 @DocsEditable | 425 @DocsEditable |
| 418 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; | 426 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; |
| 419 } | 427 } |
| 420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 421 // for details. All rights reserved. Use of this source code is governed by a | 429 // for details. All rights reserved. Use of this source code is governed by a |
| 422 // BSD-style license that can be found in the LICENSE file. | 430 // BSD-style license that can be found in the LICENSE file. |
| 423 | 431 |
| 424 | 432 |
| 425 @DocsEditable | 433 @DocsEditable |
| 426 @DomName('WebGLContextAttributes') | 434 @DomName('WebGLContextAttributes') |
| 435 @Unstable |
| 427 class ContextAttributes native "WebGLContextAttributes" { | 436 class ContextAttributes native "WebGLContextAttributes" { |
| 428 | 437 |
| 429 @DomName('WebGLContextAttributes.alpha') | 438 @DomName('WebGLContextAttributes.alpha') |
| 430 @DocsEditable | 439 @DocsEditable |
| 431 bool alpha; | 440 bool alpha; |
| 432 | 441 |
| 433 @DomName('WebGLContextAttributes.antialias') | 442 @DomName('WebGLContextAttributes.antialias') |
| 434 @DocsEditable | 443 @DocsEditable |
| 435 bool antialias; | 444 bool antialias; |
| 436 | 445 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 450 @DocsEditable | 459 @DocsEditable |
| 451 bool stencil; | 460 bool stencil; |
| 452 } | 461 } |
| 453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 454 // for details. All rights reserved. Use of this source code is governed by a | 463 // for details. All rights reserved. Use of this source code is governed by a |
| 455 // BSD-style license that can be found in the LICENSE file. | 464 // BSD-style license that can be found in the LICENSE file. |
| 456 | 465 |
| 457 | 466 |
| 458 @DocsEditable | 467 @DocsEditable |
| 459 @DomName('WebGLContextEvent') | 468 @DomName('WebGLContextEvent') |
| 469 @Unstable |
| 460 class ContextEvent extends Event native "WebGLContextEvent" { | 470 class ContextEvent extends Event native "WebGLContextEvent" { |
| 461 | 471 |
| 462 @DomName('WebGLContextEvent.statusMessage') | 472 @DomName('WebGLContextEvent.statusMessage') |
| 463 @DocsEditable | 473 @DocsEditable |
| 464 final String statusMessage; | 474 final String statusMessage; |
| 465 } | 475 } |
| 466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 467 // for details. All rights reserved. Use of this source code is governed by a | 477 // for details. All rights reserved. Use of this source code is governed by a |
| 468 // BSD-style license that can be found in the LICENSE file. | 478 // BSD-style license that can be found in the LICENSE file. |
| 469 | 479 |
| 470 | 480 |
| 471 @DocsEditable | 481 @DocsEditable |
| 472 @DomName('WebGLDebugRendererInfo') | 482 @DomName('WebGLDebugRendererInfo') |
| 483 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ |
| 484 @Experimental // experimental |
| 473 class DebugRendererInfo native "WebGLDebugRendererInfo" { | 485 class DebugRendererInfo native "WebGLDebugRendererInfo" { |
| 474 | 486 |
| 475 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') | 487 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') |
| 476 @DocsEditable | 488 @DocsEditable |
| 477 static const int UNMASKED_RENDERER_WEBGL = 0x9246; | 489 static const int UNMASKED_RENDERER_WEBGL = 0x9246; |
| 478 | 490 |
| 479 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') | 491 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') |
| 480 @DocsEditable | 492 @DocsEditable |
| 481 static const int UNMASKED_VENDOR_WEBGL = 0x9245; | 493 static const int UNMASKED_VENDOR_WEBGL = 0x9245; |
| 482 } | 494 } |
| 483 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 495 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 484 // for details. All rights reserved. Use of this source code is governed by a | 496 // for details. All rights reserved. Use of this source code is governed by a |
| 485 // BSD-style license that can be found in the LICENSE file. | 497 // BSD-style license that can be found in the LICENSE file. |
| 486 | 498 |
| 487 | 499 |
| 488 @DocsEditable | 500 @DocsEditable |
| 489 @DomName('WebGLDebugShaders') | 501 @DomName('WebGLDebugShaders') |
| 502 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ |
| 503 @Experimental // experimental |
| 490 class DebugShaders native "WebGLDebugShaders" { | 504 class DebugShaders native "WebGLDebugShaders" { |
| 491 | 505 |
| 492 @DomName('WebGLDebugShaders.getTranslatedShaderSource') | 506 @DomName('WebGLDebugShaders.getTranslatedShaderSource') |
| 493 @DocsEditable | 507 @DocsEditable |
| 494 String getTranslatedShaderSource(Shader shader) native; | 508 String getTranslatedShaderSource(Shader shader) native; |
| 495 } | 509 } |
| 496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 497 // for details. All rights reserved. Use of this source code is governed by a | 511 // for details. All rights reserved. Use of this source code is governed by a |
| 498 // BSD-style license that can be found in the LICENSE file. | 512 // BSD-style license that can be found in the LICENSE file. |
| 499 | 513 |
| 500 | 514 |
| 501 @DocsEditable | 515 @DocsEditable |
| 502 @DomName('WebGLDepthTexture') | 516 @DomName('WebGLDepthTexture') |
| 517 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ |
| 518 @Experimental // experimental |
| 503 class DepthTexture native "WebGLDepthTexture" { | 519 class DepthTexture native "WebGLDepthTexture" { |
| 504 | 520 |
| 505 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') | 521 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') |
| 506 @DocsEditable | 522 @DocsEditable |
| 507 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | 523 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; |
| 508 } | 524 } |
| 509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 525 // 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 | 526 // 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. | 527 // BSD-style license that can be found in the LICENSE file. |
| 512 | 528 |
| 513 | 529 |
| 514 @DocsEditable | 530 @DocsEditable |
| 515 @DomName('EXTDrawBuffers') | 531 @DomName('EXTDrawBuffers') |
| 532 // http://www.khronos.org/registry/webgl/specs/latest/ |
| 533 @Experimental // stable |
| 516 class ExtDrawBuffers native "EXTDrawBuffers" { | 534 class ExtDrawBuffers native "EXTDrawBuffers" { |
| 517 | 535 |
| 518 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT') | 536 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT0_EXT') |
| 519 @DocsEditable | 537 @DocsEditable |
| 520 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; | 538 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0; |
| 521 | 539 |
| 522 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT') | 540 @DomName('EXTDrawBuffers.COLOR_ATTACHMENT10_EXT') |
| 523 @DocsEditable | 541 @DocsEditable |
| 524 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; | 542 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA; |
| 525 | 543 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 @DocsEditable | 669 @DocsEditable |
| 652 static const int MAX_DRAW_BUFFERS_EXT = 0x8824; | 670 static const int MAX_DRAW_BUFFERS_EXT = 0x8824; |
| 653 } | 671 } |
| 654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 655 // for details. All rights reserved. Use of this source code is governed by a | 673 // for details. All rights reserved. Use of this source code is governed by a |
| 656 // BSD-style license that can be found in the LICENSE file. | 674 // BSD-style license that can be found in the LICENSE file. |
| 657 | 675 |
| 658 | 676 |
| 659 @DocsEditable | 677 @DocsEditable |
| 660 @DomName('EXTTextureFilterAnisotropic') | 678 @DomName('EXTTextureFilterAnisotropic') |
| 679 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop
ic/ |
| 680 @Experimental |
| 661 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" { | 681 class ExtTextureFilterAnisotropic native "EXTTextureFilterAnisotropic" { |
| 662 | 682 |
| 663 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') | 683 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') |
| 664 @DocsEditable | 684 @DocsEditable |
| 665 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | 685 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
| 666 | 686 |
| 667 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') | 687 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') |
| 668 @DocsEditable | 688 @DocsEditable |
| 669 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | 689 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
| 670 } | 690 } |
| 671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 672 // for details. All rights reserved. Use of this source code is governed by a | 692 // for details. All rights reserved. Use of this source code is governed by a |
| 673 // BSD-style license that can be found in the LICENSE file. | 693 // BSD-style license that can be found in the LICENSE file. |
| 674 | 694 |
| 675 | 695 |
| 676 @DocsEditable | 696 @DocsEditable |
| 677 @DomName('WebGLFramebuffer') | 697 @DomName('WebGLFramebuffer') |
| 698 @Unstable |
| 678 class Framebuffer native "WebGLFramebuffer" { | 699 class Framebuffer native "WebGLFramebuffer" { |
| 679 } | 700 } |
| 680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 701 // 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 | 702 // 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. | 703 // BSD-style license that can be found in the LICENSE file. |
| 683 | 704 |
| 684 | 705 |
| 685 @DocsEditable | 706 @DocsEditable |
| 686 @DomName('WebGLLoseContext') | 707 @DomName('WebGLLoseContext') |
| 708 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ |
| 709 @Experimental |
| 687 class LoseContext native "WebGLLoseContext" { | 710 class LoseContext native "WebGLLoseContext" { |
| 688 | 711 |
| 689 @DomName('WebGLLoseContext.loseContext') | 712 @DomName('WebGLLoseContext.loseContext') |
| 690 @DocsEditable | 713 @DocsEditable |
| 691 void loseContext() native; | 714 void loseContext() native; |
| 692 | 715 |
| 693 @DomName('WebGLLoseContext.restoreContext') | 716 @DomName('WebGLLoseContext.restoreContext') |
| 694 @DocsEditable | 717 @DocsEditable |
| 695 void restoreContext() native; | 718 void restoreContext() native; |
| 696 } | 719 } |
| 697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 698 // for details. All rights reserved. Use of this source code is governed by a | 721 // for details. All rights reserved. Use of this source code is governed by a |
| 699 // BSD-style license that can be found in the LICENSE file. | 722 // BSD-style license that can be found in the LICENSE file. |
| 700 | 723 |
| 701 | 724 |
| 702 @DocsEditable | 725 @DocsEditable |
| 703 @DomName('OESElementIndexUint') | 726 @DomName('OESElementIndexUint') |
| 727 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ |
| 728 @Experimental // experimental |
| 704 class OesElementIndexUint native "OESElementIndexUint" { | 729 class OesElementIndexUint native "OESElementIndexUint" { |
| 705 } | 730 } |
| 706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 707 // for details. All rights reserved. Use of this source code is governed by a | 732 // for details. All rights reserved. Use of this source code is governed by a |
| 708 // BSD-style license that can be found in the LICENSE file. | 733 // BSD-style license that can be found in the LICENSE file. |
| 709 | 734 |
| 710 | 735 |
| 711 @DocsEditable | 736 @DocsEditable |
| 712 @DomName('OESStandardDerivatives') | 737 @DomName('OESStandardDerivatives') |
| 738 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ |
| 739 @Experimental // experimental |
| 713 class OesStandardDerivatives native "OESStandardDerivatives" { | 740 class OesStandardDerivatives native "OESStandardDerivatives" { |
| 714 | 741 |
| 715 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') | 742 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') |
| 716 @DocsEditable | 743 @DocsEditable |
| 717 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | 744 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
| 718 } | 745 } |
| 719 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 720 // for details. All rights reserved. Use of this source code is governed by a | 747 // for details. All rights reserved. Use of this source code is governed by a |
| 721 // BSD-style license that can be found in the LICENSE file. | 748 // BSD-style license that can be found in the LICENSE file. |
| 722 | 749 |
| 723 | 750 |
| 724 @DocsEditable | 751 @DocsEditable |
| 725 @DomName('OESTextureFloat') | 752 @DomName('OESTextureFloat') |
| 753 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ |
| 754 @Experimental // experimental |
| 726 class OesTextureFloat native "OESTextureFloat" { | 755 class OesTextureFloat native "OESTextureFloat" { |
| 727 } | 756 } |
| 728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 729 // for details. All rights reserved. Use of this source code is governed by a | 758 // for details. All rights reserved. Use of this source code is governed by a |
| 730 // BSD-style license that can be found in the LICENSE file. | 759 // BSD-style license that can be found in the LICENSE file. |
| 731 | 760 |
| 732 | 761 |
| 733 @DocsEditable | 762 @DocsEditable |
| 734 @DomName('OESTextureHalfFloat') | 763 @DomName('OESTextureHalfFloat') |
| 764 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ |
| 765 @Experimental // experimental |
| 735 class OesTextureHalfFloat native "OESTextureHalfFloat" { | 766 class OesTextureHalfFloat native "OESTextureHalfFloat" { |
| 736 } | 767 } |
| 737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 768 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 738 // for details. All rights reserved. Use of this source code is governed by a | 769 // for details. All rights reserved. Use of this source code is governed by a |
| 739 // BSD-style license that can be found in the LICENSE file. | 770 // BSD-style license that can be found in the LICENSE file. |
| 740 | 771 |
| 741 | 772 |
| 742 @DocsEditable | 773 @DocsEditable |
| 743 @DomName('OESVertexArrayObject') | 774 @DomName('OESVertexArrayObject') |
| 775 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 776 @Experimental // experimental |
| 744 class OesVertexArrayObject native "OESVertexArrayObject" { | 777 class OesVertexArrayObject native "OESVertexArrayObject" { |
| 745 | 778 |
| 746 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') | 779 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') |
| 747 @DocsEditable | 780 @DocsEditable |
| 748 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; | 781 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
| 749 | 782 |
| 750 @JSName('bindVertexArrayOES') | 783 @JSName('bindVertexArrayOES') |
| 751 @DomName('OESVertexArrayObject.bindVertexArrayOES') | 784 @DomName('OESVertexArrayObject.bindVertexArrayOES') |
| 752 @DocsEditable | 785 @DocsEditable |
| 753 void bindVertexArray(VertexArrayObject arrayObject) native; | 786 void bindVertexArray(VertexArrayObject arrayObject) native; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 767 @DocsEditable | 800 @DocsEditable |
| 768 bool isVertexArray(VertexArrayObject arrayObject) native; | 801 bool isVertexArray(VertexArrayObject arrayObject) native; |
| 769 } | 802 } |
| 770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 771 // for details. All rights reserved. Use of this source code is governed by a | 804 // for details. All rights reserved. Use of this source code is governed by a |
| 772 // BSD-style license that can be found in the LICENSE file. | 805 // BSD-style license that can be found in the LICENSE file. |
| 773 | 806 |
| 774 | 807 |
| 775 @DocsEditable | 808 @DocsEditable |
| 776 @DomName('WebGLProgram') | 809 @DomName('WebGLProgram') |
| 810 @Unstable |
| 777 class Program native "WebGLProgram" { | 811 class Program native "WebGLProgram" { |
| 778 } | 812 } |
| 779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 813 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 780 // for details. All rights reserved. Use of this source code is governed by a | 814 // for details. All rights reserved. Use of this source code is governed by a |
| 781 // BSD-style license that can be found in the LICENSE file. | 815 // BSD-style license that can be found in the LICENSE file. |
| 782 | 816 |
| 783 | 817 |
| 784 @DocsEditable | 818 @DocsEditable |
| 785 @DomName('WebGLRenderbuffer') | 819 @DomName('WebGLRenderbuffer') |
| 820 @Unstable |
| 786 class Renderbuffer native "WebGLRenderbuffer" { | 821 class Renderbuffer native "WebGLRenderbuffer" { |
| 787 } | 822 } |
| 788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 789 // for details. All rights reserved. Use of this source code is governed by a | 824 // for details. All rights reserved. Use of this source code is governed by a |
| 790 // BSD-style license that can be found in the LICENSE file. | 825 // BSD-style license that can be found in the LICENSE file. |
| 791 | 826 |
| 792 | 827 |
| 793 @DocsEditable | 828 @DocsEditable |
| 794 @DomName('WebGLRenderingContext') | 829 @DomName('WebGLRenderingContext') |
| 795 @SupportedBrowser(SupportedBrowser.CHROME) | 830 @SupportedBrowser(SupportedBrowser.CHROME) |
| 796 @SupportedBrowser(SupportedBrowser.FIREFOX) | 831 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 797 @Experimental | 832 @Experimental |
| 833 @Unstable |
| 798 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
ext" { | 834 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
ext" { |
| 799 | 835 |
| 800 /// Checks if this type is supported on the current platform. | 836 /// Checks if this type is supported on the current platform. |
| 801 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); | 837 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); |
| 802 | 838 |
| 803 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') | 839 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') |
| 804 @DocsEditable | 840 @DocsEditable |
| 805 static const int ACTIVE_ATTRIBUTES = 0x8B89; | 841 static const int ACTIVE_ATTRIBUTES = 0x8B89; |
| 806 | 842 |
| 807 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') | 843 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 @DomName('WebGLRenderingContext.GREATER') | 1227 @DomName('WebGLRenderingContext.GREATER') |
| 1192 @DocsEditable | 1228 @DocsEditable |
| 1193 static const int GREATER = 0x0204; | 1229 static const int GREATER = 0x0204; |
| 1194 | 1230 |
| 1195 @DomName('WebGLRenderingContext.GREEN_BITS') | 1231 @DomName('WebGLRenderingContext.GREEN_BITS') |
| 1196 @DocsEditable | 1232 @DocsEditable |
| 1197 static const int GREEN_BITS = 0x0D53; | 1233 static const int GREEN_BITS = 0x0D53; |
| 1198 | 1234 |
| 1199 @DomName('WebGLRenderingContext.HALF_FLOAT_OES') | 1235 @DomName('WebGLRenderingContext.HALF_FLOAT_OES') |
| 1200 @DocsEditable | 1236 @DocsEditable |
| 1237 @Experimental // nonstandard |
| 1201 static const int HALF_FLOAT_OES = 0x8D61; | 1238 static const int HALF_FLOAT_OES = 0x8D61; |
| 1202 | 1239 |
| 1203 @DomName('WebGLRenderingContext.HIGH_FLOAT') | 1240 @DomName('WebGLRenderingContext.HIGH_FLOAT') |
| 1204 @DocsEditable | 1241 @DocsEditable |
| 1205 static const int HIGH_FLOAT = 0x8DF2; | 1242 static const int HIGH_FLOAT = 0x8DF2; |
| 1206 | 1243 |
| 1207 @DomName('WebGLRenderingContext.HIGH_INT') | 1244 @DomName('WebGLRenderingContext.HIGH_INT') |
| 1208 @DocsEditable | 1245 @DocsEditable |
| 1209 static const int HIGH_INT = 0x8DF5; | 1246 static const int HIGH_INT = 0x8DF5; |
| 1210 | 1247 |
| (...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2353 @DomName('WebGLRenderingContext.polygonOffset') | 2390 @DomName('WebGLRenderingContext.polygonOffset') |
| 2354 @DocsEditable | 2391 @DocsEditable |
| 2355 void polygonOffset(num factor, num units) native; | 2392 void polygonOffset(num factor, num units) native; |
| 2356 | 2393 |
| 2357 @DomName('WebGLRenderingContext.readPixels') | 2394 @DomName('WebGLRenderingContext.readPixels') |
| 2358 @DocsEditable | 2395 @DocsEditable |
| 2359 void readPixels(int x, int y, int width, int height, int format, int type, Typ
edData pixels) native; | 2396 void readPixels(int x, int y, int width, int height, int format, int type, Typ
edData pixels) native; |
| 2360 | 2397 |
| 2361 @DomName('WebGLRenderingContext.releaseShaderCompiler') | 2398 @DomName('WebGLRenderingContext.releaseShaderCompiler') |
| 2362 @DocsEditable | 2399 @DocsEditable |
| 2400 @deprecated // nonstandard |
| 2363 void releaseShaderCompiler() native; | 2401 void releaseShaderCompiler() native; |
| 2364 | 2402 |
| 2365 @DomName('WebGLRenderingContext.renderbufferStorage') | 2403 @DomName('WebGLRenderingContext.renderbufferStorage') |
| 2366 @DocsEditable | 2404 @DocsEditable |
| 2367 void renderbufferStorage(int target, int internalformat, int width, int height
) native; | 2405 void renderbufferStorage(int target, int internalformat, int width, int height
) native; |
| 2368 | 2406 |
| 2369 @DomName('WebGLRenderingContext.sampleCoverage') | 2407 @DomName('WebGLRenderingContext.sampleCoverage') |
| 2370 @DocsEditable | 2408 @DocsEditable |
| 2371 void sampleCoverage(num value, bool invert) native; | 2409 void sampleCoverage(num value, bool invert) native; |
| 2372 | 2410 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2676 @DomName('WebGLUniformLocation') | 2714 @DomName('WebGLUniformLocation') |
| 2677 class UniformLocation native "WebGLUniformLocation" { | 2715 class UniformLocation native "WebGLUniformLocation" { |
| 2678 } | 2716 } |
| 2679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2717 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2680 // for details. All rights reserved. Use of this source code is governed by a | 2718 // for details. All rights reserved. Use of this source code is governed by a |
| 2681 // BSD-style license that can be found in the LICENSE file. | 2719 // BSD-style license that can be found in the LICENSE file. |
| 2682 | 2720 |
| 2683 | 2721 |
| 2684 @DocsEditable | 2722 @DocsEditable |
| 2685 @DomName('WebGLVertexArrayObjectOES') | 2723 @DomName('WebGLVertexArrayObjectOES') |
| 2724 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 2725 @Experimental // experimental |
| 2686 class VertexArrayObject native "WebGLVertexArrayObjectOES" { | 2726 class VertexArrayObject native "WebGLVertexArrayObjectOES" { |
| 2687 } | 2727 } |
| OLD | NEW |