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