OLD | NEW |
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' hide deprecated; | 7 import 'dart:_internal' hide deprecated; |
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'; |
11 import 'dart:typed_data'; | 11 import 'dart:typed_data'; |
12 import 'dart:_js_helper' show Creates, JSName, Null, Returns, convertDartClosure
ToJS; | 12 import 'dart:_js_helper' show Creates, JSName, Native, Null, Returns, convertDar
tClosureToJS; |
13 import 'dart:_foreign_helper' show JS; | 13 import 'dart:_foreign_helper' show JS; |
14 import 'dart:_interceptors' show Interceptor, JSExtendableArray; | 14 import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
15 // DO NOT EDIT - unless you are editing documentation as per: | 15 // DO NOT EDIT - unless you are editing documentation as per: |
16 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 16 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
17 // Auto-generated dart:web_gl library. | 17 // Auto-generated dart:web_gl library. |
18 | 18 |
19 | 19 |
20 | 20 |
21 | 21 |
22 | 22 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 const int VIEWPORT = RenderingContext.VIEWPORT; | 322 const int VIEWPORT = RenderingContext.VIEWPORT; |
323 const int ZERO = RenderingContext.ZERO; | 323 const int ZERO = RenderingContext.ZERO; |
324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
325 // for details. All rights reserved. Use of this source code is governed by a | 325 // for details. All rights reserved. Use of this source code is governed by a |
326 // BSD-style license that can be found in the LICENSE file. | 326 // BSD-style license that can be found in the LICENSE file. |
327 | 327 |
328 | 328 |
329 @DocsEditable() | 329 @DocsEditable() |
330 @DomName('WebGLActiveInfo') | 330 @DomName('WebGLActiveInfo') |
331 @Unstable() | 331 @Unstable() |
332 class ActiveInfo extends Interceptor native "WebGLActiveInfo" { | 332 @Native("WebGLActiveInfo") |
| 333 class ActiveInfo extends Interceptor { |
333 // To suppress missing implicit constructor warnings. | 334 // To suppress missing implicit constructor warnings. |
334 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); } | 335 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); } |
335 | 336 |
336 @DomName('WebGLActiveInfo.name') | 337 @DomName('WebGLActiveInfo.name') |
337 @DocsEditable() | 338 @DocsEditable() |
338 final String name; | 339 final String name; |
339 | 340 |
340 @DomName('WebGLActiveInfo.size') | 341 @DomName('WebGLActiveInfo.size') |
341 @DocsEditable() | 342 @DocsEditable() |
342 final int size; | 343 final int size; |
343 | 344 |
344 @DomName('WebGLActiveInfo.type') | 345 @DomName('WebGLActiveInfo.type') |
345 @DocsEditable() | 346 @DocsEditable() |
346 final int type; | 347 final int type; |
347 } | 348 } |
348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
349 // for details. All rights reserved. Use of this source code is governed by a | 350 // for details. All rights reserved. Use of this source code is governed by a |
350 // BSD-style license that can be found in the LICENSE file. | 351 // BSD-style license that can be found in the LICENSE file. |
351 | 352 |
352 | 353 |
353 @DocsEditable() | 354 @DocsEditable() |
354 @DomName('ANGLEInstancedArrays') | 355 @DomName('ANGLEInstancedArrays') |
355 @Experimental() // untriaged | 356 @Experimental() // untriaged |
356 class AngleInstancedArrays extends Interceptor native "ANGLEInstancedArrays" { | 357 @Native("ANGLEInstancedArrays") |
| 358 class AngleInstancedArrays extends Interceptor { |
357 // To suppress missing implicit constructor warnings. | 359 // To suppress missing implicit constructor warnings. |
358 factory AngleInstancedArrays._() { throw new UnsupportedError("Not supported")
; } | 360 factory AngleInstancedArrays._() { throw new UnsupportedError("Not supported")
; } |
359 | 361 |
360 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE') | 362 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE') |
361 @DocsEditable() | 363 @DocsEditable() |
362 @Experimental() // untriaged | 364 @Experimental() // untriaged |
363 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; | 365 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; |
364 | 366 |
365 @JSName('drawArraysInstancedANGLE') | 367 @JSName('drawArraysInstancedANGLE') |
366 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE') | 368 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE') |
(...skipping 14 matching lines...) Expand all Loading... |
381 void vertexAttribDivisorAngle(int index, int divisor) native; | 383 void vertexAttribDivisorAngle(int index, int divisor) native; |
382 } | 384 } |
383 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
384 // for details. All rights reserved. Use of this source code is governed by a | 386 // for details. All rights reserved. Use of this source code is governed by a |
385 // BSD-style license that can be found in the LICENSE file. | 387 // BSD-style license that can be found in the LICENSE file. |
386 | 388 |
387 | 389 |
388 @DocsEditable() | 390 @DocsEditable() |
389 @DomName('WebGLBuffer') | 391 @DomName('WebGLBuffer') |
390 @Unstable() | 392 @Unstable() |
391 class Buffer extends Interceptor native "WebGLBuffer" { | 393 @Native("WebGLBuffer") |
| 394 class Buffer extends Interceptor { |
392 // To suppress missing implicit constructor warnings. | 395 // To suppress missing implicit constructor warnings. |
393 factory Buffer._() { throw new UnsupportedError("Not supported"); } | 396 factory Buffer._() { throw new UnsupportedError("Not supported"); } |
394 } | 397 } |
395 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 398 // 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 | 399 // 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. | 400 // BSD-style license that can be found in the LICENSE file. |
398 | 401 |
399 | 402 |
400 @DocsEditable() | 403 @DocsEditable() |
401 @DomName('WebGLCompressedTextureATC') | 404 @DomName('WebGLCompressedTextureATC') |
402 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc
/ | 405 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc
/ |
403 @Experimental() | 406 @Experimental() |
404 class CompressedTextureAtc extends Interceptor native "WebGLCompressedTextureATC
" { | 407 @Native("WebGLCompressedTextureATC") |
| 408 class CompressedTextureAtc extends Interceptor { |
405 // To suppress missing implicit constructor warnings. | 409 // To suppress missing implicit constructor warnings. |
406 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported")
; } | 410 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported")
; } |
407 | 411 |
408 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') | 412 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') |
409 @DocsEditable() | 413 @DocsEditable() |
410 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; | 414 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; |
411 | 415 |
412 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB
GL') | 416 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB
GL') |
413 @DocsEditable() | 417 @DocsEditable() |
414 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; | 418 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; |
415 | 419 |
416 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') | 420 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') |
417 @DocsEditable() | 421 @DocsEditable() |
418 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; | 422 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; |
419 } | 423 } |
420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 424 // 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 | 425 // 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. | 426 // BSD-style license that can be found in the LICENSE file. |
423 | 427 |
424 | 428 |
425 @DocsEditable() | 429 @DocsEditable() |
426 @DomName('WebGLCompressedTexturePVRTC') | 430 @DomName('WebGLCompressedTexturePVRTC') |
427 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr
tc/ | 431 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr
tc/ |
428 @Experimental() // experimental | 432 @Experimental() // experimental |
429 class CompressedTexturePvrtc extends Interceptor native "WebGLCompressedTextureP
VRTC" { | 433 @Native("WebGLCompressedTexturePVRTC") |
| 434 class CompressedTexturePvrtc extends Interceptor { |
430 // To suppress missing implicit constructor warnings. | 435 // To suppress missing implicit constructor warnings. |
431 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported
"); } | 436 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported
"); } |
432 | 437 |
433 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') | 438 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') |
434 @DocsEditable() | 439 @DocsEditable() |
435 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; | 440 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; |
436 | 441 |
437 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') | 442 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') |
438 @DocsEditable() | 443 @DocsEditable() |
439 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; | 444 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; |
440 | 445 |
441 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') | 446 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') |
442 @DocsEditable() | 447 @DocsEditable() |
443 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; | 448 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; |
444 | 449 |
445 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') | 450 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') |
446 @DocsEditable() | 451 @DocsEditable() |
447 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; | 452 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; |
448 } | 453 } |
449 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
450 // for details. All rights reserved. Use of this source code is governed by a | 455 // for details. All rights reserved. Use of this source code is governed by a |
451 // BSD-style license that can be found in the LICENSE file. | 456 // BSD-style license that can be found in the LICENSE file. |
452 | 457 |
453 | 458 |
454 @DocsEditable() | 459 @DocsEditable() |
455 @DomName('WebGLCompressedTextureS3TC') | 460 @DomName('WebGLCompressedTextureS3TC') |
456 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t
c/ | 461 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t
c/ |
457 @Experimental() // experimental | 462 @Experimental() // experimental |
458 class CompressedTextureS3TC extends Interceptor native "WebGLCompressedTextureS3
TC" { | 463 @Native("WebGLCompressedTextureS3TC") |
| 464 class CompressedTextureS3TC extends Interceptor { |
459 // To suppress missing implicit constructor warnings. | 465 // To suppress missing implicit constructor warnings. |
460 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported"
); } | 466 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported"
); } |
461 | 467 |
462 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') | 468 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') |
463 @DocsEditable() | 469 @DocsEditable() |
464 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; | 470 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; |
465 | 471 |
466 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') | 472 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') |
467 @DocsEditable() | 473 @DocsEditable() |
468 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; | 474 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; |
(...skipping 29 matching lines...) Expand all Loading... |
498 * ignored. | 504 * ignored. |
499 * | 505 * |
500 * If [preserveDrawingBuffer] is `false`, then all contents of the context are | 506 * If [preserveDrawingBuffer] is `false`, then all contents of the context are |
501 * cleared. If `true`, then all values will remain until changed or cleared. | 507 * cleared. If `true`, then all values will remain until changed or cleared. |
502 * | 508 * |
503 * If [stencil] is `true`, then the context has a stencil buffer of at least 8 | 509 * If [stencil] is `true`, then the context has a stencil buffer of at least 8 |
504 * bits. | 510 * bits. |
505 */ | 511 */ |
506 @DomName('WebGLContextAttributes') | 512 @DomName('WebGLContextAttributes') |
507 @Unstable() | 513 @Unstable() |
508 class ContextAttributes extends Interceptor native "WebGLContextAttributes" { | 514 @Native("WebGLContextAttributes") |
| 515 class ContextAttributes extends Interceptor { |
509 // To suppress missing implicit constructor warnings. | 516 // To suppress missing implicit constructor warnings. |
510 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); } | 517 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); } |
511 | 518 |
512 @DomName('WebGLContextAttributes.alpha') | 519 @DomName('WebGLContextAttributes.alpha') |
513 @DocsEditable() | 520 @DocsEditable() |
514 bool alpha; | 521 bool alpha; |
515 | 522 |
516 @DomName('WebGLContextAttributes.antialias') | 523 @DomName('WebGLContextAttributes.antialias') |
517 @DocsEditable() | 524 @DocsEditable() |
518 bool antialias; | 525 bool antialias; |
(...skipping 20 matching lines...) Expand all Loading... |
539 bool stencil; | 546 bool stencil; |
540 } | 547 } |
541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
542 // for details. All rights reserved. Use of this source code is governed by a | 549 // for details. All rights reserved. Use of this source code is governed by a |
543 // BSD-style license that can be found in the LICENSE file. | 550 // BSD-style license that can be found in the LICENSE file. |
544 | 551 |
545 | 552 |
546 @DocsEditable() | 553 @DocsEditable() |
547 @DomName('WebGLContextEvent') | 554 @DomName('WebGLContextEvent') |
548 @Unstable() | 555 @Unstable() |
549 class ContextEvent extends Event native "WebGLContextEvent" { | 556 @Native("WebGLContextEvent") |
| 557 class ContextEvent extends Event { |
550 // To suppress missing implicit constructor warnings. | 558 // To suppress missing implicit constructor warnings. |
551 factory ContextEvent._() { throw new UnsupportedError("Not supported"); } | 559 factory ContextEvent._() { throw new UnsupportedError("Not supported"); } |
552 | 560 |
553 @DomName('WebGLContextEvent.statusMessage') | 561 @DomName('WebGLContextEvent.statusMessage') |
554 @DocsEditable() | 562 @DocsEditable() |
555 final String statusMessage; | 563 final String statusMessage; |
556 } | 564 } |
557 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
558 // for details. All rights reserved. Use of this source code is governed by a | 566 // for details. All rights reserved. Use of this source code is governed by a |
559 // BSD-style license that can be found in the LICENSE file. | 567 // BSD-style license that can be found in the LICENSE file. |
560 | 568 |
561 | 569 |
562 @DocsEditable() | 570 @DocsEditable() |
563 @DomName('WebGLDebugRendererInfo') | 571 @DomName('WebGLDebugRendererInfo') |
564 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ | 572 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ |
565 @Experimental() // experimental | 573 @Experimental() // experimental |
566 class DebugRendererInfo extends Interceptor native "WebGLDebugRendererInfo" { | 574 @Native("WebGLDebugRendererInfo") |
| 575 class DebugRendererInfo extends Interceptor { |
567 // To suppress missing implicit constructor warnings. | 576 // To suppress missing implicit constructor warnings. |
568 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); } | 577 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); } |
569 | 578 |
570 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') | 579 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') |
571 @DocsEditable() | 580 @DocsEditable() |
572 static const int UNMASKED_RENDERER_WEBGL = 0x9246; | 581 static const int UNMASKED_RENDERER_WEBGL = 0x9246; |
573 | 582 |
574 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') | 583 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') |
575 @DocsEditable() | 584 @DocsEditable() |
576 static const int UNMASKED_VENDOR_WEBGL = 0x9245; | 585 static const int UNMASKED_VENDOR_WEBGL = 0x9245; |
577 } | 586 } |
578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
579 // for details. All rights reserved. Use of this source code is governed by a | 588 // for details. All rights reserved. Use of this source code is governed by a |
580 // BSD-style license that can be found in the LICENSE file. | 589 // BSD-style license that can be found in the LICENSE file. |
581 | 590 |
582 | 591 |
583 @DocsEditable() | 592 @DocsEditable() |
584 @DomName('WebGLDebugShaders') | 593 @DomName('WebGLDebugShaders') |
585 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ | 594 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ |
586 @Experimental() // experimental | 595 @Experimental() // experimental |
587 class DebugShaders extends Interceptor native "WebGLDebugShaders" { | 596 @Native("WebGLDebugShaders") |
| 597 class DebugShaders extends Interceptor { |
588 // To suppress missing implicit constructor warnings. | 598 // To suppress missing implicit constructor warnings. |
589 factory DebugShaders._() { throw new UnsupportedError("Not supported"); } | 599 factory DebugShaders._() { throw new UnsupportedError("Not supported"); } |
590 | 600 |
591 @DomName('WebGLDebugShaders.getTranslatedShaderSource') | 601 @DomName('WebGLDebugShaders.getTranslatedShaderSource') |
592 @DocsEditable() | 602 @DocsEditable() |
593 String getTranslatedShaderSource(Shader shader) native; | 603 String getTranslatedShaderSource(Shader shader) native; |
594 } | 604 } |
595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
596 // for details. All rights reserved. Use of this source code is governed by a | 606 // for details. All rights reserved. Use of this source code is governed by a |
597 // BSD-style license that can be found in the LICENSE file. | 607 // BSD-style license that can be found in the LICENSE file. |
598 | 608 |
599 | 609 |
600 @DocsEditable() | 610 @DocsEditable() |
601 @DomName('WebGLDepthTexture') | 611 @DomName('WebGLDepthTexture') |
602 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ | 612 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ |
603 @Experimental() // experimental | 613 @Experimental() // experimental |
604 class DepthTexture extends Interceptor native "WebGLDepthTexture" { | 614 @Native("WebGLDepthTexture") |
| 615 class DepthTexture extends Interceptor { |
605 // To suppress missing implicit constructor warnings. | 616 // To suppress missing implicit constructor warnings. |
606 factory DepthTexture._() { throw new UnsupportedError("Not supported"); } | 617 factory DepthTexture._() { throw new UnsupportedError("Not supported"); } |
607 | 618 |
608 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') | 619 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') |
609 @DocsEditable() | 620 @DocsEditable() |
610 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; | 621 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; |
611 } | 622 } |
612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
613 // for details. All rights reserved. Use of this source code is governed by a | 624 // for details. All rights reserved. Use of this source code is governed by a |
614 // BSD-style license that can be found in the LICENSE file. | 625 // BSD-style license that can be found in the LICENSE file. |
615 | 626 |
616 | 627 |
617 @DocsEditable() | 628 @DocsEditable() |
618 @DomName('WebGLDrawBuffers') | 629 @DomName('WebGLDrawBuffers') |
619 // http://www.khronos.org/registry/webgl/specs/latest/ | 630 // http://www.khronos.org/registry/webgl/specs/latest/ |
620 @Experimental() // stable | 631 @Experimental() // stable |
621 class DrawBuffers extends Interceptor native "WebGLDrawBuffers" { | 632 @Native("WebGLDrawBuffers") |
| 633 class DrawBuffers extends Interceptor { |
622 // To suppress missing implicit constructor warnings. | 634 // To suppress missing implicit constructor warnings. |
623 factory DrawBuffers._() { throw new UnsupportedError("Not supported"); } | 635 factory DrawBuffers._() { throw new UnsupportedError("Not supported"); } |
624 | 636 |
625 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') | 637 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') |
626 @DocsEditable() | 638 @DocsEditable() |
627 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; | 639 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; |
628 | 640 |
629 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL') | 641 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL') |
630 @DocsEditable() | 642 @DocsEditable() |
631 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA; | 643 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 } | 777 } |
766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
767 // for details. All rights reserved. Use of this source code is governed by a | 779 // for details. All rights reserved. Use of this source code is governed by a |
768 // BSD-style license that can be found in the LICENSE file. | 780 // BSD-style license that can be found in the LICENSE file. |
769 | 781 |
770 | 782 |
771 @DocsEditable() | 783 @DocsEditable() |
772 @DomName('EXTFragDepth') | 784 @DomName('EXTFragDepth') |
773 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ | 785 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ |
774 @Experimental() | 786 @Experimental() |
775 class ExtFragDepth extends Interceptor native "EXTFragDepth" { | 787 @Native("EXTFragDepth") |
| 788 class ExtFragDepth extends Interceptor { |
776 // To suppress missing implicit constructor warnings. | 789 // To suppress missing implicit constructor warnings. |
777 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); } | 790 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); } |
778 } | 791 } |
779 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 792 // 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 | 793 // 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. | 794 // BSD-style license that can be found in the LICENSE file. |
782 | 795 |
783 | 796 |
784 @DocsEditable() | 797 @DocsEditable() |
785 @DomName('EXTTextureFilterAnisotropic') | 798 @DomName('EXTTextureFilterAnisotropic') |
786 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop
ic/ | 799 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop
ic/ |
787 @Experimental() | 800 @Experimental() |
788 class ExtTextureFilterAnisotropic extends Interceptor native "EXTTextureFilterAn
isotropic" { | 801 @Native("EXTTextureFilterAnisotropic") |
| 802 class ExtTextureFilterAnisotropic extends Interceptor { |
789 // To suppress missing implicit constructor warnings. | 803 // To suppress missing implicit constructor warnings. |
790 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp
orted"); } | 804 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp
orted"); } |
791 | 805 |
792 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') | 806 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') |
793 @DocsEditable() | 807 @DocsEditable() |
794 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; | 808 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
795 | 809 |
796 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') | 810 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') |
797 @DocsEditable() | 811 @DocsEditable() |
798 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; | 812 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
799 } | 813 } |
800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
801 // for details. All rights reserved. Use of this source code is governed by a | 815 // for details. All rights reserved. Use of this source code is governed by a |
802 // BSD-style license that can be found in the LICENSE file. | 816 // BSD-style license that can be found in the LICENSE file. |
803 | 817 |
804 | 818 |
805 @DocsEditable() | 819 @DocsEditable() |
806 @DomName('WebGLFramebuffer') | 820 @DomName('WebGLFramebuffer') |
807 @Unstable() | 821 @Unstable() |
808 class Framebuffer extends Interceptor native "WebGLFramebuffer" { | 822 @Native("WebGLFramebuffer") |
| 823 class Framebuffer extends Interceptor { |
809 // To suppress missing implicit constructor warnings. | 824 // To suppress missing implicit constructor warnings. |
810 factory Framebuffer._() { throw new UnsupportedError("Not supported"); } | 825 factory Framebuffer._() { throw new UnsupportedError("Not supported"); } |
811 } | 826 } |
812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 827 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
813 // for details. All rights reserved. Use of this source code is governed by a | 828 // for details. All rights reserved. Use of this source code is governed by a |
814 // BSD-style license that can be found in the LICENSE file. | 829 // BSD-style license that can be found in the LICENSE file. |
815 | 830 |
816 | 831 |
817 @DocsEditable() | 832 @DocsEditable() |
818 @DomName('WebGLLoseContext') | 833 @DomName('WebGLLoseContext') |
819 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ | 834 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ |
820 @Experimental() | 835 @Experimental() |
821 class LoseContext extends Interceptor native "WebGLLoseContext,WebGLExtensionLos
eContext" { | 836 @Native("WebGLLoseContext,WebGLExtensionLoseContext") |
| 837 class LoseContext extends Interceptor { |
822 // To suppress missing implicit constructor warnings. | 838 // To suppress missing implicit constructor warnings. |
823 factory LoseContext._() { throw new UnsupportedError("Not supported"); } | 839 factory LoseContext._() { throw new UnsupportedError("Not supported"); } |
824 | 840 |
825 @DomName('WebGLLoseContext.loseContext') | 841 @DomName('WebGLLoseContext.loseContext') |
826 @DocsEditable() | 842 @DocsEditable() |
827 void loseContext() native; | 843 void loseContext() native; |
828 | 844 |
829 @DomName('WebGLLoseContext.restoreContext') | 845 @DomName('WebGLLoseContext.restoreContext') |
830 @DocsEditable() | 846 @DocsEditable() |
831 void restoreContext() native; | 847 void restoreContext() native; |
832 } | 848 } |
833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
834 // for details. All rights reserved. Use of this source code is governed by a | 850 // for details. All rights reserved. Use of this source code is governed by a |
835 // BSD-style license that can be found in the LICENSE file. | 851 // BSD-style license that can be found in the LICENSE file. |
836 | 852 |
837 | 853 |
838 @DocsEditable() | 854 @DocsEditable() |
839 @DomName('OESElementIndexUint') | 855 @DomName('OESElementIndexUint') |
840 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ | 856 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ |
841 @Experimental() // experimental | 857 @Experimental() // experimental |
842 class OesElementIndexUint extends Interceptor native "OESElementIndexUint" { | 858 @Native("OESElementIndexUint") |
| 859 class OesElementIndexUint extends Interceptor { |
843 // To suppress missing implicit constructor warnings. | 860 // To suppress missing implicit constructor warnings. |
844 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported");
} | 861 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported");
} |
845 } | 862 } |
846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 863 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
847 // for details. All rights reserved. Use of this source code is governed by a | 864 // for details. All rights reserved. Use of this source code is governed by a |
848 // BSD-style license that can be found in the LICENSE file. | 865 // BSD-style license that can be found in the LICENSE file. |
849 | 866 |
850 | 867 |
851 @DocsEditable() | 868 @DocsEditable() |
852 @DomName('OESStandardDerivatives') | 869 @DomName('OESStandardDerivatives') |
853 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ | 870 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ |
854 @Experimental() // experimental | 871 @Experimental() // experimental |
855 class OesStandardDerivatives extends Interceptor native "OESStandardDerivatives"
{ | 872 @Native("OESStandardDerivatives") |
| 873 class OesStandardDerivatives extends Interceptor { |
856 // To suppress missing implicit constructor warnings. | 874 // To suppress missing implicit constructor warnings. |
857 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported
"); } | 875 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported
"); } |
858 | 876 |
859 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') | 877 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') |
860 @DocsEditable() | 878 @DocsEditable() |
861 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; | 879 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
862 } | 880 } |
863 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
864 // for details. All rights reserved. Use of this source code is governed by a | 882 // for details. All rights reserved. Use of this source code is governed by a |
865 // BSD-style license that can be found in the LICENSE file. | 883 // BSD-style license that can be found in the LICENSE file. |
866 | 884 |
867 | 885 |
868 @DocsEditable() | 886 @DocsEditable() |
869 @DomName('OESTextureFloat') | 887 @DomName('OESTextureFloat') |
870 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ | 888 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ |
871 @Experimental() // experimental | 889 @Experimental() // experimental |
872 class OesTextureFloat extends Interceptor native "OESTextureFloat" { | 890 @Native("OESTextureFloat") |
| 891 class OesTextureFloat extends Interceptor { |
873 // To suppress missing implicit constructor warnings. | 892 // To suppress missing implicit constructor warnings. |
874 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); } | 893 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); } |
875 } | 894 } |
876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
877 // for details. All rights reserved. Use of this source code is governed by a | 896 // for details. All rights reserved. Use of this source code is governed by a |
878 // BSD-style license that can be found in the LICENSE file. | 897 // BSD-style license that can be found in the LICENSE file. |
879 | 898 |
880 | 899 |
881 @DocsEditable() | 900 @DocsEditable() |
882 @DomName('OESTextureFloatLinear') | 901 @DomName('OESTextureFloatLinear') |
883 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ | 902 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ |
884 @Experimental() | 903 @Experimental() |
885 class OesTextureFloatLinear extends Interceptor native "OESTextureFloatLinear" { | 904 @Native("OESTextureFloatLinear") |
| 905 class OesTextureFloatLinear extends Interceptor { |
886 // To suppress missing implicit constructor warnings. | 906 // To suppress missing implicit constructor warnings. |
887 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported"
); } | 907 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported"
); } |
888 } | 908 } |
889 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
890 // for details. All rights reserved. Use of this source code is governed by a | 910 // for details. All rights reserved. Use of this source code is governed by a |
891 // BSD-style license that can be found in the LICENSE file. | 911 // BSD-style license that can be found in the LICENSE file. |
892 | 912 |
893 | 913 |
894 @DocsEditable() | 914 @DocsEditable() |
895 @DomName('OESTextureHalfFloat') | 915 @DomName('OESTextureHalfFloat') |
896 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ | 916 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ |
897 @Experimental() // experimental | 917 @Experimental() // experimental |
898 class OesTextureHalfFloat extends Interceptor native "OESTextureHalfFloat" { | 918 @Native("OESTextureHalfFloat") |
| 919 class OesTextureHalfFloat extends Interceptor { |
899 // To suppress missing implicit constructor warnings. | 920 // To suppress missing implicit constructor warnings. |
900 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported");
} | 921 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported");
} |
901 | 922 |
902 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') | 923 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') |
903 @DocsEditable() | 924 @DocsEditable() |
904 static const int HALF_FLOAT_OES = 0x8D61; | 925 static const int HALF_FLOAT_OES = 0x8D61; |
905 } | 926 } |
906 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 927 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
907 // for details. All rights reserved. Use of this source code is governed by a | 928 // for details. All rights reserved. Use of this source code is governed by a |
908 // BSD-style license that can be found in the LICENSE file. | 929 // BSD-style license that can be found in the LICENSE file. |
909 | 930 |
910 | 931 |
911 @DocsEditable() | 932 @DocsEditable() |
912 @DomName('OESTextureHalfFloatLinear') | 933 @DomName('OESTextureHalfFloatLinear') |
913 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea
r/ | 934 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea
r/ |
914 @Experimental() | 935 @Experimental() |
915 class OesTextureHalfFloatLinear extends Interceptor native "OESTextureHalfFloatL
inear" { | 936 @Native("OESTextureHalfFloatLinear") |
| 937 class OesTextureHalfFloatLinear extends Interceptor { |
916 // To suppress missing implicit constructor warnings. | 938 // To suppress missing implicit constructor warnings. |
917 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor
ted"); } | 939 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor
ted"); } |
918 } | 940 } |
919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
920 // for details. All rights reserved. Use of this source code is governed by a | 942 // for details. All rights reserved. Use of this source code is governed by a |
921 // BSD-style license that can be found in the LICENSE file. | 943 // BSD-style license that can be found in the LICENSE file. |
922 | 944 |
923 | 945 |
924 @DocsEditable() | 946 @DocsEditable() |
925 @DomName('OESVertexArrayObject') | 947 @DomName('OESVertexArrayObject') |
926 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 948 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
927 @Experimental() // experimental | 949 @Experimental() // experimental |
928 class OesVertexArrayObject extends Interceptor native "OESVertexArrayObject" { | 950 @Native("OESVertexArrayObject") |
| 951 class OesVertexArrayObject extends Interceptor { |
929 // To suppress missing implicit constructor warnings. | 952 // To suppress missing implicit constructor warnings. |
930 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported")
; } | 953 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported")
; } |
931 | 954 |
932 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') | 955 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') |
933 @DocsEditable() | 956 @DocsEditable() |
934 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; | 957 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
935 | 958 |
936 @JSName('bindVertexArrayOES') | 959 @JSName('bindVertexArrayOES') |
937 @DomName('OESVertexArrayObject.bindVertexArrayOES') | 960 @DomName('OESVertexArrayObject.bindVertexArrayOES') |
938 @DocsEditable() | 961 @DocsEditable() |
(...skipping 15 matching lines...) Expand all Loading... |
954 bool isVertexArray(VertexArrayObject arrayObject) native; | 977 bool isVertexArray(VertexArrayObject arrayObject) native; |
955 } | 978 } |
956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 979 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
957 // for details. All rights reserved. Use of this source code is governed by a | 980 // for details. All rights reserved. Use of this source code is governed by a |
958 // BSD-style license that can be found in the LICENSE file. | 981 // BSD-style license that can be found in the LICENSE file. |
959 | 982 |
960 | 983 |
961 @DocsEditable() | 984 @DocsEditable() |
962 @DomName('WebGLProgram') | 985 @DomName('WebGLProgram') |
963 @Unstable() | 986 @Unstable() |
964 class Program extends Interceptor native "WebGLProgram" { | 987 @Native("WebGLProgram") |
| 988 class Program extends Interceptor { |
965 // To suppress missing implicit constructor warnings. | 989 // To suppress missing implicit constructor warnings. |
966 factory Program._() { throw new UnsupportedError("Not supported"); } | 990 factory Program._() { throw new UnsupportedError("Not supported"); } |
967 } | 991 } |
968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 992 // 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 | 993 // 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. | 994 // BSD-style license that can be found in the LICENSE file. |
971 | 995 |
972 | 996 |
973 @DocsEditable() | 997 @DocsEditable() |
974 @DomName('WebGLRenderbuffer') | 998 @DomName('WebGLRenderbuffer') |
975 @Unstable() | 999 @Unstable() |
976 class Renderbuffer extends Interceptor native "WebGLRenderbuffer" { | 1000 @Native("WebGLRenderbuffer") |
| 1001 class Renderbuffer extends Interceptor { |
977 // To suppress missing implicit constructor warnings. | 1002 // To suppress missing implicit constructor warnings. |
978 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); } | 1003 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); } |
979 } | 1004 } |
980 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1005 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
981 // for details. All rights reserved. Use of this source code is governed by a | 1006 // for details. All rights reserved. Use of this source code is governed by a |
982 // BSD-style license that can be found in the LICENSE file. | 1007 // BSD-style license that can be found in the LICENSE file. |
983 | 1008 |
984 | 1009 |
985 @DomName('WebGLRenderingContext') | 1010 @DomName('WebGLRenderingContext') |
986 @SupportedBrowser(SupportedBrowser.CHROME) | 1011 @SupportedBrowser(SupportedBrowser.CHROME) |
987 @SupportedBrowser(SupportedBrowser.FIREFOX) | 1012 @SupportedBrowser(SupportedBrowser.FIREFOX) |
988 @Experimental() | 1013 @Experimental() |
989 @Unstable() | 1014 @Unstable() |
990 class RenderingContext extends CanvasRenderingContext native "WebGLRenderingCont
ext" { | 1015 @Native("WebGLRenderingContext") |
| 1016 class RenderingContext extends CanvasRenderingContext { |
991 // To suppress missing implicit constructor warnings. | 1017 // To suppress missing implicit constructor warnings. |
992 factory RenderingContext._() { throw new UnsupportedError("Not supported"); } | 1018 factory RenderingContext._() { throw new UnsupportedError("Not supported"); } |
993 | 1019 |
994 /// Checks if this type is supported on the current platform. | 1020 /// Checks if this type is supported on the current platform. |
995 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); | 1021 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); |
996 | 1022 |
997 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') | 1023 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') |
998 @DocsEditable() | 1024 @DocsEditable() |
999 static const int ACTIVE_ATTRIBUTES = 0x8B89; | 1025 static const int ACTIVE_ATTRIBUTES = 0x8B89; |
1000 | 1026 |
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3173 int xOffset, int yOffset, int width, int height, int border, int format, | 3199 int xOffset, int yOffset, int width, int height, int border, int format, |
3174 int type, TypedData data) native; | 3200 int type, TypedData data) native; |
3175 } | 3201 } |
3176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3177 // for details. All rights reserved. Use of this source code is governed by a | 3203 // for details. All rights reserved. Use of this source code is governed by a |
3178 // BSD-style license that can be found in the LICENSE file. | 3204 // BSD-style license that can be found in the LICENSE file. |
3179 | 3205 |
3180 | 3206 |
3181 @DocsEditable() | 3207 @DocsEditable() |
3182 @DomName('WebGLShader') | 3208 @DomName('WebGLShader') |
3183 class Shader extends Interceptor native "WebGLShader" { | 3209 @Native("WebGLShader") |
| 3210 class Shader extends Interceptor { |
3184 // To suppress missing implicit constructor warnings. | 3211 // To suppress missing implicit constructor warnings. |
3185 factory Shader._() { throw new UnsupportedError("Not supported"); } | 3212 factory Shader._() { throw new UnsupportedError("Not supported"); } |
3186 } | 3213 } |
3187 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3214 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3188 // for details. All rights reserved. Use of this source code is governed by a | 3215 // for details. All rights reserved. Use of this source code is governed by a |
3189 // BSD-style license that can be found in the LICENSE file. | 3216 // BSD-style license that can be found in the LICENSE file. |
3190 | 3217 |
3191 | 3218 |
3192 @DocsEditable() | 3219 @DocsEditable() |
3193 @DomName('WebGLShaderPrecisionFormat') | 3220 @DomName('WebGLShaderPrecisionFormat') |
3194 class ShaderPrecisionFormat extends Interceptor native "WebGLShaderPrecisionForm
at" { | 3221 @Native("WebGLShaderPrecisionFormat") |
| 3222 class ShaderPrecisionFormat extends Interceptor { |
3195 // To suppress missing implicit constructor warnings. | 3223 // To suppress missing implicit constructor warnings. |
3196 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported"
); } | 3224 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported"
); } |
3197 | 3225 |
3198 @DomName('WebGLShaderPrecisionFormat.precision') | 3226 @DomName('WebGLShaderPrecisionFormat.precision') |
3199 @DocsEditable() | 3227 @DocsEditable() |
3200 final int precision; | 3228 final int precision; |
3201 | 3229 |
3202 @DomName('WebGLShaderPrecisionFormat.rangeMax') | 3230 @DomName('WebGLShaderPrecisionFormat.rangeMax') |
3203 @DocsEditable() | 3231 @DocsEditable() |
3204 final int rangeMax; | 3232 final int rangeMax; |
3205 | 3233 |
3206 @DomName('WebGLShaderPrecisionFormat.rangeMin') | 3234 @DomName('WebGLShaderPrecisionFormat.rangeMin') |
3207 @DocsEditable() | 3235 @DocsEditable() |
3208 final int rangeMin; | 3236 final int rangeMin; |
3209 } | 3237 } |
3210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3211 // for details. All rights reserved. Use of this source code is governed by a | 3239 // for details. All rights reserved. Use of this source code is governed by a |
3212 // BSD-style license that can be found in the LICENSE file. | 3240 // BSD-style license that can be found in the LICENSE file. |
3213 | 3241 |
3214 | 3242 |
3215 @DocsEditable() | 3243 @DocsEditable() |
3216 @DomName('WebGLTexture') | 3244 @DomName('WebGLTexture') |
3217 class Texture extends Interceptor native "WebGLTexture" { | 3245 @Native("WebGLTexture") |
| 3246 class Texture extends Interceptor { |
3218 // To suppress missing implicit constructor warnings. | 3247 // To suppress missing implicit constructor warnings. |
3219 factory Texture._() { throw new UnsupportedError("Not supported"); } | 3248 factory Texture._() { throw new UnsupportedError("Not supported"); } |
3220 } | 3249 } |
3221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3250 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3222 // for details. All rights reserved. Use of this source code is governed by a | 3251 // for details. All rights reserved. Use of this source code is governed by a |
3223 // BSD-style license that can be found in the LICENSE file. | 3252 // BSD-style license that can be found in the LICENSE file. |
3224 | 3253 |
3225 | 3254 |
3226 @DocsEditable() | 3255 @DocsEditable() |
3227 @DomName('WebGLUniformLocation') | 3256 @DomName('WebGLUniformLocation') |
3228 class UniformLocation extends Interceptor native "WebGLUniformLocation" { | 3257 @Native("WebGLUniformLocation") |
| 3258 class UniformLocation extends Interceptor { |
3229 // To suppress missing implicit constructor warnings. | 3259 // To suppress missing implicit constructor warnings. |
3230 factory UniformLocation._() { throw new UnsupportedError("Not supported"); } | 3260 factory UniformLocation._() { throw new UnsupportedError("Not supported"); } |
3231 } | 3261 } |
3232 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3262 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3233 // for details. All rights reserved. Use of this source code is governed by a | 3263 // for details. All rights reserved. Use of this source code is governed by a |
3234 // BSD-style license that can be found in the LICENSE file. | 3264 // BSD-style license that can be found in the LICENSE file. |
3235 | 3265 |
3236 | 3266 |
3237 @DocsEditable() | 3267 @DocsEditable() |
3238 @DomName('WebGLVertexArrayObjectOES') | 3268 @DomName('WebGLVertexArrayObjectOES') |
3239 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ | 3269 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
3240 @Experimental() // experimental | 3270 @Experimental() // experimental |
3241 class VertexArrayObject extends Interceptor native "WebGLVertexArrayObjectOES" { | 3271 @Native("WebGLVertexArrayObjectOES") |
| 3272 class VertexArrayObject extends Interceptor { |
3242 // To suppress missing implicit constructor warnings. | 3273 // To suppress missing implicit constructor warnings. |
3243 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } | 3274 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } |
3244 } | 3275 } |
OLD | NEW |