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