| 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 23 matching lines...) Expand all Loading... |
| 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] should be appli
ed | 44 // FIXME: [DoNotCheckConstants] should be applied to members and not need to |
| 45 // to members and not need to be put on implementing interface | 45 // 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, // need to put on implementing interface | |
| 49 WillBeGarbageCollected, | 48 WillBeGarbageCollected, |
| 50 ] interface WebGLRenderingContextBase { | 49 ] interface WebGLRenderingContextBase { |
| 51 | 50 |
| 52 readonly attribute HTMLCanvasElement canvas; | 51 readonly attribute HTMLCanvasElement canvas; |
| 53 | 52 |
| 54 /* ClearBufferMask */ | 53 /* ClearBufferMask */ |
| 55 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 54 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
| 56 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 55 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
| 57 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 56 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
| 58 | 57 |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; | 466 const GLenum UNPACK_FLIP_Y_WEBGL = 0x9240; |
| 468 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; | 467 const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; |
| 469 const GLenum CONTEXT_LOST_WEBGL = 0x9242; | 468 const GLenum CONTEXT_LOST_WEBGL = 0x9242; |
| 470 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; | 469 const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; |
| 471 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; | 470 const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; |
| 472 | 471 |
| 473 readonly attribute GLsizei drawingBufferWidth; | 472 readonly attribute GLsizei drawingBufferWidth; |
| 474 readonly attribute GLsizei drawingBufferHeight; | 473 readonly attribute GLsizei drawingBufferHeight; |
| 475 | 474 |
| 476 void activeTexture(GLenum texture); | 475 void activeTexture(GLenum texture); |
| 477 void attachShader(WebGLProgram? program, WebGLShader? shader); | 476 [CallWith=ScriptState] void attachShader(WebGLProgram? program, WebGLShader?
shader); |
| 478 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name)
; | 477 void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name)
; |
| 479 void bindBuffer(GLenum target, WebGLBuffer? buffer); | 478 [CallWith=ScriptState] void bindBuffer(GLenum target, WebGLBuffer? buffer); |
| 480 void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer); | 479 [CallWith=ScriptState] void bindFramebuffer(GLenum target, WebGLFramebuffer?
framebuffer); |
| 481 void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer); | 480 [CallWith=ScriptState] void bindRenderbuffer(GLenum target, WebGLRenderbuffe
r? renderbuffer); |
| 482 void bindTexture(GLenum target, WebGLTexture? texture); | 481 [CallWith=ScriptState] void bindTexture(GLenum target, WebGLTexture? texture
); |
| 483 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; | 482 void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; |
| 484 void blendEquation(GLenum mode); | 483 void blendEquation(GLenum mode); |
| 485 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); | 484 void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); |
| 486 void blendFunc(GLenum sfactor, GLenum dfactor); | 485 void blendFunc(GLenum sfactor, GLenum dfactor); |
| 487 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum
dstAlpha); | 486 void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum
dstAlpha); |
| 488 // FIXME: should be union type | 487 // FIXME: should be union type |
| 489 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 | 488 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 |
| 490 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); | 489 void bufferData(GLenum target, GLsizeiptr size, GLenum usage); |
| 491 void bufferData(GLenum target, ArrayBufferView data, GLenum usage); | 490 void bufferData(GLenum target, ArrayBufferView data, GLenum usage); |
| 492 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); | 491 void bufferData(GLenum target, ArrayBuffer? data, GLenum usage); |
| 493 void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data); | 492 void bufferSubData(GLenum target, GLintptr offset, [FlexibleArrayBufferView]
ArrayBufferView data); |
| 494 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data); | 493 void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data); |
| 495 | 494 |
| 496 GLenum checkFramebufferStatus(GLenum target); | 495 GLenum checkFramebufferStatus(GLenum target); |
| 497 void clear(GLbitfield mask); | 496 void clear(GLbitfield mask); |
| 498 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; | 497 void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
; |
| 499 void clearDepth(GLclampf depth); | 498 void clearDepth(GLclampf depth); |
| 500 void clearStencil(GLint s); | 499 void clearStencil(GLint s); |
| 501 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp
ha); | 500 void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alp
ha); |
| 502 void compileShader(WebGLShader? shader); | 501 void compileShader(WebGLShader? shader); |
| 503 | 502 |
| 504 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, | 503 void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, |
| 505 GLsizei width, GLsizei height, GLint border, Array
BufferView? data); | 504 GLsizei width, GLsizei height, GLint border, Array
BufferView data); |
| 506 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, | 505 void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLin
t yoffset, |
| 507 GLsizei width, GLsizei height, GLenum format, A
rrayBufferView? data); | 506 GLsizei width, GLsizei height, GLenum format, A
rrayBufferView data); |
| 508 | 507 |
| 509 void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint
x, GLint y, GLsizei width, GLsizei height, GLint border); | 508 void copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint
x, GLint y, GLsizei width, GLsizei height, GLint border); |
| 510 void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint x, GLint y, GLsizei width, GLsizei height); | 509 void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoff
set, GLint x, GLint y, GLsizei width, GLsizei height); |
| 511 | 510 |
| 512 WebGLBuffer createBuffer(); | 511 WebGLBuffer createBuffer(); |
| 513 WebGLFramebuffer createFramebuffer(); | 512 WebGLFramebuffer createFramebuffer(); |
| 514 WebGLProgram createProgram(); | 513 WebGLProgram createProgram(); |
| 515 WebGLRenderbuffer createRenderbuffer(); | 514 WebGLRenderbuffer createRenderbuffer(); |
| 516 WebGLShader createShader(GLenum type); | 515 WebGLShader createShader(GLenum type); |
| 517 WebGLTexture createTexture(); | 516 WebGLTexture createTexture(); |
| 518 | 517 |
| 519 void cullFace(GLenum mode); | 518 void cullFace(GLenum mode); |
| 520 | 519 |
| 521 void deleteBuffer(WebGLBuffer? buffer); | 520 void deleteBuffer(WebGLBuffer? buffer); |
| 522 void deleteFramebuffer(WebGLFramebuffer? framebuffer); | 521 void deleteFramebuffer(WebGLFramebuffer? framebuffer); |
| 523 void deleteProgram(WebGLProgram? program); | 522 void deleteProgram(WebGLProgram? program); |
| 524 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer); | 523 void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer); |
| 525 void deleteShader(WebGLShader? shader); | 524 void deleteShader(WebGLShader? shader); |
| 526 void deleteTexture(WebGLTexture? texture); | 525 void deleteTexture(WebGLTexture? texture); |
| 527 | 526 |
| 528 void depthFunc(GLenum func); | 527 void depthFunc(GLenum func); |
| 529 void depthMask(GLboolean flag); | 528 void depthMask(GLboolean flag); |
| 530 void depthRange(GLclampf zNear, GLclampf zFar); | 529 void depthRange(GLclampf zNear, GLclampf zFar); |
| 531 void detachShader(WebGLProgram? program, WebGLShader? shader); | 530 [CallWith=ScriptState] void detachShader(WebGLProgram? program, WebGLShader?
shader); |
| 532 void disable(GLenum cap); | 531 void disable(GLenum cap); |
| 533 void disableVertexAttribArray(GLuint index); | 532 void disableVertexAttribArray(GLuint index); |
| 534 void drawArrays(GLenum mode, GLint first, GLsizei count); | 533 void drawArrays(GLenum mode, GLint first, GLsizei count); |
| 535 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); | 534 void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset); |
| 536 | 535 |
| 537 void enable(GLenum cap); | 536 void enable(GLenum cap); |
| 538 void enableVertexAttribArray(GLuint index); | 537 void enableVertexAttribArray(GLuint index); |
| 539 void finish(); | 538 void finish(); |
| 540 void flush(); | 539 void flush(); |
| 541 void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum render
buffertarget, WebGLRenderbuffer? renderbuffer); | 540 [CallWith=ScriptState] void framebufferRenderbuffer(GLenum target, GLenum at
tachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer); |
| 542 void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget
, WebGLTexture? texture, GLint level); | 541 [CallWith=ScriptState] void framebufferTexture2D(GLenum target, GLenum attac
hment, GLenum textarget, WebGLTexture? texture, GLint level); |
| 543 void frontFace(GLenum mode); | 542 void frontFace(GLenum mode); |
| 544 void generateMipmap(GLenum target); | 543 void generateMipmap(GLenum target); |
| 545 | 544 |
| 546 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index); | 545 WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLuint index); |
| 547 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index); | 546 WebGLActiveInfo getActiveUniform(WebGLProgram? program, GLuint index); |
| 548 | 547 |
| 549 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program); | 548 sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program); |
| 550 | 549 |
| 551 GLint getAttribLocation(WebGLProgram? program, DOMString name); | 550 GLint getAttribLocation(WebGLProgram? program, DOMString name); |
| 552 | 551 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 574 sequence<DOMString>? getSupportedExtensions(); | 573 sequence<DOMString>? getSupportedExtensions(); |
| 575 | 574 |
| 576 [CallWith=ScriptState] any getTexParameter(GLenum target, GLenum pname); | 575 [CallWith=ScriptState] any getTexParameter(GLenum target, GLenum pname); |
| 577 | 576 |
| 578 [CallWith=ScriptState] any getUniform(WebGLProgram? program, WebGLUniformLoc
ation? location); | 577 [CallWith=ScriptState] any getUniform(WebGLProgram? program, WebGLUniformLoc
ation? location); |
| 579 | 578 |
| 580 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam
e); | 579 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam
e); |
| 581 | 580 |
| 582 [CallWith=ScriptState] any getVertexAttrib(GLuint index, GLenum pname); | 581 [CallWith=ScriptState] any getVertexAttrib(GLuint index, GLenum pname); |
| 583 | 582 |
| 584 GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname); | 583 GLintptr getVertexAttribOffset(GLuint index, GLenum pname); |
| 585 | 584 |
| 586 void hint(GLenum target, GLenum mode); | 585 void hint(GLenum target, GLenum mode); |
| 587 GLboolean isBuffer(WebGLBuffer? buffer); | 586 GLboolean isBuffer(WebGLBuffer? buffer); |
| 588 GLboolean isContextLost(); | 587 GLboolean isContextLost(); |
| 589 GLboolean isEnabled(GLenum cap); | 588 GLboolean isEnabled(GLenum cap); |
| 590 GLboolean isFramebuffer(WebGLFramebuffer? framebuffer); | 589 GLboolean isFramebuffer(WebGLFramebuffer? framebuffer); |
| 591 GLboolean isProgram(WebGLProgram? program); | 590 GLboolean isProgram(WebGLProgram? program); |
| 592 GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer); | 591 GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer); |
| 593 GLboolean isShader(WebGLShader? shader); | 592 GLboolean isShader(WebGLShader? shader); |
| 594 GLboolean isTexture(WebGLTexture? texture); | 593 GLboolean isTexture(WebGLTexture? texture); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 609 void stencilMaskSeparate(GLenum face, GLuint mask); | 608 void stencilMaskSeparate(GLenum face, GLuint mask); |
| 610 void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); | 609 void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); |
| 611 void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
; | 610 void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
; |
| 612 | 611 |
| 613 void texParameterf(GLenum target, GLenum pname, GLfloat param); | 612 void texParameterf(GLenum target, GLenum pname, GLfloat param); |
| 614 void texParameteri(GLenum target, GLenum pname, GLint param); | 613 void texParameteri(GLenum target, GLenum pname, GLint param); |
| 615 | 614 |
| 616 // Supported forms: | 615 // Supported forms: |
| 617 // FIXME: should be union type | 616 // FIXME: should be union type |
| 618 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 | 617 // https://www.khronos.org/bugzilla/show_bug.cgi?id=1172 |
| 619 [RaisesException] void texImage2D( | 618 void texImage2D( |
| 620 GLenum target, GLint level, GLenum internalformat, | 619 GLenum target, GLint level, GLint internalformat, |
| 621 GLsizei width, GLsizei height, GLint border, | 620 GLsizei width, GLsizei height, GLint border, |
| 622 GLenum format, GLenum type, ArrayBufferView? pixels); | 621 GLenum format, GLenum type, ArrayBufferView? pixels); |
| 623 [RaisesException] void texImage2D( | 622 void texImage2D( |
| 624 GLenum target, GLint level, GLenum internalformat, | 623 GLenum target, GLint level, GLint internalformat, |
| 625 GLenum format, GLenum type, ImageData? pixels); | 624 GLenum format, GLenum type, ImageData? pixels); |
| 626 [RaisesException] void texImage2D( | 625 [RaisesException] void texImage2D( |
| 627 GLenum target, GLint level, GLenum internalformat, | 626 GLenum target, GLint level, GLint internalformat, |
| 628 GLenum format, GLenum type, HTMLImageElement image); | 627 GLenum format, GLenum type, HTMLImageElement image); |
| 629 [RaisesException] void texImage2D( | 628 [RaisesException] void texImage2D( |
| 630 GLenum target, GLint level, GLenum internalformat, | 629 GLenum target, GLint level, GLint internalformat, |
| 631 GLenum format, GLenum type, HTMLCanvasElement canvas); | 630 GLenum format, GLenum type, HTMLCanvasElement canvas); |
| 632 [RaisesException] void texImage2D( | 631 [RaisesException] void texImage2D( |
| 633 GLenum target, GLint level, GLenum internalformat, | 632 GLenum target, GLint level, GLint internalformat, |
| 634 GLenum format, GLenum type, HTMLVideoElement video); | 633 GLenum format, GLenum type, HTMLVideoElement video); |
| 634 [RaisesException] void texImage2D( |
| 635 GLenum target, GLint level, GLint internalformat, |
| 636 GLenum format, GLenum type, ImageBitmap bitmap); |
| 635 | 637 |
| 636 [RaisesException] void texSubImage2D( | 638 void texSubImage2D( |
| 637 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 639 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 638 GLsizei width, GLsizei height, | 640 GLsizei width, GLsizei height, |
| 639 GLenum format, GLenum type, ArrayBufferView? pixels); | 641 GLenum format, GLenum type, ArrayBufferView? pixels); |
| 640 [RaisesException] void texSubImage2D( | 642 void texSubImage2D( |
| 641 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 643 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 642 GLenum format, GLenum type, ImageData? pixels); | 644 GLenum format, GLenum type, ImageData? pixels); |
| 643 [RaisesException] void texSubImage2D( | 645 [RaisesException] void texSubImage2D( |
| 644 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 646 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 645 GLenum format, GLenum type, HTMLImageElement image); | 647 GLenum format, GLenum type, HTMLImageElement image); |
| 646 [RaisesException] void texSubImage2D( | 648 [RaisesException] void texSubImage2D( |
| 647 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 649 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 648 GLenum format, GLenum type, HTMLCanvasElement canvas); | 650 GLenum format, GLenum type, HTMLCanvasElement canvas); |
| 649 [RaisesException] void texSubImage2D( | 651 [RaisesException] void texSubImage2D( |
| 650 GLenum target, GLint level, GLint xoffset, GLint yoffset, | 652 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 651 GLenum format, GLenum type, HTMLVideoElement video); | 653 GLenum format, GLenum type, HTMLVideoElement video); |
| 654 [RaisesException] void texSubImage2D( |
| 655 GLenum target, GLint level, GLint xoffset, GLint yoffset, |
| 656 GLenum format, GLenum type, ImageBitmap bitmap); |
| 652 | 657 |
| 653 void uniform1f(WebGLUniformLocation? location, GLfloat x); | 658 void uniform1f(WebGLUniformLocation? location, GLfloat x); |
| 654 void uniform1fv(WebGLUniformLocation? location, Float32Array v); | 659 void uniform1fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl
oat32Array v); |
| 655 void uniform1fv(WebGLUniformLocation? location, sequence<GLfloat> v); | 660 void uniform1fv(WebGLUniformLocation? location, sequence<GLfloat> v); |
| 656 void uniform1i(WebGLUniformLocation? location, GLint x); | 661 void uniform1i(WebGLUniformLocation? location, GLint x); |
| 657 void uniform1iv(WebGLUniformLocation? location, Int32Array v); | 662 void uniform1iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); |
| 658 void uniform1iv(WebGLUniformLocation? location, sequence<GLint> v); | 663 void uniform1iv(WebGLUniformLocation? location, sequence<GLint> v); |
| 659 void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y); | 664 void uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y); |
| 660 void uniform2fv(WebGLUniformLocation? location, Float32Array v); | 665 void uniform2fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl
oat32Array v); |
| 661 void uniform2fv(WebGLUniformLocation? location, sequence<GLfloat> v); | 666 void uniform2fv(WebGLUniformLocation? location, sequence<GLfloat> v); |
| 662 void uniform2i(WebGLUniformLocation? location, GLint x, GLint y); | 667 void uniform2i(WebGLUniformLocation? location, GLint x, GLint y); |
| 663 void uniform2iv(WebGLUniformLocation? location, Int32Array v); | 668 void uniform2iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); |
| 664 void uniform2iv(WebGLUniformLocation? location, sequence<GLint> v); | 669 void uniform2iv(WebGLUniformLocation? location, sequence<GLint> v); |
| 665 void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z); | 670 void uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z); |
| 666 void uniform3fv(WebGLUniformLocation? location, Float32Array v); | 671 void uniform3fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl
oat32Array v); |
| 667 void uniform3fv(WebGLUniformLocation? location, sequence<GLfloat> v); | 672 void uniform3fv(WebGLUniformLocation? location, sequence<GLfloat> v); |
| 668 void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z); | 673 void uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z); |
| 669 void uniform3iv(WebGLUniformLocation? location, Int32Array v); | 674 void uniform3iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); |
| 670 void uniform3iv(WebGLUniformLocation? location, sequence<GLint> v); | 675 void uniform3iv(WebGLUniformLocation? location, sequence<GLint> v); |
| 671 void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z, GLfloat w); | 676 void uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat
z, GLfloat w); |
| 672 void uniform4fv(WebGLUniformLocation? location, Float32Array v); | 677 void uniform4fv(WebGLUniformLocation? location, [FlexibleArrayBufferView] Fl
oat32Array v); |
| 673 void uniform4fv(WebGLUniformLocation? location, sequence<GLfloat> v); | 678 void uniform4fv(WebGLUniformLocation? location, sequence<GLfloat> v); |
| 674 void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GL
int w); | 679 void uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GL
int w); |
| 675 void uniform4iv(WebGLUniformLocation? location, Int32Array v); | 680 void uniform4iv(WebGLUniformLocation? location, [FlexibleArrayBufferView] In
t32Array v); |
| 676 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v); | 681 void uniform4iv(WebGLUniformLocation? location, sequence<GLint> v); |
| 677 | 682 |
| 678 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); | 683 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); |
| 679 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); | 684 void uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); |
| 680 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); | 685 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); |
| 681 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); | 686 void uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); |
| 682 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); | 687 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, F
loat32Array array); |
| 683 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); | 688 void uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, s
equence<GLfloat> array); |
| 684 | 689 |
| 685 void useProgram(WebGLProgram? program); | 690 [CallWith=ScriptState] void useProgram(WebGLProgram? program); |
| 686 void validateProgram(WebGLProgram? program); | 691 void validateProgram(WebGLProgram? program); |
| 687 | 692 |
| 688 void vertexAttrib1f(GLuint indx, GLfloat x); | 693 void vertexAttrib1f(GLuint indx, GLfloat x); |
| 689 void vertexAttrib1fv(GLuint indx, Float32Array values); | 694 void vertexAttrib1fv(GLuint indx, Float32Array values); |
| 690 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values); | 695 void vertexAttrib1fv(GLuint indx, sequence<GLfloat> values); |
| 691 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); | 696 void vertexAttrib2f(GLuint indx, GLfloat x, GLfloat y); |
| 692 void vertexAttrib2fv(GLuint indx, Float32Array values); | 697 void vertexAttrib2fv(GLuint indx, Float32Array values); |
| 693 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values); | 698 void vertexAttrib2fv(GLuint indx, sequence<GLfloat> values); |
| 694 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); | 699 void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z); |
| 695 void vertexAttrib3fv(GLuint indx, Float32Array values); | 700 void vertexAttrib3fv(GLuint indx, Float32Array values); |
| 696 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); | 701 void vertexAttrib3fv(GLuint indx, sequence<GLfloat> values); |
| 697 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; | 702 void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
; |
| 698 void vertexAttrib4fv(GLuint indx, Float32Array values); | 703 void vertexAttrib4fv(GLuint indx, Float32Array values); |
| 699 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); | 704 void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values); |
| 700 void vertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean nor
malized, | 705 [CallWith=ScriptState] void vertexAttribPointer(GLuint indx, GLint size, GLe
num type, GLboolean normalized, |
| 701 GLsizei stride, GLintptr offset); | 706 GLsizei stride, GLintptr off
set); |
| 702 | 707 |
| 703 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); | 708 void viewport(GLint x, GLint y, GLsizei width, GLsizei height); |
| 704 }; | 709 }; |
| OLD | NEW |