Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: modules/webgl/WebGLRenderingContextBase.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/webgl/WebGLRenderingContext.idl ('k') | modules/webgl/WebGLSampler.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 23 matching lines...) Expand all
34 typedef long GLsizei; 34 typedef long GLsizei;
35 typedef long long GLintptr; 35 typedef long long GLintptr;
36 typedef long long GLsizeiptr; 36 typedef long long GLsizeiptr;
37 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. 37 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type.
38 typedef unsigned short GLushort; 38 typedef unsigned short GLushort;
39 typedef unsigned long GLuint; 39 typedef unsigned long GLuint;
40 typedef unrestricted float GLfloat; 40 typedef unrestricted float GLfloat;
41 typedef unrestricted float GLclampf; 41 typedef unrestricted float GLclampf;
42 42
43 [ 43 [
44 // FIXME: [DoNotCheckConstants] and [TypeChecking=(Interface,Unrestricted)] should be applied 44 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface] should be appli ed
45 // to members and not need to be put on implementing interface 45 // to members and not need to be put on implementing interface
46 // DoNotCheckConstants, // need to put on implementing interface 46 // DoNotCheckConstants, // need to put on implementing interface
47 NoInterfaceObject, // Always used on target of 'implements' 47 NoInterfaceObject, // Always used on target of 'implements'
48 // TypeChecking=(Interface,Unrestricted), // need to put on implementing int erface 48 // TypeChecking=Interface, // need to put on implementing interface
49 WillBeGarbageCollected, 49 WillBeGarbageCollected,
50 ] interface WebGLRenderingContextBase { 50 ] interface WebGLRenderingContextBase {
51 51
52 readonly attribute HTMLCanvasElement canvas; 52 readonly attribute HTMLCanvasElement canvas;
53 53
54 /* ClearBufferMask */ 54 /* ClearBufferMask */
55 const GLenum DEPTH_BUFFER_BIT = 0x00000100; 55 const GLenum DEPTH_BUFFER_BIT = 0x00000100;
56 const GLenum STENCIL_BUFFER_BIT = 0x00000400; 56 const GLenum STENCIL_BUFFER_BIT = 0x00000400;
57 const GLenum COLOR_BUFFER_BIT = 0x00004000; 57 const GLenum COLOR_BUFFER_BIT = 0x00004000;
58 58
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 const GLenum INVALID_FRAMEBUFFER_OPERATION = 0x0506; 464 const GLenum INVALID_FRAMEBUFFER_OPERATION = 0x0506;
465 465
466 /* WebGL-specific enums */ 466 /* WebGL-specific enums */
467 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; 467 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240;
468 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; 468 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
469 const GLenum CONTEXT_LOST_WEBGL = 0x9242; 469 const GLenum CONTEXT_LOST_WEBGL = 0x9242;
470 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; 470 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
471 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; 471 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244;
472 472
473 [DartNoAutoScope] readonly attribute GLsizei drawingBufferWidth; 473 readonly attribute GLsizei drawingBufferWidth;
474 [DartNoAutoScope] readonly attribute GLsizei drawingBufferHeight; 474 readonly attribute GLsizei drawingBufferHeight;
475 475
476 [DartNoAutoScope] void activeTexture(GLenum texture); 476 void activeTexture(GLenum texture);
477 [DartNoAutoScope] void attachShader(WebGLProgram? program, WebGLShader? shad er); 477 void attachShader(WebGLProgram? program, WebGLShader? shader);
478 [DartNoAutoScope] void bindAttribLocation(WebGLProgram? program, GLuint inde x, DOMString name); 478 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name) ;
479 [DartNoAutoScope] void bindBuffer(GLenum target, WebGLBuffer? buffer); 479 void bindBuffer(GLenum target, WebGLBuffer? buffer);
480 [DartNoAutoScope] void bindFramebuffer(GLenum target, WebGLFramebuffer? fram ebuffer); 480 void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer);
481 [DartNoAutoScope] void bindRenderbuffer(GLenum target, WebGLRenderbuffer? re nderbuffer); 481 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer);
482 [DartNoAutoScope] void bindTexture(GLenum target, WebGLTexture? texture); 482 void bindTexture(GLenum target, WebGLTexture? texture);
483 [DartNoAutoScope] void blendColor(GLclampf red, GLclampf green, GLclampf blu e, GLclampf alpha); 483 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ;
484 [DartNoAutoScope] void blendEquation(GLenum mode); 484 void blendEquation(GLenum mode);
485 [DartNoAutoScope] void blendEquationSeparate(GLenum modeRGB, GLenum modeAlph a); 485 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
486 [DartNoAutoScope] void blendFunc(GLenum sfactor, GLenum dfactor); 486 void blendFunc(GLenum sfactor, GLenum dfactor);
487 [DartNoAutoScope] void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenu m srcAlpha, GLenum dstAlpha); 487 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
488 // FIXME: should be union type 488 // FIXME: should be union type
489 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 489 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172
490 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); 490 void bufferData(GLenum target, GLsizeiptr size, GLenum usage);
491 void bufferData(GLenum target, ArrayBufferView data, GLenum usage); 491 void bufferData(GLenum target, ArrayBufferView data, GLenum usage);
492 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); 492 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage);
493 void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data); 493 void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data);
494 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data); 494 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data);
495 495
496 [DartNoAutoScope] GLenum checkFramebufferStatus(GLenum target); 496 GLenum checkFramebufferStatus(GLenum target);
497 [DartNoAutoScope] void clear(GLbitfield mask); 497 void clear(GLbitfield mask);
498 [DartNoAutoScope] void clearColor(GLclampf red, GLclampf green, GLclampf blu e, GLclampf alpha); 498 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) ;
499 [DartNoAutoScope] void clearDepth(GLclampf depth); 499 void clearDepth(GLclampf depth);
500 [DartNoAutoScope] void clearStencil(GLint s); 500 void clearStencil(GLint s);
501 [DartNoAutoScope] void colorMask(GLboolean red, GLboolean green, GLboolean b lue, GLboolean alpha); 501 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp ha);
502 [DartNoAutoScope] void compileShader(WebGLShader? shader); 502 void compileShader(WebGLShader? shader);
503 503
504 [DartNoAutoScope] void compressedTexImage2D(GLenum target, GLint level, GLen um internalformat, 504 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
505 GLsizei width, GLsizei height, GLint border, Array BufferView? data); 505 GLsizei width, GLsizei height, GLint border, Array BufferView? data);
506 [DartNoAutoScope] void compressedTexSubImage2D(GLenum target, GLint level, G Lint xoffset, GLint yoffset, 506 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin t yoffset,
507 GLsizei width, GLsizei height, GLenum format, A rrayBufferView? data); 507 GLsizei width, GLsizei height, GLenum format, A rrayBufferView? data);
508 508
509 [DartNoAutoScope] void copyTexImage2D(GLenum target, GLint level, GLenum int ernalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); 509 void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
510 [DartNoAutoScope] void copyTexSubImage2D(GLenum target, GLint level, GLint x offset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); 510 void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoff set, GLint x, GLint y, GLsizei width, GLsizei height);
511 511
512 WebGLBuffer createBuffer(); 512 WebGLBuffer createBuffer();
513 WebGLFramebuffer createFramebuffer(); 513 WebGLFramebuffer createFramebuffer();
514 WebGLProgram createProgram(); 514 WebGLProgram createProgram();
515 WebGLRenderbuffer createRenderbuffer(); 515 WebGLRenderbuffer createRenderbuffer();
516 WebGLShader createShader(GLenum type); 516 WebGLShader createShader(GLenum type);
517 WebGLTexture createTexture(); 517 WebGLTexture createTexture();
518 518
519 [DartNoAutoScope] void cullFace(GLenum mode); 519 void cullFace(GLenum mode);
520 520
521 [DartNoAutoScope] void deleteBuffer(WebGLBuffer? buffer); 521 void deleteBuffer(WebGLBuffer? buffer);
522 [DartNoAutoScope] void deleteFramebuffer(WebGLFramebuffer? framebuffer); 522 void deleteFramebuffer(WebGLFramebuffer? framebuffer);
523 [DartNoAutoScope] void deleteProgram(WebGLProgram? program); 523 void deleteProgram(WebGLProgram? program);
524 [DartNoAutoScope] void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer); 524 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer);
525 [DartNoAutoScope] void deleteShader(WebGLShader? shader); 525 void deleteShader(WebGLShader? shader);
526 [DartNoAutoScope] void deleteTexture(WebGLTexture? texture); 526 void deleteTexture(WebGLTexture? texture);
527 527
528 [DartNoAutoScope] void depthFunc(GLenum func); 528 void depthFunc(GLenum func);
529 [DartNoAutoScope] void depthMask(GLboolean flag); 529 void depthMask(GLboolean flag);
530 [DartNoAutoScope] void depthRange(GLclampf zNear, GLclampf zFar); 530 void depthRange(GLclampf zNear, GLclampf zFar);
531 [DartNoAutoScope] void detachShader(WebGLProgram? program, WebGLShader? shad er); 531 void detachShader(WebGLProgram? program, WebGLShader? shader);
532 [DartNoAutoScope] void disable(GLenum cap); 532 void disable(GLenum cap);
533 [DartNoAutoScope] void disableVertexAttribArray(GLuint index); 533 void disableVertexAttribArray(GLuint index);
534 [DartNoAutoScope] void drawArrays(GLenum mode, GLint first, GLsizei count); 534 void drawArrays(GLenum mode, GLint first, GLsizei count);
535 [DartNoAutoScope] void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); 535 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset);
536 536
537 [DartNoAutoScope] void enable(GLenum cap); 537 void enable(GLenum cap);
538 [DartNoAutoScope] void enableVertexAttribArray(GLuint index); 538 void enableVertexAttribArray(GLuint index);
539 [DartNoAutoScope] void finish(); 539 void finish();
540 [DartNoAutoScope] void flush(); 540 void flush();
541 [DartNoAutoScope] void framebufferRenderbuffer(GLenum target, GLenum attachm ent, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer); 541 void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum render buffertarget, WebGLRenderbuffer? renderbuffer);
542 [DartNoAutoScope] void framebufferTexture2D(GLenum target, GLenum attachment , GLenum textarget, WebGLTexture? texture, GLint level); 542 void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget , WebGLTexture? texture, GLint level);
543 [DartNoAutoScope] void frontFace(GLenum mode); 543 void frontFace(GLenum mode);
544 [DartNoAutoScope] void generateMipmap(GLenum target); 544 void generateMipmap(GLenum target);
545 545
546 [DartNoAutoScope] WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLu int index); 546 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index);
547 [DartNoAutoScope] WebGLActiveInfo getActiveUniform(WebGLProgram? program, GL uint index); 547 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index);
548 548
549 [DartNoAutoScope] sequence<WebGLShader>? getAttachedShaders(WebGLProgram? pr ogram); 549 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program);
550 550
551 [DartNoAutoScope] GLint getAttribLocation(WebGLProgram? program, DOMString n ame); 551 GLint getAttribLocation(WebGLProgram? program, DOMString name);
552 552
553 [Custom] any getBufferParameter(GLenum target, GLenum pname); 553 [CallWith=ScriptState] any getBufferParameter(GLenum target, GLenum pname);
554 554
555 WebGLContextAttributes getContextAttributes(); 555 WebGLContextAttributes? getContextAttributes();
556 556
557 GLenum getError(); 557 GLenum getError();
558 558
559 // object getExtension(DOMString name); 559 [CallWith=ScriptState] object? getExtension(DOMString name);
560 [Custom] any getExtension(DOMString name);
561 560
562 [Custom] any getFramebufferAttachmentParameter(GLenum target, GLenum attachm ent, GLenum pname); 561 [CallWith=ScriptState] any getFramebufferAttachmentParameter(GLenum target, GLenum attachment, GLenum pname);
563 [Custom] any getParameter(GLenum pname); 562 [CallWith=ScriptState] any getParameter(GLenum pname);
564 [Custom] any getProgramParameter(WebGLProgram? program, GLenum pname); 563 [CallWith=ScriptState] any getProgramParameter(WebGLProgram? program, GLenum pname);
565 DOMString? getProgramInfoLog(WebGLProgram? program); 564 DOMString? getProgramInfoLog(WebGLProgram? program);
566 [Custom] any getRenderbufferParameter(GLenum target, GLenum pname); 565 [CallWith=ScriptState] any getRenderbufferParameter(GLenum target, GLenum pn ame);
567 [Custom] any getShaderParameter(WebGLShader? shader, GLenum pname); 566 [CallWith=ScriptState] any getShaderParameter(WebGLShader? shader, GLenum pn ame);
568 567
569 DOMString? getShaderInfoLog(WebGLShader? shader); 568 DOMString? getShaderInfoLog(WebGLShader? shader);
570 569
571 WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenu m precisiontype); 570 WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenu m precisiontype);
572 571
573 DOMString? getShaderSource(WebGLShader? shader); 572 DOMString? getShaderSource(WebGLShader? shader);
574 573
575 sequence<DOMString>? getSupportedExtensions(); 574 sequence<DOMString>? getSupportedExtensions();
576 575
577 [Custom] any getTexParameter(GLenum target, GLenum pname); 576 [CallWith=ScriptState] any getTexParameter(GLenum target, GLenum pname);
578 577
579 [Custom] any getUniform(WebGLProgram? program, WebGLUniformLocation? locatio n); 578 [CallWith=ScriptState] any getUniform(WebGLProgram? program, WebGLUniformLoc ation? location);
580 579
581 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam e); 580 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam e);
582 581
583 [Custom] any getVertexAttrib(GLuint index, GLenum pname); 582 [CallWith=ScriptState] any getVertexAttrib(GLuint index, GLenum pname);
584 583
585 GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname); 584 GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname);
586 585
587 [DartNoAutoScope] void hint(GLenum target, GLenum mode); 586 void hint(GLenum target, GLenum mode);
588 [DartNoAutoScope] GLboolean isBuffer(WebGLBuffer? buffer); 587 GLboolean isBuffer(WebGLBuffer? buffer);
589 [DartNoAutoScope] GLboolean isContextLost(); 588 GLboolean isContextLost();
590 [DartNoAutoScope] GLboolean isEnabled(GLenum cap); 589 GLboolean isEnabled(GLenum cap);
591 [DartNoAutoScope] GLboolean isFramebuffer(WebGLFramebuffer? framebuffer); 590 GLboolean isFramebuffer(WebGLFramebuffer? framebuffer);
592 [DartNoAutoScope] GLboolean isProgram(WebGLProgram? program); 591 GLboolean isProgram(WebGLProgram? program);
593 [DartNoAutoScope] GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer); 592 GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer);
594 [DartNoAutoScope] GLboolean isShader(WebGLShader? shader); 593 GLboolean isShader(WebGLShader? shader);
595 [DartNoAutoScope] GLboolean isTexture(WebGLTexture? texture); 594 GLboolean isTexture(WebGLTexture? texture);
596 [DartNoAutoScope] void lineWidth(GLfloat width); 595 void lineWidth(GLfloat width);
597 [DartNoAutoScope] void linkProgram(WebGLProgram? program); 596 void linkProgram(WebGLProgram? program);
598 [DartNoAutoScope] void pixelStorei(GLenum pname, GLint param); 597 void pixelStorei(GLenum pname, GLint param);
599 [DartNoAutoScope] void polygonOffset(GLfloat factor, GLfloat units); 598 void polygonOffset(GLfloat factor, GLfloat units);
600 599
601 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, ArrayBufferView? pixels); 600 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form at, GLenum type, ArrayBufferView? pixels);
602 601
603 void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width , GLsizei height); 602 void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width , GLsizei height);
604 void sampleCoverage(GLclampf value, GLboolean invert); 603 void sampleCoverage(GLclampf value, GLboolean invert);
605 [DartNoAutoScope] void scissor(GLint x, GLint y, GLsizei width, GLsizei heig ht); 604 void scissor(GLint x, GLint y, GLsizei width, GLsizei height);
606 void shaderSource(WebGLShader? shader, DOMString string); 605 void shaderSource(WebGLShader? shader, DOMString string);
607 [DartNoAutoScope] void stencilFunc(GLenum func, GLint ref, GLuint mask); 606 void stencilFunc(GLenum func, GLint ref, GLuint mask);
608 [DartNoAutoScope] void stencilFuncSeparate(GLenum face, GLenum func, GLint r ef, GLuint mask); 607 void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
609 [DartNoAutoScope] void stencilMask(GLuint mask); 608 void stencilMask(GLuint mask);
610 [DartNoAutoScope] void stencilMaskSeparate(GLenum face, GLuint mask); 609 void stencilMaskSeparate(GLenum face, GLuint mask);
611 [DartNoAutoScope] void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); 610 void stencilOp(GLenum fail, GLenum zfail, GLenum zpass);
612 [DartNoAutoScope] void stencilOpSeparate(GLenum face, GLenum fail, GLenum zf ail, GLenum zpass); 611 void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) ;
613 612
614 void texParameterf(GLenum target, GLenum pname, GLfloat param); 613 void texParameterf(GLenum target, GLenum pname, GLfloat param);
615 void texParameteri(GLenum target, GLenum pname, GLint param); 614 void texParameteri(GLenum target, GLenum pname, GLint param);
616 615
617 // Supported forms: 616 // Supported forms:
618 // FIXME: should be union type 617 // FIXME: should be union type
619 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 618 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172
620 [RaisesException] void texImage2D( 619 [RaisesException] void texImage2D(
621 GLenum target, GLint level, GLenum internalformat, 620 GLenum target, GLint level, GLenum internalformat,
622 GLsizei width, GLsizei height, GLint border, 621 GLsizei width, GLsizei height, GLint border,
(...skipping 21 matching lines...) Expand all
644 [RaisesException] void texSubImage2D( 643 [RaisesException] void texSubImage2D(
645 GLenum target, GLint level, GLint xoffset, GLint yoffset, 644 GLenum target, GLint level, GLint xoffset, GLint yoffset,
646 GLenum format, GLenum type, HTMLImageElement image); 645 GLenum format, GLenum type, HTMLImageElement image);
647 [RaisesException] void texSubImage2D( 646 [RaisesException] void texSubImage2D(
648 GLenum target, GLint level, GLint xoffset, GLint yoffset, 647 GLenum target, GLint level, GLint xoffset, GLint yoffset,
649 GLenum format, GLenum type, HTMLCanvasElement canvas); 648 GLenum format, GLenum type, HTMLCanvasElement canvas);
650 [RaisesException] void texSubImage2D( 649 [RaisesException] void texSubImage2D(
651 GLenum target, GLint level, GLint xoffset, GLint yoffset, 650 GLenum target, GLint level, GLint xoffset, GLint yoffset,
652 GLenum format, GLenum type, HTMLVideoElement video); 651 GLenum format, GLenum type, HTMLVideoElement video);
653 652
654 [DartNoAutoScope] void uniform1f(WebGLUniformLocation? location, GLfloat x); 653 void uniform1f(WebGLUniformLocation? location, GLfloat x);
655 [Custom, DartNoAutoScope] void uniform1fv(WebGLUniformLocation? location, Fl oat32Array v); 654 void uniform1fv(WebGLUniformLocation? location, Float32Array v);
656 [DartNoAutoScope] void uniform1i(WebGLUniformLocation? location, GLint x); 655 void uniform1fv(WebGLUniformLocation? location, sequence<GLfloat> v);
657 [Custom, DartNoAutoScope] void uniform1iv(WebGLUniformLocation? location, In t32Array v); 656 void uniform1i(WebGLUniformLocation? location, GLint x);
658 [DartNoAutoScope] void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y); 657 void uniform1iv(WebGLUniformLocation? location, Int32Array v);
659 [Custom, DartNoAutoScope] void uniform2fv(WebGLUniformLocation? location, Fl oat32Array v); 658 void uniform1iv(WebGLUniformLocation? location, sequence<GLint> v);
660 [DartNoAutoScope] void uniform2i(WebGLUniformLocation? location, GLint x, GL int y); 659 void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y);
661 [Custom, DartNoAutoScope] void uniform2iv(WebGLUniformLocation? location, In t32Array v); 660 void uniform2fv(WebGLUniformLocation? location, Float32Array v);
662 [DartNoAutoScope] void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z); 661 void uniform2fv(WebGLUniformLocation? location, sequence<GLfloat> v);
663 [Custom, DartNoAutoScope] void uniform3fv(WebGLUniformLocation? location, Fl oat32Array v); 662 void uniform2i(WebGLUniformLocation? location, GLint x, GLint y);
664 [DartNoAutoScope] void uniform3i(WebGLUniformLocation? location, GLint x, GL int y, GLint z); 663 void uniform2iv(WebGLUniformLocation? location, Int32Array v);
665 [Custom, DartNoAutoScope] void uniform3iv(WebGLUniformLocation? location, In t32Array v); 664 void uniform2iv(WebGLUniformLocation? location, sequence<GLint> v);
666 [DartNoAutoScope] void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 665 void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z);
667 [Custom, DartNoAutoScope] void uniform4fv(WebGLUniformLocation? location, Fl oat32Array v); 666 void uniform3fv(WebGLUniformLocation? location, Float32Array v);
668 [DartNoAutoScope] void uniform4i(WebGLUniformLocation? location, GLint x, GL int y, GLint z, GLint w); 667 void uniform3fv(WebGLUniformLocation? location, sequence<GLfloat> v);
669 [Custom, DartNoAutoScope] void uniform4iv(WebGLUniformLocation? location, In t32Array v); 668 void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z);
669 void uniform3iv(WebGLUniformLocation? location, Int32Array v);
670 void uniform3iv(WebGLUniformLocation? location, sequence<GLint> v);
671 void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
672 void uniform4fv(WebGLUniformLocation? location, Float32Array v);
673 void uniform4fv(WebGLUniformLocation? location, sequence<GLfloat> v);
674 void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GL int w);
675 void uniform4iv(WebGLUniformLocation? location, Int32Array v);
676 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v);
670 677
671 [Custom, DartNoAutoScope] void uniformMatrix2fv(WebGLUniformLocation? locati on, GLboolean transpose, Float32Array array); 678 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
672 [Custom, DartNoAutoScope] void uniformMatrix3fv(WebGLUniformLocation? locati on, GLboolean transpose, Float32Array array); 679 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
673 [Custom, DartNoAutoScope] void uniformMatrix4fv(WebGLUniformLocation? locati on, GLboolean transpose, Float32Array array); 680 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
681 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
682 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F loat32Array array);
683 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s equence<GLfloat> array);
674 684
675 [DartNoAutoScope] void useProgram(WebGLProgram? program); 685 void useProgram(WebGLProgram? program);
676 [DartNoAutoScope] void validateProgram(WebGLProgram? program); 686 void validateProgram(WebGLProgram? program);
677 687
678 [DartNoAutoScope] void vertexAttrib1f(GLuint indx, GLfloat x); 688 void vertexAttrib1f(GLuint indx, GLfloat x);
679 [Custom, DartNoAutoScope] void vertexAttrib1fv(GLuint indx, Float32Array val ues); 689 void vertexAttrib1fv(GLuint indx, Float32Array values);
680 [DartNoAutoScope] void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); 690 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values);
681 [Custom, DartNoAutoScope] void vertexAttrib2fv(GLuint indx, Float32Array val ues); 691 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y);
682 [DartNoAutoScope] void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLf loat z); 692 void vertexAttrib2fv(GLuint indx, Float32Array values);
683 [Custom, DartNoAutoScope] void vertexAttrib3fv(GLuint indx, Float32Array val ues); 693 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values);
684 [DartNoAutoScope] void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLf loat z, GLfloat w); 694 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
685 [Custom, DartNoAutoScope] void vertexAttrib4fv(GLuint indx, Float32Array val ues); 695 void vertexAttrib3fv(GLuint indx, Float32Array values);
686 [DartNoAutoScope] void vertexAttribPointer(GLuint indx, GLint size, GLenum t ype, GLboolean normalized, 696 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values);
697 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) ;
698 void vertexAttrib4fv(GLuint indx, Float32Array values);
699 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values);
700 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor malized,
687 GLsizei stride, GLintptr offset); 701 GLsizei stride, GLintptr offset);
688 702
689 [DartNoAutoScope] void viewport(GLint x, GLint y, GLsizei width, GLsizei hei ght); 703 void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
690 }; 704 };
OLDNEW
« no previous file with comments | « modules/webgl/WebGLRenderingContext.idl ('k') | modules/webgl/WebGLSampler.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698