| OLD | NEW |
| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer); | 479 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer); |
| 480 void bindTexture(GLenum target, WebGLTexture? texture); | 480 void bindTexture(GLenum target, WebGLTexture? texture); |
| 481 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; | 481 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; |
| 482 void blendEquation(GLenum mode); | 482 void blendEquation(GLenum mode); |
| 483 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); | 483 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); |
| 484 void blendFunc(GLenum sfactor, GLenum dfactor); | 484 void blendFunc(GLenum sfactor, GLenum dfactor); |
| 485 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum
dstAlpha); | 485 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum
dstAlpha); |
| 486 // FIXME: should be union type | 486 // FIXME: should be union type |
| 487 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 | 487 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 |
| 488 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); | 488 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); |
| 489 void bufferData(GLenum target, ArrayBufferView data, GLenum usage); | 489 void bufferData(GLenum target, [AllowShared] ArrayBufferView data, GLenum us
age); |
| 490 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); | 490 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); |
| 491 void bufferSubData(GLenum target, GLintptr offset, [FlexibleArrayBufferView]
ArrayBufferView data); | 491 void bufferSubData(GLenum target, GLintptr offset, [FlexibleArrayBufferView]
ArrayBufferView data); |
| 492 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer data); | 492 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer data); |
| 493 | 493 |
| 494 GLenum checkFramebufferStatus(GLenum target); | 494 GLenum checkFramebufferStatus(GLenum target); |
| 495 void clear(GLbitfield mask); | 495 void clear(GLbitfield mask); |
| 496 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; | 496 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; |
| 497 void clearDepth(GLclampf depth); | 497 void clearDepth(GLclampf depth); |
| 498 void clearStencil(GLint s); | 498 void clearStencil(GLint s); |
| 499 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp
ha); | 499 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp
ha); |
| 500 void compileShader(WebGLShader shader); | 500 void compileShader(WebGLShader shader); |
| 501 | 501 |
| 502 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, | 502 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, |
| 503 GLsizei width, GLsizei height, GLint border, Array
BufferView data); | 503 GLsizei width, GLsizei height, GLint border, [Allo
wShared] ArrayBufferView data); |
| 504 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, | 504 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, |
| 505 GLsizei width, GLsizei height, GLenum format, A
rrayBufferView data); | 505 GLsizei width, GLsizei height, GLenum format, [
AllowShared] ArrayBufferView data); |
| 506 | 506 |
| 507 void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint
x, GLint y, GLsizei width, GLsizei height, GLint border); | 507 void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint
x, GLint y, GLsizei width, GLsizei height, GLint border); |
| 508 void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint x, GLint y, GLsizei width, GLsizei height); | 508 void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint x, GLint y, GLsizei width, GLsizei height); |
| 509 | 509 |
| 510 WebGLBuffer createBuffer(); | 510 WebGLBuffer createBuffer(); |
| 511 WebGLFramebuffer createFramebuffer(); | 511 WebGLFramebuffer createFramebuffer(); |
| 512 WebGLProgram createProgram(); | 512 WebGLProgram createProgram(); |
| 513 WebGLRenderbuffer createRenderbuffer(); | 513 WebGLRenderbuffer createRenderbuffer(); |
| 514 WebGLShader createShader(GLenum type); | 514 WebGLShader createShader(GLenum type); |
| 515 WebGLTexture createTexture(); | 515 WebGLTexture createTexture(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 GLboolean isFramebuffer(WebGLFramebuffer? framebuffer); | 588 GLboolean isFramebuffer(WebGLFramebuffer? framebuffer); |
| 589 GLboolean isProgram(WebGLProgram? program); | 589 GLboolean isProgram(WebGLProgram? program); |
| 590 GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer); | 590 GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer); |
| 591 GLboolean isShader(WebGLShader? shader); | 591 GLboolean isShader(WebGLShader? shader); |
| 592 GLboolean isTexture(WebGLTexture? texture); | 592 GLboolean isTexture(WebGLTexture? texture); |
| 593 void lineWidth(GLfloat width); | 593 void lineWidth(GLfloat width); |
| 594 void linkProgram(WebGLProgram program); | 594 void linkProgram(WebGLProgram program); |
| 595 void pixelStorei(GLenum pname, GLint param); | 595 void pixelStorei(GLenum pname, GLint param); |
| 596 void polygonOffset(GLfloat factor, GLfloat units); | 596 void polygonOffset(GLfloat factor, GLfloat units); |
| 597 | 597 |
| 598 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, ArrayBufferView? pixels); | 598 void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum form
at, GLenum type, [AllowShared] ArrayBufferView? pixels); |
| 599 | 599 |
| 600 void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width
, GLsizei height); | 600 void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width
, GLsizei height); |
| 601 void sampleCoverage(GLclampf value, GLboolean invert); | 601 void sampleCoverage(GLclampf value, GLboolean invert); |
| 602 void scissor(GLint x, GLint y, GLsizei width, GLsizei height); | 602 void scissor(GLint x, GLint y, GLsizei width, GLsizei height); |
| 603 void shaderSource(WebGLShader shader, DOMString string); | 603 void shaderSource(WebGLShader shader, DOMString string); |
| 604 void stencilFunc(GLenum func, GLint ref, GLuint mask); | 604 void stencilFunc(GLenum func, GLint ref, GLuint mask); |
| 605 void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); | 605 void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); |
| 606 void stencilMask(GLuint mask); | 606 void stencilMask(GLuint mask); |
| 607 void stencilMaskSeparate(GLenum face, GLuint mask); | 607 void stencilMaskSeparate(GLenum face, GLuint mask); |
| 608 void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); | 608 void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); |
| 609 void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
; | 609 void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
; |
| 610 | 610 |
| 611 void texParameterf(GLenum target, GLenum pname, GLfloat param); | 611 void texParameterf(GLenum target, GLenum pname, GLfloat param); |
| 612 void texParameteri(GLenum target, GLenum pname, GLint param); | 612 void texParameteri(GLenum target, GLenum pname, GLint param); |
| 613 | 613 |
| 614 // Supported forms: | 614 // Supported forms: |
| 615 // FIXME: should be union type | 615 // FIXME: should be union type |
| 616 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 | 616 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 |
| 617 void texImage2D( | 617 void texImage2D( |
| 618 GLenum target, GLint level, GLint internalformat, | 618 GLenum target, GLint level, GLint internalformat, |
| 619 GLsizei width, GLsizei height, GLint border, | 619 GLsizei width, GLsizei height, GLint border, |
| 620 GLenum format, GLenum type, ArrayBufferView? pixels); | 620 GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels); |
| 621 void texImage2D( | 621 void texImage2D( |
| 622 GLenum target, GLint level, GLint internalformat, | 622 GLenum target, GLint level, GLint internalformat, |
| 623 GLenum format, GLenum type, ImageData pixels); | 623 GLenum format, GLenum type, ImageData pixels); |
| 624 [CallWith=ExecutionContext, RaisesException] void texImage2D( | 624 [CallWith=ExecutionContext, RaisesException] void texImage2D( |
| 625 GLenum target, GLint level, GLint internalformat, | 625 GLenum target, GLint level, GLint internalformat, |
| 626 GLenum format, GLenum type, HTMLImageElement image); | 626 GLenum format, GLenum type, HTMLImageElement image); |
| 627 [CallWith=ExecutionContext, RaisesException] void texImage2D( | 627 [CallWith=ExecutionContext, RaisesException] void texImage2D( |
| 628 GLenum target, GLint level, GLint internalformat, | 628 GLenum target, GLint level, GLint internalformat, |
| 629 GLenum format, GLenum type, HTMLCanvasElement canvas); | 629 GLenum format, GLenum type, HTMLCanvasElement canvas); |
| 630 [CallWith=ExecutionContext, RaisesException] void texImage2D( | 630 [CallWith=ExecutionContext, RaisesException] void texImage2D( |
| 631 GLenum target, GLint level, GLint internalformat, | 631 GLenum target, GLint level, GLint internalformat, |
| 632 GLenum format, GLenum type, HTMLVideoElement video); | 632 GLenum format, GLenum type, HTMLVideoElement video); |
| 633 [RaisesException] void texImage2D( | 633 [RaisesException] void texImage2D( |
| 634 GLenum target, GLint level, GLint internalformat, | 634 GLenum target, GLint level, GLint internalformat, |
| 635 GLenum format, GLenum type, ImageBitmap bitmap); | 635 GLenum format, GLenum type, ImageBitmap bitmap); |
| 636 | 636 |
| 637 void texSubImage2D( | 637 void texSubImage2D( |
| 638 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 638 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 639 GLsizei width, GLsizei height, | 639 GLsizei width, GLsizei height, |
| 640 GLenum format, GLenum type, ArrayBufferView? pixels); | 640 GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels); |
| 641 void texSubImage2D( | 641 void texSubImage2D( |
| 642 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 642 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 643 GLenum format, GLenum type, ImageData pixels); | 643 GLenum format, GLenum type, ImageData pixels); |
| 644 [CallWith=ExecutionContext, RaisesException] void texSubImage2D( | 644 [CallWith=ExecutionContext, RaisesException] void texSubImage2D( |
| 645 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 645 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 646 GLenum format, GLenum type, HTMLImageElement image); | 646 GLenum format, GLenum type, HTMLImageElement image); |
| 647 [CallWith=ExecutionContext, RaisesException] void texSubImage2D( | 647 [CallWith=ExecutionContext, RaisesException] void texSubImage2D( |
| 648 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 648 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 649 GLenum format, GLenum type, HTMLCanvasElement canvas); | 649 GLenum format, GLenum type, HTMLCanvasElement canvas); |
| 650 [CallWith=ExecutionContext, RaisesException] void texSubImage2D( | 650 [CallWith=ExecutionContext, RaisesException] void texSubImage2D( |
| (...skipping 21 matching lines...) Expand all Loading... |
| 672 void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z); | 672 void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z); |
| 673 void uniform3iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); | 673 void uniform3iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); |
| 674 void uniform3iv(WebGLUniformLocation? location, sequence<GLint> v); | 674 void uniform3iv(WebGLUniformLocation? location, sequence<GLint> v); |
| 675 void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z, GLfloat w); | 675 void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z, GLfloat w); |
| 676 void uniform4fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl
oat32Array v); | 676 void uniform4fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl
oat32Array v); |
| 677 void uniform4fv(WebGLUniformLocation? location, sequence<GLfloat> v); | 677 void uniform4fv(WebGLUniformLocation? location, sequence<GLfloat> v); |
| 678 void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GL
int w); | 678 void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GL
int w); |
| 679 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); | 679 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); |
| 680 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v); | 680 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v); |
| 681 | 681 |
| 682 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); | 682 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, [
AllowShared] Float32Array array); |
| 683 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); | 683 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); |
| 684 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); | 684 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, [
AllowShared] Float32Array array); |
| 685 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); | 685 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); |
| 686 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); | 686 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, [
AllowShared] Float32Array array); |
| 687 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); | 687 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); |
| 688 | 688 |
| 689 void useProgram(WebGLProgram? program); | 689 void useProgram(WebGLProgram? program); |
| 690 void validateProgram(WebGLProgram program); | 690 void validateProgram(WebGLProgram program); |
| 691 | 691 |
| 692 void vertexAttrib1f(GLuint indx, GLfloat x); | 692 void vertexAttrib1f(GLuint indx, GLfloat x); |
| 693 void vertexAttrib1fv(GLuint indx, Float32Array values); | 693 void vertexAttrib1fv(GLuint indx, [AllowShared] Float32Array values); |
| 694 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values); | 694 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values); |
| 695 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); | 695 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); |
| 696 void vertexAttrib2fv(GLuint indx, Float32Array values); | 696 void vertexAttrib2fv(GLuint indx, [AllowShared] Float32Array values); |
| 697 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values); | 697 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values); |
| 698 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); | 698 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); |
| 699 void vertexAttrib3fv(GLuint indx, Float32Array values); | 699 void vertexAttrib3fv(GLuint indx, [AllowShared] Float32Array values); |
| 700 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); | 700 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); |
| 701 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; | 701 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; |
| 702 void vertexAttrib4fv(GLuint indx, Float32Array values); | 702 void vertexAttrib4fv(GLuint indx, [AllowShared] Float32Array values); |
| 703 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); | 703 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); |
| 704 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, | 704 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, |
| 705 GLsizei stride, GLintptr off
set); | 705 GLsizei stride, GLintptr off
set); |
| 706 | 706 |
| 707 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); | 707 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 708 | 708 |
| 709 [RuntimeEnabled=ExperimentalCanvasFeatures, CallWith=ScriptState, RaisesExce
ption] Promise commit(); | 709 [RuntimeEnabled=ExperimentalCanvasFeatures, CallWith=ScriptState, RaisesExce
ption] Promise commit(); |
| 710 }; | 710 }; |
| OLD | NEW |