diff --git a/specs/1.0.0/index.html b/specs/1.0.0/index.html
index c22346d94e..8b7c91a145 100644
--- a/specs/1.0.0/index.html
+++ b/specs/1.0.0/index.html
@@ -617,11 +617,11 @@
WebGLBuffer
The WebGLBuffer interface represents an OpenGL Buffer Object. The
underlying object is created as if by calling glGenBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
, bound as if by calling glBindBuffer
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
and destroyed as if by calling glDeleteBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
.
interface WebGLBuffer : WebGLObject {
@@ -634,11 +634,11 @@
The WebGLFramebuffer interface represents an OpenGL Framebuffer Object. The
underlying object is created as if by calling glGenFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
, bound as if by calling glBindFramebuffer
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
and destroyed as if by calling glDeleteFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
.
interface WebGLFramebuffer : WebGLObject {
@@ -651,11 +651,11 @@ WebGLProgram
The WebGLProgram interface represents an OpenGL Program Object. The
underlying object is created as if by calling glCreateProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
, used as if by calling glUseProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
.
interface WebGLProgram : WebGLObject {
@@ -668,11 +668,11 @@ WebGLRenderbuffer
The WebGLRenderbuffer interface represents an OpenGL Renderbuffer Object. The
underlying object is created as if by calling glGenRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
, bound as if by calling glBindRenderbuffer
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
and destroyed as if by calling glDeleteRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
.
interface WebGLRenderbuffer : WebGLObject {
@@ -685,11 +685,11 @@ WebGLShader
The WebGLShader interface represents an OpenGL Shader Object. The
underlying object is created as if by calling glCreateShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
, attached to a Program as if by calling glAttachShader
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
.
interface WebGLShader : WebGLObject {
@@ -702,11 +702,11 @@ WebGLTexture
The WebGLTexture interface represents an OpenGL Texture Object. The
underlying object is created as if by calling glGenTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
, bound as if by calling glBindTexture
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
and destroyed as if by calling glDeleteTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
.
interface WebGLTexture : WebGLObject {
@@ -1553,56 +1553,56 @@ Setting and getting state
- void activeTexture(GLenum texture)
- (OpenGL ES 2.0 §3.7, man page)
+ (OpenGL ES 2.0 §3.7, man page)
- void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquation(GLenum mode)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendFunc(GLenum sfactor, GLenum dfactor)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void clearDepth(GLclampf depth)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
-
depth value is clamped to the range 0 to 1.
- void clearStencil(GLint s)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void cullFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- void depthFunc(GLenum func)
- (OpenGL ES 2.0 §4.1.5, man page)
+ (OpenGL ES 2.0 §4.1.5, man page)
- void depthMask(GLboolean flag)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void depthRange(GLclampf zNear, GLclampf zFar)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
-
zNear and zFar values are clamped to the range 0 to 1 and
zNear must be less than or equal to zFar; see
Viewport Depth Range.
- void disable(GLenum cap)
- (man page)
+ (man page)
- void enable(GLenum cap)
- (man page)
+ (man page)
- void frontFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- any getParameter(GLenum pname)
-
+
(glGet OpenGL ES 2.0 man page)
-
+
(glGetString OpenGL ES 2.0 man page)
-
@@ -1711,18 +1711,18 @@
Setting and getting state
See Extension Queries for information on querying the
available extensions in the current WebGL implementation.
- GLenum getError()
- (OpenGL ES 2.0 §2.5, man page)
+ (OpenGL ES 2.0 §2.5, man page)
-
See WebGLContextEvent for documentation of a
WebGL-specific return value from getError.
- void hint(GLenum target, GLenum mode)
- (OpenGL ES 2.0 §5.2, man page)
+ (OpenGL ES 2.0 §5.2, man page)
- GLboolean isEnabled(GLenum cap)
- (OpenGL ES 2.0 §6.1.1, man page)
+ (OpenGL ES 2.0 §6.1.1, man page)
- void lineWidth(GLfloat width)
- (OpenGL ES 2.0 §3.4, man page)
+ (OpenGL ES 2.0 §3.4, man page)
- void pixelStorei(GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.6.1, man page)
+ (OpenGL ES 2.0 §3.6.1, man page)
-
In addition to the parameters in the OpenGL ES 2.0 specification, the WebGL
specification accepts the parameters
UNPACK_FLIP_Y_WEBGL,
@@ -1730,27 +1730,27 @@ Setting and getting state
and UNPACK_COLORSPACE_CONVERSION_WEBGL. See Pixel
Storage Parameters for documentation of these parameters.
- void polygonOffset(GLfloat factor, GLfloat units)
- (OpenGL ES 2.0 §3.5.2, man page)
+ (OpenGL ES 2.0 §3.5.2, man page)
- void sampleCoverage(GLclampf value, GLboolean invert)
- (OpenGL ES 2.0 §4.1.3, man page)
+ (OpenGL ES 2.0 §4.1.3, man page)
- void stencilFunc(GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable argument values.
- void stencilMask(GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable mask values.
- void stencilMaskSeparate(GLenum face, GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void stencilOp(GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
@@ -1770,10 +1770,10 @@ Viewing and clipping
- void scissor(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.1.2, man page)
+ (OpenGL ES 2.0 §4.1.2, man page)
- void viewport(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
@@ -1787,7 +1787,7 @@ Buffer objects
- void bindBuffer(GLenum target, WebGLBuffer buffer)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Binds the given WebGLBuffer object to the given binding point (target), either
ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER. If the buffer is null then any buffer currently
@@ -1797,14 +1797,14 @@
Buffer objects
current binding will remain untouched.
- void bufferData(GLenum target, GLsizeiptr size, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target. The
buffer is initialized to 0.
void bufferData(GLenum target, ArrayBufferView data, GLenum usage)
void bufferData(GLenum target, ArrayBuffer data, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target to the
size of the passed data, then write the contents of data to the buffer object.
@@ -1812,20 +1812,20 @@
Buffer objects
If the passed data is null then an INVALID_VALUE error is generated.
void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data)
void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer data)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
For the WebGLBuffer object bound to the passed target write the passed data starting
at the passed offset. If the data would be written past the end of the buffer object
an
INVALID_VALUE error is generated.
- WebGLBuffer createBuffer()
- (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
-
Create a WebGLBuffer object and initialize it with a buffer object name as if by
calling glGenBuffers.
- void deleteBuffer(WebGLBuffer buffer)
- (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
-
Delete the buffer object contained in the passed WebGLBuffer as if by calling
glDeleteBuffers. If the buffer has already been deleted the call has no effect.
@@ -1834,7 +1834,7 @@
Buffer objects
destroyed.
- any getBufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
-
Return the value for the passed pname. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -1844,7 +1844,7 @@
Buffer objects
| BUFFER_USAGE | unsigned long |
- GLboolean isBuffer(WebGLBuffer buffer)
- (OpenGL ES 2.0 §6.1.6, man page)
+ (OpenGL ES 2.0 §6.1.6, man page)
@@ -1859,7 +1859,7 @@ Framebuffer objects
- void bindFramebuffer(GLenum target, WebGLFramebuffer framebuffer)
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
-
Bind the given
WebGLFramebuffer object to the given binding point
(target), which must be FRAMEBUFFER.
@@ -1868,15 +1868,15 @@ Framebuffer objects
will generate an INVALID_OPERATION error.
- GLenum checkFramebufferStatus(GLenum target)
- (OpenGL ES 2.0 §4.4.5, man page)
+ (OpenGL ES 2.0 §4.4.5, man page)
- WebGLFramebuffer createFramebuffer()
- (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
-
Create a WebGLFramebuffer object and initialize it with a framebuffer object name as if by
calling glGenFramebuffers.
- void deleteFramebuffer(WebGLFramebuffer buffer)
- (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
-
Delete the framebuffer object contained in the passed WebGLFramebuffer as if by calling
glDeleteFramebuffers. If the framebuffer has already been deleted the call has no effect.
@@ -1887,13 +1887,13 @@
Framebuffer objects
- void framebufferRenderbuffer(GLenum target, GLenum attachment,
GLenum renderbuffertarget,
WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget,
WebGLTexture texture, GLint level)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment,
GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
-
Return the value for the passed pname given the passed target and attachment. The type
returned is the natural type for the requested pname, as given in the following table:
@@ -1905,7 +1905,7 @@
Framebuffer objects
| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | long |
- GLboolean isFramebuffer(WebGLFramebuffer framebuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLFramebuffer is valid and false otherwise.
@@ -1921,7 +1921,7 @@ Renderbuffer objects
- void bindRenderbuffer(GLenum target, WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
Bind the given
WebGLRenderbuffer object to the given binding point
(target), which must be RENDERBUFFER.
@@ -1929,13 +1929,13 @@ Renderbuffer objects
this target is unbound.
- WebGLRenderbuffer createRenderbuffer()
- (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
-
Create a WebGLRenderbuffer object and initialize it with a renderbuffer object name as if by
calling glGenRenderbuffers.
- void deleteRenderbuffer(WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
-
Delete the renderbuffer object contained in the passed WebGLRenderbuffer as if by calling
glDeleteRenderbuffers. If the renderbuffer has already been deleted the call has no effect.
@@ -1943,7 +1943,7 @@
Renderbuffer objects
This method merely gives the author greater control over when the renderbuffer object is
destroyed.
- any getRenderbufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
-
Return the value for the passed pname given the passed target. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -1960,12 +1960,12 @@
Renderbuffer objects
| RENDERBUFFER_STENCIL_SIZE | long |
- GLboolean isRenderbuffer(WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLRenderbuffer is valid and false otherwise.
- void renderbufferStorage(GLenum target, GLenum internalformat,
GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
@@ -1980,11 +1980,11 @@ Texture objects
- void bindTexture(GLenum target, WebGLTexture texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
- void copyTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLint x, GLint y, GLsizei width, GLsizei height,
GLint border)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -1994,7 +1994,7 @@ Texture objects
Framebuffer.
- void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2003,13 +2003,13 @@ Texture objects
initialized to 0; see Reading Pixels Outside the
Framebuffer.
- WebGLTexture createTexture()
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Create a WebGLTexture object and initialize it with a texture object name as if by
calling glGenTextures.
- void deleteTexture(WebGLTexture texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Delete the texture object contained in the passed WebGLTexture as if by calling
glDeleteTextures. If the texture has already been deleted the call has no effect.
@@ -2017,12 +2017,12 @@
Texture objects
This method merely gives the author greater control over when the texture object is
destroyed.
- void generateMipmap(GLenum target)
- (OpenGL ES 2.0 §3.7.11, man page)
+ (OpenGL ES 2.0 §3.7.11, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- any getTexParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, man page)
+ (OpenGL ES 2.0 §6.1.3, man page)
-
Return the value for the passed pname given the passed target. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2037,13 +2037,13 @@
Texture objects
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- GLboolean isTexture(WebGLTexture texture)
- (OpenGL ES 2.0 §6.1.4, man page)
+ (OpenGL ES 2.0 §6.1.4, man page)
-
Return true if the passed WebGLTexture is valid and false otherwise.
- void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, GLenum format,
GLenum type, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
If
pixels is null, a buffer of sufficient size initialized to 0 is
passed.
@@ -2067,7 +2067,7 @@ Texture objects
GLenum format, GLenum type, HTMLCanvasElement canvas)
void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLenum format, GLenum type, HTMLVideoElement video)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
Uploads the given element or image data to the currently bound WebGLTexture.
@@ -2091,19 +2091,19 @@ Texture objects
See Pixel Storage Parameters for WebGL-specific
pixel storage parameters that affect the behavior of this function.
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texParameteri(GLenum target, GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
See texImage2D for restrictions on the format
and pixels arguments.
@@ -2121,7 +2121,7 @@ Texture objects
GLenum format, GLenum type, HTMLCanvasElement canvas)
void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLenum format, GLenum type, HTMLVideoElement video)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
Updates a sub-rectangle of the currently bound WebGLTexture with the contents of the
given element or image data.
@@ -2149,28 +2149,28 @@ Programs and Shaders
- void attachShader(WebGLProgram program, WebGLShader shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void bindAttribLocation(WebGLProgram program, GLuint index, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- void compileShader(WebGLShader shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
- WebGLProgram createProgram()
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Create a WebGLProgram object and initialize it with a program object name as if by
calling glCreateProgram.
- WebGLShader createShader(type)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Create a WebGLShader object and initialize it with a shader object name as if by
calling glCreateShader.
- void deleteProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Delete the program object contained in the passed WebGLProgram as if by calling
glDeleteProgram. If the program has already been deleted the call has no effect.
@@ -2178,7 +2178,7 @@
Programs and Shaders
This method merely gives the author greater control over when the program object is
destroyed.
- void deleteShader(WebGLShader shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Delete the shader object contained in the passed WebGLShader as if by calling
glDeleteShader. If the shader has already been deleted the call has no effect.
@@ -2186,13 +2186,13 @@
Programs and Shaders
This method merely gives the author greater control over when the shader object is
destroyed.
- void detachShader(WebGLProgram program, WebGLShader shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- WebGLShader[ ] getAttachedShaders(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the list of shaders attached to the passed program.
- any getProgramParameter(WebGLProgram program, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed program. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2206,9 +2206,9 @@
Programs and Shaders
| ACTIVE_UNIFORMS | long |
- DOMString getProgramInfoLog(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
- any getShaderParameter(WebGLShader shader, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed shader. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2219,30 +2219,30 @@
Programs and Shaders
| COMPILE_STATUS | boolean |
- DOMString getShaderInfoLog(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
- DOMString getShaderSource(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
- GLboolean isProgram(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLProgram is valid and false otherwise.
- GLboolean isShader(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLShader is valid and false otherwise.
- void linkProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void shaderSource(WebGLShader shader, DOMString source)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
See Supported GLSL Constructs
and Characters Outside the GLSL Source Character
Set for additional constructs supported by and validation performed by WebGL
implementations.
- void useProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void validateProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.5, man page)
+ (OpenGL ES 2.0 §2.10.5, man page)
@@ -2255,31 +2255,31 @@ Uniforms and attributes
- void disableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
- void enableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Enable the vertex attribute at
index as an array. WebGL imposes additional
rules beyond OpenGL ES 2.0 regarding enabled vertex attributes;
see Enabled Vertex Attributes and Range
Checking.
- WebGLActiveInfo getActiveAttrib(WebGLProgram program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns information about the size, type and name of the vertex attribute at the
passed index of the passed program object.
- WebGLActiveInfo getActiveUniform(WebGLProgram program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns information about the size, type and name of the uniform at the
passed index of the passed program object.
- GLint getAttribLocation(WebGLProgram program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- any getUniform(WebGLProgram program, WebGLUniformLocation location)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the uniform value at the passed location in the passed program. The type returned is
dependent on the uniform type, as shown in the following table:
@@ -2302,7 +2302,7 @@
Uniforms and attributes
| mat4 | Float32Array (with 16 elements) |
- WebGLUniformLocation getUniformLocation(WebGLProgram program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Return a WebGLUniformLocation object that represents the location of a specific uniform variable
within a program object. The return value is null if name does not correspond to an active uniform
@@ -2311,7 +2311,7 @@
Uniforms and attributes
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- any getVertexAttrib(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the information requested in pname about the vertex attribute at the passed index. The
type returned is dependent on the information requested, as shown in the following table:
@@ -2326,11 +2326,11 @@
Uniforms and attributes
| CURRENT_VERTEX_ATTRIB | Float32Array (with 4 elements) |
- GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
void uniform[1234][fi](WebGLUniformLocation location, ...)
void uniform[1234][fi]v(WebGLUniformLocation location, ...)
void uniformMatrix[234]fv(WebGLUniformLocation location, GLboolean transpose, ...)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Each of the uniform* functions above sets the specified uniform or uniforms to the
values provided. If the passed
location is not null and was not obtained
@@ -2344,7 +2344,7 @@ Uniforms and attributes
invalid if it is too short for or is not an integer multiple of the assigned type.
void vertexAttrib[1234]f(GLuint indx, ...)
void vertexAttrib[1234]fv(GLuint indx, ...)
- (OpenGL ES 2.0 §2.7, man page)
+ (OpenGL ES 2.0 §2.7, man page)
-
Sets the vertex attribute at the passed index to the given constant value. Values set via the
vertexAttrib are guaranteed to be returned from the getVertexAttrib function
@@ -2352,7 +2352,7 @@ Uniforms and attributes
drawArrays or drawElements.
- void vertexAttribPointer(GLuint indx, GLint size, GLenum type,
GLboolean normalized, GLsizei stride, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Assign the WebGLBuffer object currently bound to the ARRAY_BUFFER target to the vertex
attribute at the passed index. Size is number of components per attribute. Stride and
@@ -2379,13 +2379,13 @@
Writing to the drawing buffer
- void clear(GLbitfield mask)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void drawArrays(GLenum mode, GLint first, GLsizei count)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
If first is negative, an
INVALID_VALUE error will be generated.
- void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Draw using the currently bound element array buffer. The given offset is in bytes, and
must be a valid multiple of the size of the given type or an
INVALID_OPERATION
@@ -2399,9 +2399,9 @@ Writing to the drawing buffer
and drawElements. See Enabled Vertex
Attributes and Range Checking.
- void finish()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
- void flush()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
@@ -2415,7 +2415,7 @@
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView pixels)
- (OpenGL ES 2.0 §4.3.1, man page)
+ (OpenGL ES 2.0 §4.3.1, man page)
-
Fills
pixels with the pixel data in the specified rectangle of the frame
buffer. The data returned from readPixels must be up-to-date as of the most recently
diff --git a/specs/1.0.1/index.html b/specs/1.0.1/index.html
index 0088343887..8ef6c3053f 100644
--- a/specs/1.0.1/index.html
+++ b/specs/1.0.1/index.html
@@ -738,11 +738,11 @@ WebGLBuffer
The WebGLBuffer interface represents an OpenGL Buffer Object. The
underlying object is created as if by calling glGenBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
, bound as if by calling glBindBuffer
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
and destroyed as if by calling glDeleteBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
.
interface WebGLBuffer : WebGLObject {
@@ -755,11 +755,11 @@
The WebGLFramebuffer interface represents an OpenGL Framebuffer Object. The
underlying object is created as if by calling glGenFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
, bound as if by calling glBindFramebuffer
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
and destroyed as if by calling glDeleteFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
.
interface WebGLFramebuffer : WebGLObject {
@@ -772,11 +772,11 @@ WebGLProgram
The WebGLProgram interface represents an OpenGL Program Object. The
underlying object is created as if by calling glCreateProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
, used as if by calling glUseProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
.
interface WebGLProgram : WebGLObject {
@@ -789,11 +789,11 @@ WebGLRenderbuffer
The WebGLRenderbuffer interface represents an OpenGL Renderbuffer Object. The
underlying object is created as if by calling glGenRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
, bound as if by calling glBindRenderbuffer
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
and destroyed as if by calling glDeleteRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
.
interface WebGLRenderbuffer : WebGLObject {
@@ -806,11 +806,11 @@ WebGLShader
The WebGLShader interface represents an OpenGL Shader Object. The
underlying object is created as if by calling glCreateShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
, attached to a Program as if by calling glAttachShader
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
.
interface WebGLShader : WebGLObject {
@@ -823,11 +823,11 @@ WebGLTexture
The WebGLTexture interface represents an OpenGL Texture Object. The
underlying object is created as if by calling glGenTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
, bound as if by calling glBindTexture
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
and destroyed as if by calling glDeleteTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
.
interface WebGLTexture : WebGLObject {
@@ -1783,56 +1783,56 @@ Setting and getting state
- void activeTexture(GLenum texture)
- (OpenGL ES 2.0 §3.7, man page)
+ (OpenGL ES 2.0 §3.7, man page)
- void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquation(GLenum mode)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendFunc(GLenum sfactor, GLenum dfactor)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void clearDepth(GLclampf depth)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
-
depth value is clamped to the range 0 to 1.
- void clearStencil(GLint s)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void cullFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- void depthFunc(GLenum func)
- (OpenGL ES 2.0 §4.1.5, man page)
+ (OpenGL ES 2.0 §4.1.5, man page)
- void depthMask(GLboolean flag)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void depthRange(GLclampf zNear, GLclampf zFar)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
-
zNear and zFar values are clamped to the range 0 to 1 and
zNear must be less than or equal to zFar; see
Viewport Depth Range.
- void disable(GLenum cap)
- (man page)
+ (man page)
- void enable(GLenum cap)
- (man page)
+ (man page)
- void frontFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- any getParameter(GLenum pname)
-
+
(glGet OpenGL ES 2.0 man page)
-
+
(glGetString OpenGL ES 2.0 man page)
-
@@ -1940,23 +1940,23 @@
Setting and getting state
See Extension Queries for information on querying the
available extensions in the current WebGL implementation.
- GLenum getError()
- (OpenGL ES 2.0 §2.5, man page)
+ (OpenGL ES 2.0 §2.5, man page)
-
If the context's webgl context lost flag is set,
returns
CONTEXT_LOST_WEBGL the first time this method is
called. Afterward, returns NO_ERROR until the context has
been restored.
- void hint(GLenum target, GLenum mode)
- (OpenGL ES 2.0 §5.2, man page)
+ (OpenGL ES 2.0 §5.2, man page)
- GLboolean isEnabled(GLenum cap)
- (OpenGL ES 2.0 §6.1.1, man page)
+ (OpenGL ES 2.0 §6.1.1, man page)
-
Returns false if the context's webgl context lost
flag is set.
- void lineWidth(GLfloat width)
- (OpenGL ES 2.0 §3.4, man page)
+ (OpenGL ES 2.0 §3.4, man page)
- void pixelStorei(GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.6.1, man page)
+ (OpenGL ES 2.0 §3.6.1, man page)
-
In addition to the parameters in the OpenGL ES 2.0 specification, the WebGL
specification accepts the parameters
UNPACK_FLIP_Y_WEBGL,
@@ -1964,27 +1964,27 @@ Setting and getting state
and UNPACK_COLORSPACE_CONVERSION_WEBGL. See Pixel
Storage Parameters for documentation of these parameters.
- void polygonOffset(GLfloat factor, GLfloat units)
- (OpenGL ES 2.0 §3.5.2, man page)
+ (OpenGL ES 2.0 §3.5.2, man page)
- void sampleCoverage(GLclampf value, GLboolean invert)
- (OpenGL ES 2.0 §4.1.3, man page)
+ (OpenGL ES 2.0 §4.1.3, man page)
- void stencilFunc(GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable argument values.
- void stencilMask(GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable mask values.
- void stencilMaskSeparate(GLenum face, GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void stencilOp(GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
@@ -2004,10 +2004,10 @@ Viewing and clipping
- void scissor(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.1.2, man page)
+ (OpenGL ES 2.0 §4.1.2, man page)
- void viewport(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
@@ -2021,7 +2021,7 @@ Buffer objects
- void bindBuffer(GLenum target, WebGLBuffer buffer)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Binds the given WebGLBuffer object to the given binding point (target), either
ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER. If the buffer is null then any buffer currently
@@ -2031,14 +2031,14 @@
Buffer objects
current binding will remain untouched.
- void bufferData(GLenum target, GLsizeiptr size, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target. The
buffer is initialized to 0.
void bufferData(GLenum target, ArrayBufferView data, GLenum usage)
void bufferData(GLenum target, ArrayBuffer data, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target to the
size of the passed data, then write the contents of data to the buffer object.
@@ -2046,20 +2046,20 @@
Buffer objects
If the passed data is null then an INVALID_VALUE error is generated.
void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data)
void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer data)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
For the WebGLBuffer object bound to the passed target write the passed data starting
at the passed offset. If the data would be written past the end of the buffer object
an
INVALID_VALUE error is generated.
- WebGLBuffer createBuffer()
- (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
-
Create a WebGLBuffer object and initialize it with a buffer object name as if by
calling glGenBuffers.
- void deleteBuffer(WebGLBuffer buffer)
- (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
-
Delete the buffer object contained in the passed WebGLBuffer as if by calling
glDeleteBuffers. If the buffer has already been deleted the call has no effect.
@@ -2068,7 +2068,7 @@
Buffer objects
destroyed.
- any getBufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
-
Return the value for the passed pname. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2078,7 +2078,7 @@
Buffer objects
| BUFFER_USAGE | unsigned long |
- GLboolean isBuffer(WebGLBuffer buffer)
- (OpenGL ES 2.0 §6.1.6, man page)
+ (OpenGL ES 2.0 §6.1.6, man page)
-
Return true if the passed WebGLBuffer is valid and false otherwise.
@@ -2098,7 +2098,7 @@ Framebuffer objects
- void bindFramebuffer(GLenum target, WebGLFramebuffer framebuffer)
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
-
Bind the given
WebGLFramebuffer object to the given binding point
(target), which must be FRAMEBUFFER.
@@ -2107,19 +2107,19 @@ Framebuffer objects
will generate an INVALID_OPERATION error.
- GLenum checkFramebufferStatus(GLenum target)
- (OpenGL ES 2.0 §4.4.5, man page)
+ (OpenGL ES 2.0 §4.4.5, man page)
-
Returns
FRAMEBUFFER_UNSUPPORTED if the
context's webgl context lost flag is set.
- WebGLFramebuffer createFramebuffer()
- (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
-
Create a WebGLFramebuffer object and initialize it with a framebuffer object name as if by
calling glGenFramebuffers.
- void deleteFramebuffer(WebGLFramebuffer buffer)
- (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
-
Delete the framebuffer object contained in the passed WebGLFramebuffer as if by calling
glDeleteFramebuffers. If the framebuffer has already been deleted the call has no effect.
@@ -2130,13 +2130,13 @@
Framebuffer objects
- void framebufferRenderbuffer(GLenum target, GLenum attachment,
GLenum renderbuffertarget,
WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget,
WebGLTexture texture, GLint level)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment,
GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
-
Return the value for the passed pname given the passed target and attachment. The type
returned is the natural type for the requested pname, as given in the following table:
@@ -2148,7 +2148,7 @@
Framebuffer objects
| FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE | long |
- GLboolean isFramebuffer(WebGLFramebuffer framebuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLFramebuffer is valid and false otherwise.
@@ -2167,7 +2167,7 @@ Renderbuffer objects
- void bindRenderbuffer(GLenum target, WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
Bind the given
WebGLRenderbuffer object to the given binding point
(target), which must be RENDERBUFFER.
@@ -2175,13 +2175,13 @@ Renderbuffer objects
this target is unbound.
- WebGLRenderbuffer createRenderbuffer()
- (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
-
Create a WebGLRenderbuffer object and initialize it with a renderbuffer object name as if by
calling glGenRenderbuffers.
- void deleteRenderbuffer(WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
-
Delete the renderbuffer object contained in the passed WebGLRenderbuffer as if by calling
glDeleteRenderbuffers. If the renderbuffer has already been deleted the call has no effect.
@@ -2189,7 +2189,7 @@
Renderbuffer objects
This method merely gives the author greater control over when the renderbuffer object is
destroyed.
- any getRenderbufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
-
Return the value for the passed pname given the passed target. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2206,7 +2206,7 @@
Renderbuffer objects
| RENDERBUFFER_STENCIL_SIZE | long |
- GLboolean isRenderbuffer(WebGLRenderbuffer renderbuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLRenderbuffer is valid and false otherwise.
@@ -2214,7 +2214,7 @@ Renderbuffer objects
flag is set.
- void renderbufferStorage(GLenum target, GLenum internalformat,
GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
@@ -2229,14 +2229,14 @@ Texture objects
- void bindTexture(GLenum target, WebGLTexture texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
void compressedTexSubImage2D(GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
-
If an attempt is made to call these functions with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2248,7 +2248,7 @@ Texture objects
- void copyTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLint x, GLint y, GLsizei width, GLsizei height,
GLint border)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2258,7 +2258,7 @@ Texture objects
Framebuffer.
- void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2267,13 +2267,13 @@ Texture objects
initialized to 0; see Reading Pixels Outside the
Framebuffer.
- WebGLTexture createTexture()
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Create a WebGLTexture object and initialize it with a texture object name as if by
calling glGenTextures.
- void deleteTexture(WebGLTexture texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Delete the texture object contained in the passed WebGLTexture as if by calling
glDeleteTextures. If the texture has already been deleted the call has no effect.
@@ -2281,12 +2281,12 @@
Texture objects
This method merely gives the author greater control over when the texture object is
destroyed.
- void generateMipmap(GLenum target)
- (OpenGL ES 2.0 §3.7.11, man page)
+ (OpenGL ES 2.0 §3.7.11, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- any getTexParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, man page)
+ (OpenGL ES 2.0 §6.1.3, man page)
-
Return the value for the passed pname given the passed target. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2301,7 +2301,7 @@
Texture objects
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- GLboolean isTexture(WebGLTexture texture)
- (OpenGL ES 2.0 §6.1.4, man page)
+ (OpenGL ES 2.0 §6.1.4, man page)
-
Return true if the passed WebGLTexture is valid and false otherwise.
@@ -2310,7 +2310,7 @@ Texture objects
- void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, GLenum format,
GLenum type, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
If
pixels is null, a buffer of sufficient size initialized to 0 is
passed.
@@ -2334,7 +2334,7 @@ Texture objects
GLenum format, GLenum type, HTMLCanvasElement canvas) raises (DOMException)
void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLenum format, GLenum type, HTMLVideoElement video) raises (DOMException)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
Uploads the given element or image data to the currently bound WebGLTexture.
@@ -2364,19 +2364,19 @@ Texture objects
See Pixel Storage Parameters for WebGL-specific
pixel storage parameters that affect the behavior of this function.
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texParameteri(GLenum target, GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
See texImage2D for restrictions on the format
and pixels arguments.
@@ -2397,7 +2397,7 @@ Texture objects
GLenum format, GLenum type, HTMLCanvasElement canvas) raises (DOMException)
void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLenum format, GLenum type, HTMLVideoElement video) raises (DOMException)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
Updates a sub-rectangle of the currently bound WebGLTexture with the contents of the
given element or image data.
@@ -2434,9 +2434,9 @@ Programs and Shaders
- void attachShader(WebGLProgram program, WebGLShader shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void bindAttribLocation(WebGLProgram program, GLuint index, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the passed name is longer than the restriction defined
in Maximum Uniform and Attribute Location Lengths,
@@ -2445,21 +2445,21 @@
Programs and Shaders
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- void compileShader(WebGLShader shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
- WebGLProgram createProgram()
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Create a WebGLProgram object and initialize it with a program object name as if by
calling glCreateProgram.
- WebGLShader createShader(type)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Create a WebGLShader object and initialize it with a shader object name as if by
calling glCreateShader.
- void deleteProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Delete the program object contained in the passed WebGLProgram as if by calling
glDeleteProgram. If the program has already been deleted the call has no effect.
@@ -2467,7 +2467,7 @@
Programs and Shaders
This method merely gives the author greater control over when the program object is
destroyed.
- void deleteShader(WebGLShader shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Delete the shader object contained in the passed WebGLShader as if by calling
glDeleteShader. If the shader has already been deleted the call has no effect.
@@ -2475,13 +2475,13 @@
Programs and Shaders
This method merely gives the author greater control over when the shader object is
destroyed.
- void detachShader(WebGLProgram program, WebGLShader shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- WebGLShader[ ] getAttachedShaders(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the list of shaders attached to the passed program.
- any getProgramParameter(WebGLProgram program, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed program. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2495,9 +2495,9 @@
Programs and Shaders
| ACTIVE_UNIFORMS | long |
- DOMString getProgramInfoLog(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
- any getShaderParameter(WebGLShader shader, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed shader. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2515,27 +2515,27 @@
Programs and Shaders
VERTEX_SHADER. The precisiontype value can be LOW_FLOAT, MEDIUM_FLOAT, HIGH_FLOAT,
LOW_INT, MEDIUM_INT or HIGH_INT.
- DOMString getShaderInfoLog(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
- DOMString getShaderSource(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
- GLboolean isProgram(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLProgram is valid and false otherwise.
Returns false if the program's invalidated
flag is set.
- GLboolean isShader(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLShader is valid and false otherwise.
Returns false if the shader's invalidated
flag is set.
- void linkProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void shaderSource(WebGLShader shader, DOMString source)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
See Supported GLSL
Constructs, Maximum GLSL Token
@@ -2544,9 +2544,9 @@
Programs and Shaders
GLSL Shaders for additional constraints enforced in, additional constructs supported
by, and validation performed by WebGL implementations.
- void useProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void validateProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.5, man page)
+ (OpenGL ES 2.0 §2.10.5, man page)
@@ -2559,28 +2559,28 @@ Uniforms and attributes
- void disableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
- void enableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Enable the vertex attribute at
index as an array. WebGL imposes additional
rules beyond OpenGL ES 2.0 regarding enabled vertex attributes;
see Enabled Vertex Attributes and Range
Checking.
- WebGLActiveInfo getActiveAttrib(WebGLProgram program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns a new
WebGLActiveInfo object describing the size, type and name of
the vertex attribute at the passed index of the passed program object. If the passed
index is out of range, generates an INVALID_VALUE error and returns null.
- WebGLActiveInfo getActiveUniform(WebGLProgram program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns a new
WebGLActiveInfo object describing the size, type and name of
the uniform at the passed index of the passed program object. If the passed index is out
of range, generates an INVALID_VALUE error and returns null.
- GLint getAttribLocation(WebGLProgram program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the passed name is longer than the restriction defined
in Maximum Uniform and Attribute Location Lengths,
@@ -2596,7 +2596,7 @@
Uniforms and attributes
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- any getUniform(WebGLProgram program, WebGLUniformLocation location)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the uniform value at the passed location in the passed program. The type returned is
dependent on the uniform type, as shown in the following table:
@@ -2619,7 +2619,7 @@
Uniforms and attributes
| mat4 | Float32Array (with 16 elements) |
- WebGLUniformLocation getUniformLocation(WebGLProgram program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Return a new
WebGLUniformLocation that represents the location of a specific uniform variable
within a program object. The return value is null if name does not correspond to an active uniform
@@ -2632,7 +2632,7 @@ Uniforms and attributes
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- any getVertexAttrib(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the information requested in pname about the vertex attribute at the passed index. The
type returned is dependent on the information requested, as shown in the following table:
@@ -2647,14 +2647,14 @@
Uniforms and attributes
| CURRENT_VERTEX_ATTRIB | Float32Array (with 4 elements) |
- GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Returns 0 if the context's webgl context lost
flag is set.
void uniform[1234][fi](WebGLUniformLocation location, ...)
void uniform[1234][fi]v(WebGLUniformLocation location, ...)
void uniformMatrix[234]fv(WebGLUniformLocation location, GLboolean transpose, ...)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Each of the uniform* functions above sets the specified uniform or uniforms to the
values provided. If the passed
location is not null and was not obtained
@@ -2668,7 +2668,7 @@ Uniforms and attributes
invalid if it is too short for or is not an integer multiple of the assigned type.
void vertexAttrib[1234]f(GLuint indx, ...)
void vertexAttrib[1234]fv(GLuint indx, ...)
- (OpenGL ES 2.0 §2.7, man page)
+ (OpenGL ES 2.0 §2.7, man page)
-
Sets the vertex attribute at the passed index to the given constant value. Values set via the
vertexAttrib are guaranteed to be returned from the getVertexAttrib function
@@ -2676,7 +2676,7 @@ Uniforms and attributes
drawArrays or drawElements.
- void vertexAttribPointer(GLuint indx, GLint size, GLenum type,
GLboolean normalized, GLsizei stride, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Assign the WebGLBuffer object currently bound to the ARRAY_BUFFER target to the vertex
attribute at the passed index. Size is number of components per attribute. Stride and
@@ -2703,13 +2703,13 @@
Writing to the drawing buffer
- void clear(GLbitfield mask)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void drawArrays(GLenum mode, GLint first, GLsizei count)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
If first is negative, an
INVALID_VALUE error will be generated.
- void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Draw using the currently bound element array buffer. The given offset is in bytes, and
must be a valid multiple of the size of the given type or an
INVALID_OPERATION
@@ -2723,9 +2723,9 @@ Writing to the drawing buffer
and drawElements. See Enabled Vertex
Attributes and Range Checking.
- void finish()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
- void flush()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
@@ -2739,7 +2739,7 @@
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView pixels)
- (OpenGL ES 2.0 §4.3.1, man page)
+ (OpenGL ES 2.0 §4.3.1, man page)
-
Fills
pixels with the pixel data in the specified rectangle of the frame
buffer. The data returned from readPixels must be up-to-date as of the most recently
diff --git a/specs/1.0.2/index.html b/specs/1.0.2/index.html
index 7d8985d741..0e560e47c5 100644
--- a/specs/1.0.2/index.html
+++ b/specs/1.0.2/index.html
@@ -764,11 +764,11 @@ WebGLBuffer
The WebGLBuffer interface represents an OpenGL Buffer Object. The
underlying object is created as if by calling glGenBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
, bound as if by calling glBindBuffer
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
and destroyed as if by calling glDeleteBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
.
interface WebGLBuffer : WebGLObject {
@@ -781,11 +781,11 @@
The WebGLFramebuffer interface represents an OpenGL Framebuffer Object. The
underlying object is created as if by calling glGenFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
, bound as if by calling glBindFramebuffer
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
and destroyed as if by calling glDeleteFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
.
interface WebGLFramebuffer : WebGLObject {
@@ -798,11 +798,11 @@ WebGLProgram
The WebGLProgram interface represents an OpenGL Program Object. The
underlying object is created as if by calling glCreateProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
, used as if by calling glUseProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
.
interface WebGLProgram : WebGLObject {
@@ -815,11 +815,11 @@ WebGLRenderbuffer
The WebGLRenderbuffer interface represents an OpenGL Renderbuffer Object. The
underlying object is created as if by calling glGenRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
, bound as if by calling glBindRenderbuffer
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
and destroyed as if by calling glDeleteRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
.
interface WebGLRenderbuffer : WebGLObject {
@@ -832,11 +832,11 @@ WebGLShader
The WebGLShader interface represents an OpenGL Shader Object. The
underlying object is created as if by calling glCreateShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
, attached to a Program as if by calling glAttachShader
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
.
interface WebGLShader : WebGLObject {
@@ -849,11 +849,11 @@ WebGLTexture
The WebGLTexture interface represents an OpenGL Texture Object. The
underlying object is created as if by calling glGenTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
, bound as if by calling glBindTexture
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
and destroyed as if by calling glDeleteTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
.
interface WebGLTexture : WebGLObject {
@@ -1798,56 +1798,56 @@ Setting and getting state
- void activeTexture(GLenum texture)
- (OpenGL ES 2.0 §3.7, man page)
+ (OpenGL ES 2.0 §3.7, man page)
- void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquation(GLenum mode)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendFunc(GLenum sfactor, GLenum dfactor)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void clearDepth(GLclampf depth)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
-
depth value is clamped to the range 0 to 1.
- void clearStencil(GLint s)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void cullFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- void depthFunc(GLenum func)
- (OpenGL ES 2.0 §4.1.5, man page)
+ (OpenGL ES 2.0 §4.1.5, man page)
- void depthMask(GLboolean flag)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void depthRange(GLclampf zNear, GLclampf zFar)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
-
zNear and zFar values are clamped to the range 0 to 1 and
zNear must be less than or equal to zFar; see
Viewport Depth Range.
- void disable(GLenum cap)
- (man page)
+ (man page)
- void enable(GLenum cap)
- (man page)
+ (man page)
- void frontFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- any getParameter(GLenum pname)
-
+
(glGet OpenGL ES 2.0 man page)
-
+
(glGetString OpenGL ES 2.0 man page)
-
@@ -1957,23 +1957,23 @@
Setting and getting state
See Extension Queries for information on querying the
available extensions in the current WebGL implementation.
- [WebGLHandlesContextLoss] GLenum getError()
- (OpenGL ES 2.0 §2.5, man page)
+ (OpenGL ES 2.0 §2.5, man page)
-
If the context's webgl context lost flag is set,
returns
CONTEXT_LOST_WEBGL the first time this method is
called. Afterward, returns NO_ERROR until the context has
been restored.
- void hint(GLenum target, GLenum mode)
- (OpenGL ES 2.0 §5.2, man page)
+ (OpenGL ES 2.0 §5.2, man page)
- [WebGLHandlesContextLoss] GLboolean isEnabled(GLenum cap)
- (OpenGL ES 2.0 §6.1.1, man page)
+ (OpenGL ES 2.0 §6.1.1, man page)
-
Returns false if the context's webgl context lost
flag is set.
- void lineWidth(GLfloat width)
- (OpenGL ES 2.0 §3.4, man page)
+ (OpenGL ES 2.0 §3.4, man page)
- void pixelStorei(GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.6.1, man page)
+ (OpenGL ES 2.0 §3.6.1, man page)
-
In addition to the parameters in the OpenGL ES 2.0 specification, the WebGL
specification accepts the parameters
UNPACK_FLIP_Y_WEBGL,
@@ -1981,27 +1981,27 @@ Setting and getting state
and UNPACK_COLORSPACE_CONVERSION_WEBGL. See Pixel
Storage Parameters for documentation of these parameters.
- void polygonOffset(GLfloat factor, GLfloat units)
- (OpenGL ES 2.0 §3.5.2, man page)
+ (OpenGL ES 2.0 §3.5.2, man page)
- void sampleCoverage(GLclampf value, GLboolean invert)
- (OpenGL ES 2.0 §4.1.3, man page)
+ (OpenGL ES 2.0 §4.1.3, man page)
- void stencilFunc(GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable argument values.
- void stencilMask(GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable mask values.
- void stencilMaskSeparate(GLenum face, GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void stencilOp(GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
@@ -2021,10 +2021,10 @@ Viewing and clipping
- void scissor(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.1.2, man page)
+ (OpenGL ES 2.0 §4.1.2, man page)
- void viewport(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
@@ -2038,7 +2038,7 @@ Buffer objects
- void bindBuffer(GLenum target, WebGLBuffer? buffer)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Binds the given WebGLBuffer object to the given binding point (target), either
ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER. If the buffer is null then any buffer currently
@@ -2048,14 +2048,14 @@
Buffer objects
current binding will remain untouched.
- void bufferData(GLenum target, GLsizeiptr size, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target. The
buffer is initialized to 0.
void bufferData(GLenum target, ArrayBufferView data, GLenum usage)
void bufferData(GLenum target, ArrayBuffer? data, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target to the
size of the passed data, then write the contents of data to the buffer object.
@@ -2063,7 +2063,7 @@
Buffer objects
If the passed data is null then an INVALID_VALUE error is generated.
void bufferSubData(GLenum target, GLintptr offset, ArrayBufferView data)
void bufferSubData(GLenum target, GLintptr offset, ArrayBuffer? data)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
For the WebGLBuffer object bound to the passed target write the passed data starting at
the passed offset. If the data would be written past the end of the buffer object
@@ -2071,13 +2071,13 @@
Buffer objects
an INVALID_VALUE error is generated.
- WebGLBuffer? createBuffer()
- (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
-
Create a WebGLBuffer object and initialize it with a buffer object name as if by
calling glGenBuffers.
- void deleteBuffer(WebGLBuffer? buffer)
- (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
-
Delete the buffer object contained in the passed WebGLBuffer as if by calling
glDeleteBuffers. If the buffer has already been deleted the call has no effect.
@@ -2086,7 +2086,7 @@
Buffer objects
destroyed.
- any getBufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
-
Return the value for the passed pname. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2098,7 +2098,7 @@
Buffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isBuffer(WebGLBuffer? buffer)
- (OpenGL ES 2.0 §6.1.6, man page)
+ (OpenGL ES 2.0 §6.1.6, man page)
-
Return true if the passed WebGLBuffer is valid and false otherwise.
@@ -2118,7 +2118,7 @@ Framebuffer objects
- void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer)
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
-
Bind the given
WebGLFramebuffer object to the given binding point
(target), which must be FRAMEBUFFER.
@@ -2127,19 +2127,19 @@ Framebuffer objects
will generate an INVALID_OPERATION error.
- [WebGLHandlesContextLoss] GLenum checkFramebufferStatus(GLenum target)
- (OpenGL ES 2.0 §4.4.5, man page)
+ (OpenGL ES 2.0 §4.4.5, man page)
-
Returns
FRAMEBUFFER_UNSUPPORTED if the
context's webgl context lost flag is set.
- WebGLFramebuffer? createFramebuffer()
- (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
-
Create a WebGLFramebuffer object and initialize it with a framebuffer object name as if by
calling glGenFramebuffers.
- void deleteFramebuffer(WebGLFramebuffer? buffer)
- (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
-
Delete the framebuffer object contained in the passed WebGLFramebuffer as if by calling
glDeleteFramebuffers. If the framebuffer has already been deleted the call has no effect.
@@ -2150,13 +2150,13 @@
Framebuffer objects
- void framebufferRenderbuffer(GLenum target, GLenum attachment,
GLenum renderbuffertarget,
WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget,
WebGLTexture? texture, GLint level)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment,
GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
-
Return the value for the passed pname given the passed target and attachment. The type
returned is the natural type for the requested pname, as given in the following table:
@@ -2170,7 +2170,7 @@
Framebuffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isFramebuffer(WebGLFramebuffer? framebuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLFramebuffer is valid and false otherwise.
@@ -2189,7 +2189,7 @@ Renderbuffer objects
- void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
Bind the given
WebGLRenderbuffer object to the given binding point
(target), which must be RENDERBUFFER.
@@ -2197,13 +2197,13 @@ Renderbuffer objects
this target is unbound.
- WebGLRenderbuffer? createRenderbuffer()
- (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
-
Create a WebGLRenderbuffer object and initialize it with a renderbuffer object name as if by
calling glGenRenderbuffers.
- void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
-
Delete the renderbuffer object contained in the passed WebGLRenderbuffer as if by calling
glDeleteRenderbuffers. If the renderbuffer has already been deleted the call has no effect.
@@ -2211,7 +2211,7 @@
Renderbuffer objects
This method merely gives the author greater control over when the renderbuffer object is
destroyed.
- any getRenderbufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
-
Return the value for the passed pname given the passed target. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2230,7 +2230,7 @@
Renderbuffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLRenderbuffer is valid and false otherwise.
@@ -2238,7 +2238,7 @@ Renderbuffer objects
flag is set.
- void renderbufferStorage(GLenum target, GLenum internalformat,
GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
@@ -2253,14 +2253,14 @@ Texture objects
- void bindTexture(GLenum target, WebGLTexture? texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
void compressedTexSubImage2D(GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
-
If an attempt is made to call these functions with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2272,7 +2272,7 @@ Texture objects
- void copyTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLint x, GLint y, GLsizei width, GLsizei height,
GLint border)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2282,7 +2282,7 @@ Texture objects
Framebuffer.
- void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2291,13 +2291,13 @@ Texture objects
initialized to 0; see Reading Pixels Outside the
Framebuffer.
- WebGLTexture? createTexture()
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Create a WebGLTexture object and initialize it with a texture object name as if by
calling glGenTextures.
- void deleteTexture(WebGLTexture? texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Delete the texture object contained in the passed WebGLTexture as if by calling
glDeleteTextures. If the texture has already been deleted the call has no effect.
@@ -2305,12 +2305,12 @@
Texture objects
This method merely gives the author greater control over when the texture object is
destroyed.
- void generateMipmap(GLenum target)
- (OpenGL ES 2.0 §3.7.11, man page)
+ (OpenGL ES 2.0 §3.7.11, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- any getTexParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, man page)
+ (OpenGL ES 2.0 §6.1.3, man page)
-
Return the value for the passed pname given the passed target. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2326,7 +2326,7 @@
Texture objects
INVALID_OPERATION error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isTexture(WebGLTexture? texture)
- (OpenGL ES 2.0 §6.1.4, man page)
+ (OpenGL ES 2.0 §6.1.4, man page)
-
Return true if the passed WebGLTexture is valid and false otherwise.
@@ -2335,7 +2335,7 @@ Texture objects
- void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, GLenum format,
GLenum type, ArrayBufferView? pixels)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
If
pixels is null, a buffer of sufficient size initialized to 0 is
passed.
@@ -2359,7 +2359,7 @@ Texture objects
GLenum format, GLenum type, HTMLCanvasElement canvas) /* May throw DOMException */
void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLenum format, GLenum type, HTMLVideoElement video) /* May throw DOMException */
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
Uploads the given element or image data to the currently bound WebGLTexture.
@@ -2397,19 +2397,19 @@ Texture objects
See Pixel Storage Parameters for WebGL-specific
pixel storage parameters that affect the behavior of this function.
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texParameteri(GLenum target, GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView? pixels)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
See texImage2D for restrictions on the format
and pixels arguments.
@@ -2433,7 +2433,7 @@ Texture objects
GLenum format, GLenum type, HTMLCanvasElement canvas) /* May throw DOMException */
void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLenum format, GLenum type, HTMLVideoElement video) /* May throw DOMException */
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
Updates a sub-rectangle of the currently bound WebGLTexture with the contents of the
given element or image data.
@@ -2478,9 +2478,9 @@ Programs and Shaders
- void attachShader(WebGLProgram? program, WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the passed name is longer than the restriction defined
in Maximum Uniform and Attribute Location Lengths,
@@ -2493,7 +2493,7 @@
Programs and Shaders
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- void compileShader(WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
See Supported GLSL
Constructs, Maximum GLSL Token
@@ -2503,19 +2503,19 @@
Programs and Shaders
Varyings for additional constraints enforced in, additional constructs supported by,
and additional validation performed by WebGL implementations.
- WebGLProgram? createProgram()
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Create a WebGLProgram object and initialize it with a program object name as if by
calling glCreateProgram.
- WebGLShader? createShader(type)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Create a WebGLShader object and initialize it with a shader object name as if by
calling glCreateShader.
- void deleteProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Delete the program object contained in the passed WebGLProgram as if by calling
glDeleteProgram. If the program has already been deleted the call has no effect.
@@ -2523,7 +2523,7 @@
Programs and Shaders
This method merely gives the author greater control over when the program object is
destroyed.
- void deleteShader(WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Delete the shader object contained in the passed WebGLShader as if by calling
glDeleteShader. If the shader has already been deleted the call has no effect.
@@ -2531,16 +2531,16 @@
Programs and Shaders
This method merely gives the author greater control over when the shader object is
destroyed.
- void detachShader(WebGLProgram? program, WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns a new object representing the list of shaders attached to the passed program.
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getProgramParameter(WebGLProgram? program, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed program. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2557,12 +2557,12 @@
Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getProgramInfoLog(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getShaderParameter(WebGLShader? shader, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed shader. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2583,37 +2583,37 @@
Programs and Shaders
VERTEX_SHADER. The precisiontype value can be LOW_FLOAT, MEDIUM_FLOAT, HIGH_FLOAT,
LOW_INT, MEDIUM_INT or HIGH_INT.
- DOMString? getShaderInfoLog(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getShaderSource(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns null if any OpenGL errors are generated during the execution of this
function.
- [WebGLHandlesContextLoss] GLboolean isProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLProgram is valid and false otherwise.
Returns false if the program's invalidated
flag is set.
- [WebGLHandlesContextLoss] GLboolean isShader(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLShader is valid and false otherwise.
Returns false if the shader's invalidated
flag is set.
- void linkProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
See Packing Restrictions for Uniforms and Varyings
for additional constraints enforced in, and additional validation performed by, WebGL
implementations.
- void shaderSource(WebGLShader? shader, DOMString source)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
See Supported GLSL
Constructs, Maximum GLSL Token
@@ -2623,9 +2623,9 @@
Programs and Shaders
Varyings for additional constraints enforced in, additional constructs supported by,
and additional validation performed by WebGL implementations.
- void useProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void validateProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.5, man page)
+ (OpenGL ES 2.0 §2.10.5, man page)
@@ -2638,16 +2638,16 @@ Uniforms and attributes
- void disableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
- void enableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Enable the vertex attribute at
index as an array. WebGL imposes additional
rules beyond OpenGL ES 2.0 regarding enabled vertex attributes;
see Enabled Vertex Attributes and Range
Checking.
- WebGLActiveInfo? getActiveAttrib(WebGLProgram? program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns a new
WebGLActiveInfo object describing the size, type and name of
the vertex attribute at the passed index of the passed program object. If the passed
@@ -2655,7 +2655,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- WebGLActiveInfo? getActiveUniform(WebGLProgram? program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns a new
WebGLActiveInfo object describing the size, type and name of
the uniform at the passed index of the passed program object. If the passed index is out
@@ -2663,7 +2663,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- [WebGLHandlesContextLoss] GLint getAttribLocation(WebGLProgram? program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the passed name is longer than the restriction defined
in Maximum Uniform and Attribute Location Lengths,
@@ -2682,7 +2682,7 @@
Uniforms and attributes
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- any getUniform(WebGLProgram? program, WebGLUniformLocation? location)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the uniform value at the passed location in the passed program. The type returned is
dependent on the uniform type, as shown in the following table:
@@ -2710,7 +2710,7 @@
Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- WebGLUniformLocation? getUniformLocation(WebGLProgram? program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Return a new WebGLUniformLocation that represents the location of a
specific uniform variable within a program object. The return value is null if name does
@@ -2729,7 +2729,7 @@
Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getVertexAttrib(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the information requested in pname about the vertex attribute at the passed index. The
type returned is dependent on the information requested, as shown in the following table:
@@ -2747,14 +2747,14 @@
Uniforms and attributes
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Returns 0 if the context's webgl context lost
flag is set.
void uniform[1234][fi](WebGLUniformLocation? location, ...)
void uniform[1234][fi]v(WebGLUniformLocation? location, ...)
void uniformMatrix[234]fv(WebGLUniformLocation? location, GLboolean transpose, ...)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Each of the uniform* functions above sets the specified uniform or uniforms to the
values provided. If the passed
location is not null and was not obtained
@@ -2768,7 +2768,7 @@ Uniforms and attributes
invalid if it is too short for or is not an integer multiple of the assigned type.
void vertexAttrib[1234]f(GLuint indx, ...)
void vertexAttrib[1234]fv(GLuint indx, ...)
- (OpenGL ES 2.0 §2.7, man page)
+ (OpenGL ES 2.0 §2.7, man page)
-
Sets the vertex attribute at the passed index to the given constant value. Values set via the
vertexAttrib are guaranteed to be returned from the getVertexAttrib function
@@ -2776,7 +2776,7 @@ Uniforms and attributes
drawArrays or drawElements.
- void vertexAttribPointer(GLuint indx, GLint size, GLenum type,
GLboolean normalized, GLsizei stride, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Assign the WebGLBuffer object currently bound to the ARRAY_BUFFER target to the vertex
attribute at the passed index. Size is number of components per attribute. Stride and
@@ -2804,13 +2804,13 @@
Writing to the drawing buffer
- void clear(GLbitfield mask)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void drawArrays(GLenum mode, GLint first, GLsizei count)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
If first is negative, an
INVALID_VALUE error will be generated.
- void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Draw using the currently bound element array buffer. The given offset is in bytes, and
must be a valid multiple of the size of the given type or an
INVALID_OPERATION
@@ -2824,9 +2824,9 @@ Writing to the drawing buffer
and drawElements. See Enabled Vertex
Attributes and Range Checking.
- void finish()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
- void flush()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
@@ -2840,7 +2840,7 @@
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView? pixels)
- (OpenGL ES 2.0 §4.3.1, man page)
+ (OpenGL ES 2.0 §4.3.1, man page)
-
Fills
pixels with the pixel data in the specified rectangle of the frame
buffer. The data returned from readPixels must be up-to-date as of the most recently
diff --git a/specs/1.0.3/index.html b/specs/1.0.3/index.html
index 29b2f81e35..77048084e3 100644
--- a/specs/1.0.3/index.html
+++ b/specs/1.0.3/index.html
@@ -818,11 +818,11 @@ WebGLBuffer
The WebGLBuffer interface represents an OpenGL Buffer Object. The
underlying object is created as if by calling glGenBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
, bound as if by calling glBindBuffer
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
and destroyed as if by calling glDeleteBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
.
interface WebGLBuffer : WebGLObject {
@@ -835,11 +835,11 @@
The WebGLFramebuffer interface represents an OpenGL Framebuffer Object. The
underlying object is created as if by calling glGenFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
, bound as if by calling glBindFramebuffer
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
and destroyed as if by calling glDeleteFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
.
interface WebGLFramebuffer : WebGLObject {
@@ -852,11 +852,11 @@ WebGLProgram
The WebGLProgram interface represents an OpenGL Program Object. The
underlying object is created as if by calling glCreateProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
, used as if by calling glUseProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
.
interface WebGLProgram : WebGLObject {
@@ -869,11 +869,11 @@ WebGLRenderbuffer
The WebGLRenderbuffer interface represents an OpenGL Renderbuffer Object. The
underlying object is created as if by calling glGenRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
, bound as if by calling glBindRenderbuffer
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
and destroyed as if by calling glDeleteRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
.
interface WebGLRenderbuffer : WebGLObject {
@@ -886,11 +886,11 @@ WebGLShader
The WebGLShader interface represents an OpenGL Shader Object. The
underlying object is created as if by calling glCreateShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
, attached to a Program as if by calling glAttachShader
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and destroyed as if by calling glDeleteShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
.
interface WebGLShader : WebGLObject {
@@ -903,11 +903,11 @@ WebGLTexture
The WebGLTexture interface represents an OpenGL Texture Object. The
underlying object is created as if by calling glGenTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
, bound as if by calling glBindTexture
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
and destroyed as if by calling glDeleteTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
.
interface WebGLTexture : WebGLObject {
@@ -1855,56 +1855,56 @@ Setting and getting state
- void activeTexture(GLenum texture)
- (OpenGL ES 2.0 §3.7, man page)
+ (OpenGL ES 2.0 §3.7, man page)
- void blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquation(GLenum mode)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendFunc(GLenum sfactor, GLenum dfactor)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void clearDepth(GLclampf depth)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
-
depth value is clamped to the range 0 to 1.
- void clearStencil(GLint s)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void cullFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- void depthFunc(GLenum func)
- (OpenGL ES 2.0 §4.1.5, man page)
+ (OpenGL ES 2.0 §4.1.5, man page)
- void depthMask(GLboolean flag)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void depthRange(GLclampf zNear, GLclampf zFar)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
-
zNear and zFar values are clamped to the range 0 to 1 and
zNear must be less than or equal to zFar; see
Viewport Depth Range.
- void disable(GLenum cap)
- (man page)
+ (man page)
- void enable(GLenum cap)
- (man page)
+ (man page)
- void frontFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- any getParameter(GLenum pname)
-
+
(glGet OpenGL ES 2.0 man page)
-
+
(glGetString OpenGL ES 2.0 man page)
-
@@ -2016,26 +2016,26 @@
Setting and getting state
See Extension Queries for information on querying the
available extensions in the current WebGL implementation.
- [WebGLHandlesContextLoss] GLenum getError()
- (OpenGL ES 2.0 §2.5, man page)
+ (OpenGL ES 2.0 §2.5, man page)
-
If the context's webgl context lost flag is set,
returns
CONTEXT_LOST_WEBGL the first time this method is
called. Afterward, returns NO_ERROR until the context has
been restored.
- void hint(GLenum target, GLenum mode)
- (OpenGL ES 2.0 §5.2, man page)
+ (OpenGL ES 2.0 §5.2, man page)
- [WebGLHandlesContextLoss] GLboolean isEnabled(GLenum cap)
- (OpenGL ES 2.0 §6.1.1, man page)
+ (OpenGL ES 2.0 §6.1.1, man page)
-
Returns false if the context's webgl context lost
flag is set.
- void lineWidth(GLfloat width)
- (OpenGL ES 2.0 §3.4, man page)
+ (OpenGL ES 2.0 §3.4, man page)
-
See NaN Line Width for restrictions specified for WebGL.
- void pixelStorei(GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.6.1, man page)
+ (OpenGL ES 2.0 §3.6.1, man page)
-
In addition to the parameters in the OpenGL ES 2.0 specification, the WebGL
specification accepts the parameters
UNPACK_FLIP_Y_WEBGL,
@@ -2043,27 +2043,27 @@ Setting and getting state
and UNPACK_COLORSPACE_CONVERSION_WEBGL. See Pixel
Storage Parameters for documentation of these parameters.
- void polygonOffset(GLfloat factor, GLfloat units)
- (OpenGL ES 2.0 §3.5.2, man page)
+ (OpenGL ES 2.0 §3.5.2, man page)
- void sampleCoverage(GLclampf value, GLboolean invert)
- (OpenGL ES 2.0 §4.1.3, man page)
+ (OpenGL ES 2.0 §4.1.3, man page)
- void stencilFunc(GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable argument values.
- void stencilMask(GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable mask values.
- void stencilMaskSeparate(GLenum face, GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void stencilOp(GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
@@ -2089,10 +2089,10 @@ Viewing and clipping
- void scissor(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.1.2, man page)
+ (OpenGL ES 2.0 §4.1.2, man page)
- void viewport(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
@@ -2106,7 +2106,7 @@ Buffer objects
- void bindBuffer(GLenum target, WebGLBuffer? buffer)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Binds the given WebGLBuffer object to the given binding point (target), either
ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER. If the buffer is null then any buffer currently
@@ -2116,20 +2116,20 @@
Buffer objects
current binding will remain untouched.
- void bufferData(GLenum target, GLsizeiptr size, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target. The
buffer is initialized to 0.
void bufferData(GLenum target, BufferDataSource? data, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target to the
size of the passed data, then write the contents of data to the buffer object.
If the passed data is null then an INVALID_VALUE error is generated.
void bufferSubData(GLenum target, GLintptr offset, BufferDataSource? data)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
For the WebGLBuffer object bound to the passed target write the passed data starting at
the passed offset. If the data would be written past the end of the buffer object
@@ -2137,13 +2137,13 @@
Buffer objects
an INVALID_VALUE error is generated.
- WebGLBuffer? createBuffer()
- (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
-
Create a WebGLBuffer object and initialize it with a buffer object name as if by
calling glGenBuffers.
- void deleteBuffer(WebGLBuffer? buffer)
- (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
-
Delete the buffer object contained in the passed WebGLBuffer as if by calling
glDeleteBuffers. If the buffer has already been deleted the call has no effect.
@@ -2152,7 +2152,7 @@
Buffer objects
destroyed.
- any getBufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
-
Return the value for the passed pname. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2164,7 +2164,7 @@
Buffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isBuffer(WebGLBuffer? buffer)
- (OpenGL ES 2.0 §6.1.6, man page)
+ (OpenGL ES 2.0 §6.1.6, man page)
-
Return true if the passed WebGLBuffer is valid and false otherwise.
@@ -2184,7 +2184,7 @@ Framebuffer objects
- void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer)
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
-
Bind the given
WebGLFramebuffer object to the given binding point
(target), which must be FRAMEBUFFER.
@@ -2193,19 +2193,19 @@ Framebuffer objects
will generate an INVALID_OPERATION error.
- [WebGLHandlesContextLoss] GLenum checkFramebufferStatus(GLenum target)
- (OpenGL ES 2.0 §4.4.5, man page)
+ (OpenGL ES 2.0 §4.4.5, man page)
-
Returns
FRAMEBUFFER_UNSUPPORTED if the
context's webgl context lost flag is set.
- WebGLFramebuffer? createFramebuffer()
- (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
-
Create a WebGLFramebuffer object and initialize it with a framebuffer object name as if by
calling glGenFramebuffers.
- void deleteFramebuffer(WebGLFramebuffer? buffer)
- (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
-
Delete the framebuffer object contained in the passed WebGLFramebuffer as if by calling
glDeleteFramebuffers. If the framebuffer has already been deleted the call has no effect.
@@ -2216,13 +2216,13 @@
Framebuffer objects
- void framebufferRenderbuffer(GLenum target, GLenum attachment,
GLenum renderbuffertarget,
WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget,
WebGLTexture? texture, GLint level)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment,
GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
-
Return the value for the passed pname given the passed target and attachment. The type
returned is the natural type for the requested pname, as given in the following table:
@@ -2236,7 +2236,7 @@
Framebuffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isFramebuffer(WebGLFramebuffer? framebuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLFramebuffer is valid and false otherwise.
@@ -2255,7 +2255,7 @@ Renderbuffer objects
- void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
Bind the given
WebGLRenderbuffer object to the given binding point
(target), which must be RENDERBUFFER.
@@ -2263,13 +2263,13 @@ Renderbuffer objects
this target is unbound.
- WebGLRenderbuffer? createRenderbuffer()
- (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
-
Create a WebGLRenderbuffer object and initialize it with a renderbuffer object name as if by
calling glGenRenderbuffers.
- void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
-
Delete the renderbuffer object contained in the passed WebGLRenderbuffer as if by calling
glDeleteRenderbuffers. If the renderbuffer has already been deleted the call has no effect.
@@ -2277,7 +2277,7 @@
Renderbuffer objects
This method merely gives the author greater control over when the renderbuffer object is
destroyed.
- any getRenderbufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
-
Return the value for the passed pname given the passed target. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2296,7 +2296,7 @@
Renderbuffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLRenderbuffer is valid and false otherwise.
@@ -2304,7 +2304,7 @@ Renderbuffer objects
flag is set.
- void renderbufferStorage(GLenum target, GLenum internalformat,
GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
@@ -2319,14 +2319,14 @@ Texture objects
- void bindTexture(GLenum target, WebGLTexture? texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
void compressedTexSubImage2D(GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
-
If an attempt is made to call these functions with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2338,7 +2338,7 @@ Texture objects
- void copyTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLint x, GLint y, GLsizei width, GLsizei height,
GLint border)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2352,7 +2352,7 @@ Texture objects
per Reading from a Missing Attachment.
- void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2365,13 +2365,13 @@ Texture objects
an INVALID_OPERATION error is generated
per Reading from a Missing Attachment.
- WebGLTexture? createTexture()
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Create a WebGLTexture object and initialize it with a texture object name as if by
calling glGenTextures.
- void deleteTexture(WebGLTexture? texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Delete the texture object contained in the passed WebGLTexture as if by calling
glDeleteTextures. If the texture has already been deleted the call has no effect.
@@ -2379,12 +2379,12 @@
Texture objects
This method merely gives the author greater control over when the texture object is
destroyed.
- void generateMipmap(GLenum target)
- (OpenGL ES 2.0 §3.7.11, man page)
+ (OpenGL ES 2.0 §3.7.11, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- any getTexParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, man page)
+ (OpenGL ES 2.0 §6.1.3, man page)
-
Return the value for the passed pname given the passed target. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2400,7 +2400,7 @@
Texture objects
INVALID_OPERATION error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isTexture(WebGLTexture? texture)
- (OpenGL ES 2.0 §6.1.4, man page)
+ (OpenGL ES 2.0 §6.1.4, man page)
-
Return true if the passed WebGLTexture is valid and false otherwise.
@@ -2409,7 +2409,7 @@ Texture objects
- void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, GLenum format,
GLenum type, ArrayBufferView? pixels)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
If
pixels is null, a buffer of sufficient size initialized to 0 is
passed.
@@ -2427,7 +2427,7 @@ Texture objects
pixel storage parameters that affect the behavior of this function.
void texImage2D(GLenum target, GLint level, GLenum internalformat,
GLenum format, GLenum type, TexImageSource? source) /* May throw DOMException */
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
Uploads the given element or image data to the currently bound WebGLTexture.
@@ -2481,19 +2481,19 @@ Texture objects
See Pixel Storage Parameters for WebGL-specific
pixel storage parameters that affect the behavior of this function.
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texParameteri(GLenum target, GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView? pixels)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
See texImage2D for restrictions on the format
and pixels arguments.
@@ -2511,7 +2511,7 @@ Texture objects
pixel storage parameters that affect the behavior of this function.
void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLenum format, GLenum type, TexImageSource? source) /* May throw DOMException */
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
Updates a sub-rectangle of the currently bound WebGLTexture with the contents of the
given element or image data.
@@ -2560,9 +2560,9 @@ Programs and Shaders
- void attachShader(WebGLProgram? program, WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void bindAttribLocation(WebGLProgram? program, GLuint index, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the passed name is longer than the restriction defined
in Maximum Uniform and Attribute Location Lengths,
@@ -2575,7 +2575,7 @@
Programs and Shaders
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- void compileShader(WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
See Supported GLSL
Constructs, Maximum GLSL Token
@@ -2585,19 +2585,19 @@
Programs and Shaders
Varyings for additional constraints enforced in, additional constructs supported by,
and additional validation performed by WebGL implementations.
- WebGLProgram? createProgram()
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Create a WebGLProgram object and initialize it with a program object name as if by
calling glCreateProgram.
- WebGLShader? createShader(GLenum type)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Create a WebGLShader object and initialize it with a shader object name as if by
calling glCreateShader.
- void deleteProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Delete the program object contained in the passed WebGLProgram as if by calling
glDeleteProgram. If the program has already been deleted the call has no effect.
@@ -2605,7 +2605,7 @@
Programs and Shaders
This method merely gives the author greater control over when the program object is
destroyed.
- void deleteShader(WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Delete the shader object contained in the passed WebGLShader as if by calling
glDeleteShader. If the shader has already been deleted the call has no effect.
@@ -2613,16 +2613,16 @@
Programs and Shaders
This method merely gives the author greater control over when the shader object is
destroyed.
- void detachShader(WebGLProgram? program, WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- sequence<WebGLShader>? getAttachedShaders(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns a new object representing the list of shaders attached to the passed program.
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getProgramParameter(WebGLProgram? program, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed program. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2639,12 +2639,12 @@
Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getProgramInfoLog(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getShaderParameter(WebGLShader? shader, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Return the value for the passed pname given the passed shader. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2665,37 +2665,37 @@
Programs and Shaders
VERTEX_SHADER. The precisiontype value can be LOW_FLOAT, MEDIUM_FLOAT, HIGH_FLOAT,
LOW_INT, MEDIUM_INT or HIGH_INT.
- DOMString? getShaderInfoLog(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getShaderSource(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Returns null if any OpenGL errors are generated during the execution of this
function.
- [WebGLHandlesContextLoss] GLboolean isProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLProgram is valid and false otherwise.
Returns false if the program's invalidated
flag is set.
- [WebGLHandlesContextLoss] GLboolean isShader(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLShader is valid and false otherwise.
Returns false if the shader's invalidated
flag is set.
- void linkProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
See Packing Restrictions for Uniforms and Varyings
for additional constraints enforced in, and additional validation performed by, WebGL
implementations.
- void shaderSource(WebGLShader? shader, DOMString source)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
See Supported GLSL
Constructs, Maximum GLSL Token
@@ -2705,9 +2705,9 @@
Programs and Shaders
Varyings for additional constraints enforced in, additional constructs supported by,
and additional validation performed by WebGL implementations.
- void useProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
- void validateProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.5, man page)
+ (OpenGL ES 2.0 §2.10.5, man page)
@@ -2720,16 +2720,16 @@ Uniforms and attributes
- void disableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
- void enableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Enable the vertex attribute at
index as an array. WebGL imposes additional
rules beyond OpenGL ES 2.0 regarding enabled vertex attributes;
see Enabled Vertex Attributes and Range
Checking.
- WebGLActiveInfo? getActiveAttrib(WebGLProgram? program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns a new
WebGLActiveInfo object describing the size, type and name of
the vertex attribute at the passed index of the passed program object. If the passed
@@ -2737,7 +2737,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- WebGLActiveInfo? getActiveUniform(WebGLProgram? program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Returns a new
WebGLActiveInfo object describing the size, type and name of
the uniform at the passed index of the passed program object. If the passed index is out
@@ -2745,7 +2745,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- [WebGLHandlesContextLoss] GLint getAttribLocation(WebGLProgram? program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the passed name is longer than the restriction defined
in Maximum Uniform and Attribute Location Lengths,
@@ -2764,7 +2764,7 @@
Uniforms and attributes
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- any getUniform(WebGLProgram? program, WebGLUniformLocation? location)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the uniform value at the passed location in the passed program. The type returned is
dependent on the uniform type, as shown in the following table:
@@ -2792,7 +2792,7 @@
Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- WebGLUniformLocation? getUniformLocation(WebGLProgram? program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Return a new WebGLUniformLocation that represents the location of a
specific uniform variable within a program object. The return value is null if name does
@@ -2811,7 +2811,7 @@
Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getVertexAttrib(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the information requested in pname about the vertex attribute at the passed index. The
type returned is dependent on the information requested, as shown in the following table:
@@ -2829,14 +2829,14 @@
Uniforms and attributes
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Returns 0 if the context's webgl context lost
flag is set.
void uniform[1234][fi](WebGLUniformLocation? location, ...)
void uniform[1234][fi]v(WebGLUniformLocation? location, ...)
void uniformMatrix[234]fv(WebGLUniformLocation? location, GLboolean transpose, ...)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Each of the uniform* functions above sets the specified uniform or uniforms to the
values provided. If the passed
location is not null and was not obtained
@@ -2850,7 +2850,7 @@ Uniforms and attributes
invalid if it is too short for or is not an integer multiple of the assigned type.
void vertexAttrib[1234]f(GLuint indx, ...)
void vertexAttrib[1234]fv(GLuint indx, ...)
- (OpenGL ES 2.0 §2.7, man page)
+ (OpenGL ES 2.0 §2.7, man page)
-
Sets the vertex attribute at the passed index to the given constant value. Values set via the
vertexAttrib are guaranteed to be returned from the getVertexAttrib function
@@ -2858,7 +2858,7 @@ Uniforms and attributes
drawArrays or drawElements.
- void vertexAttribPointer(GLuint indx, GLint size, GLenum type,
GLboolean normalized, GLsizei stride, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Assign the WebGLBuffer object currently bound to the ARRAY_BUFFER target to the vertex
attribute at the passed index. Size is number of components per attribute. Stride and
@@ -2886,14 +2886,14 @@
@@ -2924,7 +2924,7 @@ Reading back pixels
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, ArrayBufferView? pixels)
- (OpenGL ES 2.0 §4.3.1, man page)
+ (OpenGL ES 2.0 §4.3.1, man page)
-
Fills
pixels with the pixel data in the specified rectangle of the frame
buffer. The data returned from readPixels must be up-to-date as of the most recently
diff --git a/specs/2.0.0/index.html b/specs/2.0.0/index.html
index 92d933eddc..317f1c15bc 100644
--- a/specs/2.0.0/index.html
+++ b/specs/2.0.0/index.html
@@ -975,7 +975,7 @@ More binding points
- void bindBuffer(GLenum target, WebGLBuffer? buffer)
- (OpenGL ES 3.0.4 §2.9.1, man page)
+ (OpenGL ES 3.0.4 §2.9.1, man page)
-
Binds the given WebGLBuffer object to the given binding point(target). target is given in the following table:
@@ -997,7 +997,7 @@
More binding points
- void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer)
- (OpenGL ES 3.0.4 §4.4.1, man page)
+ (OpenGL ES 3.0.4 §4.4.1, man page)
-
Binds the given WebGLFramebuffer object to the given binding point(target). target is given in the following table:
@@ -1013,7 +1013,7 @@
More binding points
- void bindTexture(GLenum target, WebGLTexture? texture)
- (OpenGL ES 3.0.4 §3.8.1, man page)
+ (OpenGL ES 3.0.4 §3.8.1, man page)
-
Binds the given WebGLTexture object to the given binding point(target). target is given in the following table:
@@ -1036,8 +1036,8 @@
Setting and getting state
- any getParameter(GLenum pname)
(OpenGL ES 3.0.4 §6.1.1,
- glGet OpenGL ES 3.0 man page,
- glGetString OpenGL ES 3.0 man page)
+ glGet OpenGL ES 3.0 man page,
+ glGetString OpenGL ES 3.0 man page)
-
Return the value for the passed pname. As well as supporting all
the pname/type values from WebGL 1.0, the following parameters are supported:
@@ -1113,7 +1113,7 @@
Setting and getting state
- any getIndexedParameter(GLenum target, GLuint index)
(OpenGL ES 3.0.4 §6.1.1,
- glGet OpenGL ES 3.0 man page)
+ glGet OpenGL ES 3.0 man page)
-
Return the indexed value for the passed
target. The type returned is the natural type for the requested pname,
as given in the following table:
@@ -1131,7 +1131,7 @@ Setting and getting state
If an OpenGL error is generated, returns null.
- GLboolean isEnabled(GLenum cap)
(OpenGL ES 3.0.4 §6.1.1,
- OpenGL ES 3.0 man page)
+ OpenGL ES 3.0 man page)
-
In addition to all of the
cap values from WebGL 1.0, RASTERIZER_DISCARD is supported.
- void pixelStorei(GLenum pname, GLint param)
@@ -1160,7 +1160,7 @@
Buffer objects
- void bufferData(GLenum target, ArrayBufferView srcData, GLenum usage, GLuint srcOffset, optional GLuint length = 0);
(OpenGL ES 3.0.4 §2.10.2,
- man page)
+ man page)
-
@@ -1195,7 +1195,7 @@
Buffer objects
- void bufferSubData(GLenum target, GLintptr dstByteOffset, ArrayBufferView srcData, GLuint srcOffset, optional GLuint length = 0);
(OpenGL ES 3.0.4 §2.10.2,
- man page)
+ man page)
-
@@ -1234,7 +1234,7 @@
Buffer objects
- any getBufferParameter(GLenum target, GLenum pname)
(OpenGL ES 3.0.4 §6.1.9,
- man page)
+ man page)
-
@@ -1246,7 +1246,7 @@
Buffer objects
void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
(OpenGL ES 3.0.4 §2.9.5,
- man page)
+ man page)
@@ -1316,7 +1316,7 @@ Framebuffer objects
- [WebGLHandlesContextLoss] GLenum checkFramebufferStatus(GLenum target)
- (OpenGL ES 3.0.4 §4.4.4, man page)
+ (OpenGL ES 3.0.4 §4.4.4, man page)
-
Only differences from checkFramebufferStatus in WebGL 1 are described here.
target must be DRAW_FRAMEBUFFER, READ_FRAMEBUFFER or FRAMEBUFFER. FRAMEBUFFER is equivalent to DRAW_FRAMEBUFFER.
@@ -1328,7 +1328,7 @@ Framebuffer objects
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment, GLenum pname)
- (OpenGL ES 3.0.4 §6.1.13, similar to glGetFramebufferAttachmentParameteriv)
+ (OpenGL ES 3.0.4 §6.1.13, similar to glGetFramebufferAttachmentParameteriv)
-
Return the value for the passed pname given the passed target and attachment. The type
@@ -1357,7 +1357,7 @@
Framebuffer objects
void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
(OpenGL ES 3.0.4 §4.3.3,
- man page)
+ man page)
@@ -1374,7 +1374,7 @@ Framebuffer objects
void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer)
(OpenGL ES 3.0.4 §4.4.2,
- man page)
+ man page)
@@ -1382,7 +1382,7 @@ Framebuffer objects
void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments)
(OpenGL ES 3.0.4 §4.5,
- man page)
+ man page)
@@ -1395,7 +1395,7 @@ Framebuffer objects
void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height)
(OpenGL ES 3.0.4 §4.5,
- man page)
+ man page)
@@ -1406,7 +1406,7 @@ Framebuffer objects
void readBuffer(GLenum src)
(OpenGL ES 3.0.4 §4.3.1,
- man page)
+ man page)
@@ -1424,7 +1424,7 @@ Renderbuffer objects
any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname)
(OpenGL ES 3.0.4 §6.1.15,
- man page)
+ man page)
@@ -1440,7 +1440,7 @@ Renderbuffer objects
Each query for SAMPLES returns a new typed array object instance.
- any getRenderbufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.14, similar to glGetRenderbufferParameteriv)
+ (OpenGL ES 2.0 §6.1.14, similar to glGetRenderbufferParameteriv)
-
Return the value for the passed pname given the passed target. The type returned is the natural
@@ -1465,19 +1465,19 @@
Renderbuffer objects
void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
(OpenGL ES 3.0.4 §4.4.2,
- man page)
+ man page)
-
-
Accepts internal formats from OpenGL ES 3.0 as detailed in the specification and man page.
+ Accepts internal formats from OpenGL ES 3.0 as detailed in the specification and man page.
To be backward compatible with WebGL 1, also accepts internal format DEPTH_STENCIL, which should be mapped to DEPTH24_STENCIL8 by implementations.
-
void renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
(OpenGL ES 3.0.4 §4.4.2,
- man page)
+ man page)
@@ -1496,7 +1496,7 @@ Texture objects
- any getTexParameter(GLenum target, GLenum pname)
- (OpenGL ES 3.0.4 §6.1.3, man page)
+ (OpenGL ES 3.0.4 §6.1.3, man page)
-
Return the value for the passed pname given the passed target. The type returned is the natural type for the
@@ -1523,7 +1523,7 @@
Texture objects
If an OpenGL error is generated, returns null.
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
- (OpenGL ES 3.0.4 §3.8.7, man page)
+ (OpenGL ES 3.0.4 §3.8.7, man page)
-
Set the value for the passed pname given the passed target. pname is given in the following table:
@@ -1546,7 +1546,7 @@
Texture objects
INVALID_OPERATION error.
- void texParameteri(GLenum target, GLenum pname, GLint param)
- (OpenGL ES 3.0.4 §3.8.7, man page)
+ (OpenGL ES 3.0.4 §3.8.7, man page)
-
Set the value for the passed pname given the passed target. pname is this same with that of texParameterf, as given in the table above.
@@ -1558,7 +1558,7 @@ Texture objects
void texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
(OpenGL ES 3.0.4 §3.8.4,
- man page)
+ man page)
@@ -1578,7 +1578,7 @@ Texture objects
void texStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)
(OpenGL ES 3.0.4 §3.8.4,
- man page)
+ man page)
@@ -1831,7 +1831,7 @@ Texture objects
optional GLuint srcOffset = 0)
(OpenGL ES 3.0.4 §3.8.5,
- man page)
+ man page)
@@ -1863,7 +1863,7 @@ Texture objects
TexImageSource source) // May throw DOMException
(OpenGL ES 3.0.4 §3.8.5,
- man page)
+ man page)
@@ -1886,7 +1886,7 @@ Texture objects
void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLintptr offset)
(OpenGL ES 3.0.4 §3.8.5,
- man page)
+ man page)
@@ -1905,7 +1905,7 @@ Texture objects
void copyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
(OpenGL ES 3.0.4 §3.8.5,
- man page)
+ man page)
@@ -1927,7 +1927,7 @@ Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
-
@@ -1949,7 +1949,7 @@
Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
-
@@ -1972,7 +1972,7 @@
Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
-
@@ -1994,7 +1994,7 @@
Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
-
@@ -2018,7 +2018,7 @@
Texture objects
void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLintptr offset)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
@@ -2026,7 +2026,7 @@ Texture objects
void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLintptr offset)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
@@ -2034,7 +2034,7 @@ Texture objects
void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLintptr offset)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
@@ -2042,7 +2042,7 @@ Texture objects
void compressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLintptr offset)
(OpenGL ES 3.0.4 §3.8.6,
- man page)
+ man page)
@@ -2064,12 +2064,12 @@ Programs and Shaders
[WebGLHandlesContextLoss] GLint getFragDataLocation(WebGLProgram program, DOMString name)
(OpenGL ES 3.0.4 §3.9.2,
- man page)
+ man page)
- any getProgramParameter(WebGLProgram? program, GLenum pname)
- (OpenGL ES 3.0.4 §6.1.12, man page)
+ (OpenGL ES 3.0.4 §6.1.12, man page)
-
Return the value for the passed pname given the passed program. The type returned is the natural
@@ -2101,7 +2101,7 @@
Uniforms and attributes
any getUniform(WebGLProgram program, WebGLUniformLocation location)
(OpenGL ES 3.0.4 §6.1.12,
- man page)
+ man page)
-
@@ -2130,7 +2130,7 @@
Uniforms and attributes
void uniformMatrix[234]x[234]fv(WebGLUniformLocation? location, ...)
(OpenGL ES 3.0.4 §2.11.6,
- man page)
+ man page)
@@ -2158,7 +2158,7 @@ Uniforms and attributes
void vertexAttribI4[u]iv(GLuint index, ...)
(OpenGL ES 3.0.4 §2.7,
- man page)
+ man page)
-
@@ -2171,7 +2171,7 @@
Uniforms and attributes
void vertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset)
(OpenGL ES 3.0.4 §2.8,
- man page)
+ man page)
@@ -2187,7 +2187,7 @@ Uniforms and attributes
stride is 255; see Vertex Attribute Data Stride.
- any getVertexAttrib(GLuint index, GLenum pname)
- (OpenGL ES 3.0.4 §6.1.12, man page)
+ (OpenGL ES 3.0.4 §6.1.12, man page)
-
Return the information requested in pname about the vertex attribute at the passed index. The
@@ -2224,7 +2224,7 @@
Writing to the drawing buffervoid clear(GLbitfield mask)
(OpenGL ES 3.0.4 §4.2.3,
- man page)
+ man page)
@@ -2236,7 +2236,7 @@ Writing to the drawing buffervoid vertexAttribDivisor(GLuint index, GLuint divisor)
(OpenGL ES 3.0.4 §2.8,
- man page)
+ man page)
@@ -2247,7 +2247,7 @@ Writing to the drawing buffervoid drawArrays(GLenum mode, GLint first, GLsizei count)
(OpenGL ES 3.0.4 §2.9.3,
- man page)
+ man page)
@@ -2255,7 +2255,7 @@ Writing to the drawing buffervoid drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset)
(OpenGL ES 3.0.4 §2.9.3,
- man page)
+ man page)
@@ -2263,7 +2263,7 @@ Writing to the drawing buffervoid drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount)
(OpenGL ES 3.0.4 §2.9.3,
- man page)
+ man page)
@@ -2275,7 +2275,7 @@ Writing to the drawing buffervoid drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei instanceCount)
(OpenGL ES 3.0.4 §2.9.3,
- man page)
+ man page)
@@ -2287,7 +2287,7 @@ Writing to the drawing buffervoid drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLintptr offset)
(OpenGL ES 3.0.4 §2.9.3,
- man page)
+ man page)
@@ -2326,7 +2326,7 @@ Reading back pixels
-
void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
GLenum type, ArrayBufferView dstData, GLuint dstOffset)
- (OpenGL ES 3.0 §4.3.2, man page)
+ (OpenGL ES 3.0 §4.3.2, man page)
-
If a WebGLBuffer is bound to the PIXEL_PACK_BUFFER target, generates an INVALID_OPERATION error.
@@ -2339,7 +2339,7 @@ Reading back pixels
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr offset)
- (OpenGL ES 3.0 §4.3.2, man page)
+ (OpenGL ES 3.0 §4.3.2, man page)
-
If no WebGLBuffer is bound to the PIXEL_PACK_BUFFER target, generates an
@@ -2361,7 +2361,7 @@
Multiple render targets
void drawBuffers(sequence<GLenum> buffers)
(OpenGL ES 3.0.4 §4.2.1,
- man page)
+ man page)
@@ -2379,7 +2379,7 @@ Multiple render targets
void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
(OpenGL ES 3.0.4 §4.2.3,
- man page)
+ man page)
@@ -2417,7 +2417,7 @@ Query objects
WebGLQuery? createQuery()
(OpenGL ES 3.0.4 §2.13,
- man page)
+ man page)
@@ -2428,7 +2428,7 @@ Query objects
void deleteQuery(WebGLQuery? query)
(OpenGL ES 3.0.4 §2.13,
- man page)
+ man page)
@@ -2442,7 +2442,7 @@ Query objects
[WebGLHandlesContextLoss] GLboolean isQuery(WebGLQuery? query)
(OpenGL ES 3.0.4 §6.1.7,
- man page)
+ man page)
@@ -2456,7 +2456,7 @@ Query objects
void beginQuery(GLenum target, WebGLQuery query)
(OpenGL ES 3.0.4 §2.13,
- man page)
+ man page)
@@ -2467,7 +2467,7 @@ Query objects
void endQuery(GLenum target)
(OpenGL ES 3.0.4 §2.13,
- man page)
+ man page)
@@ -2480,7 +2480,7 @@ Query objects
WebGLQuery? getQuery(GLenum target, GLenum pname)
(OpenGL ES 3.0.4 §6.1.7,
- man page)
+ man page)
@@ -2502,7 +2502,7 @@ Query objects
any getQueryParameter(WebGLQuery query, GLenum pname)
(OpenGL ES 3.0.4 §6.1.7,
- man page)
+ man page)
@@ -2565,7 +2565,7 @@ Sampler objects
WebGLSampler? createSampler()
(OpenGL ES 3.0.4 §3.8.2,
- man page)
+ man page)
@@ -2577,7 +2577,7 @@ Sampler objects
void deleteSampler(WebGLSampler? sampler)
(OpenGL ES 3.0.4 §3.8.2,
- man page)
+ man page)
@@ -2591,7 +2591,7 @@ Sampler objects
[WebGLHandlesContextLoss] GLboolean isSampler(WebGLSampler? sampler)
(OpenGL ES 3.0.4 §3.8.2,
- man page)
+ man page)
@@ -2605,7 +2605,7 @@ Sampler objects
void bindSampler(GLuint unit, WebGLSampler? sampler)
(OpenGL ES 3.0.4 §3.8.2,
- man page)
+ man page)
@@ -2624,7 +2624,7 @@ Sampler objects
void samplerParameterf(WebGLSampler sampler, GLenum pname, GLfloat param)
(OpenGL ES 3.0.4 §3.8.2,
- man page)
+ man page)
@@ -2646,7 +2646,7 @@ Sampler objects
If sampler is not a valid sampler object, generates an INVALID_OPERATION error.
- any getSamplerParameter(WebGLSampler sampler, GLenum pname)
- (OpenGL ES 3.0.4 §6.1.5, man page)
+ (OpenGL ES 3.0.4 §6.1.5, man page)
-
Return the information requested in pname about the given WebGLSampler, passed as sampler. The
@@ -2682,7 +2682,7 @@
Sync objects
WebGLSync? fenceSync(GLenum condition, GLbitfield flags)
(OpenGL ES 3.0.4 §5.2,
- man page)
+ man page)
@@ -2693,7 +2693,7 @@ Sync objects
[WebGLHandlesContextLoss] GLboolean isSync(WebGLSync? sync)
(OpenGL ES 3.0.4 §6.1.8,
- man page)
+ man page)
@@ -2707,7 +2707,7 @@ Sync objects
void deleteSync(WebGLSync? sync)
(OpenGL ES 3.0.4 §5.2,
- man page)
+ man page)
@@ -2721,7 +2721,7 @@ Sync objects
GLenum clientWaitSync(WebGLSync sync, GLbitfield flags, GLuint64 timeout)
(OpenGL ES 3.0.4 §5.2.1,
- man page)
+ man page)
@@ -2772,7 +2772,7 @@ Sync objects
void waitSync(WebGLSync sync, GLbitfield flags, GLint64 timeout)
(OpenGL ES 3.0.4 §5.2.1,
- man page)
+ man page)
@@ -2786,7 +2786,7 @@ Sync objects
- any getSyncParameter(WebGLSync sync, GLenum pname)
- (OpenGL ES 3.0.4 §6.1.8, man page)
+ (OpenGL ES 3.0.4 §6.1.8, man page)
-
Return the value for the passed pname given the passed WebGLSync object. The type returned is the natural
@@ -2825,14 +2825,14 @@
Transform feedback
- WebGLTransformFeedback? createTransformFeedback()
(OpenGL ES 3.0.4 §2.14.1,
- similar to glGenTransformFeedbacks)
+ similar to glGenTransformFeedbacks)
-
Create a
WebGLTransformFeedback object and initialize it with a transform feedback object name as if by
calling glGenTransformFeedbacks.
- void deleteTransformFeedback(WebGLTransformFeedback? transformFeedback)
(OpenGL ES 3.0.4 §2.14.1,
- similar to glDeleteTransformFeedbacks)
+ similar to glDeleteTransformFeedbacks)
-
Delete the transform feedback object contained in the passed
WebGLTransformFeedback as if by calling
glDeleteTransformFeedbacks. If the transform feedback has already been deleted the call has no effect.
@@ -2841,7 +2841,7 @@ Transform feedback
- [WebGLHandlesContextLoss] GLboolean isTransformFeedback(WebGLTransformFeedback? transformFeedback)
(OpenGL ES 3.0.4 §6.1.11,
- man page)
+ man page)
-
Return true if the passed
WebGLTransformFeedback is valid and false otherwise.
@@ -2850,7 +2850,7 @@ Transform feedback
- void bindTransformFeedback (GLenum target, WebGLTransformFeedback? transformFeedback)
(OpenGL ES 3.0.4 §2.14.1,
- man page)
+ man page)
-
Bind the given
WebGLTransformFeedback object.
If transformFeedback is null, the default transform feedback object provided by the context
@@ -2860,32 +2860,32 @@ Transform feedback
- void beginTransformFeedback(GLenum primitiveMode)
(OpenGL ES 3.0.4 §2.14.2,
- man page)
+ man page)
-
- void endTransformFeedback()
(OpenGL ES 3.0.4 §2.14.2,
- man page)
+ man page)
-
- void pauseTransformFeedback()
(OpenGL ES 3.0.4 §2.14.2,
- man page)
+ man page)
-
- void resumeTransformFeedback()
(OpenGL ES 3.0.4 §2.14.2,
- man page)
+ man page)
-
- void transformFeedbackVaryings(WebGLProgram program, sequence<DOMString> varyings, GLenum bufferMode)
(OpenGL ES 3.0.4 §2.11.8,
- man page)
+ man page)
-
- WebGLActiveInfo? getTransformFeedbackVarying(WebGLProgram program, GLuint index)
(OpenGL ES 3.0.4 §2.11.8,
- man page)
+ man page)
-
diff --git a/specs/latest/1.0/index.html b/specs/latest/1.0/index.html
index f1c33b12de..8bf10e52b7 100644
--- a/specs/latest/1.0/index.html
+++ b/specs/latest/1.0/index.html
@@ -1026,11 +1026,11 @@ WebGLBuffer
The WebGLBuffer interface represents an OpenGL Buffer Object. The
underlying object is created as if by calling glGenBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
, bound as if by calling glBindBuffer
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
and marked for deletion as if by calling glDeleteBuffers
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
.
[Exposed=(Window,Worker)]
@@ -1044,11 +1044,11 @@ WebGLFramebuffer
The WebGLFramebuffer interface represents an OpenGL Framebuffer Object. The
underlying object is created as if by calling glGenFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
, bound as if by calling glBindFramebuffer
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
and marked for deletion as if by calling glDeleteFramebuffers
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
.
[Exposed=(Window,Worker)]
@@ -1062,11 +1062,11 @@ WebGLProgram
The WebGLProgram interface represents an OpenGL Program Object. The
underlying object is created as if by calling glCreateProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
, used as if by calling glUseProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and marked for deletion as if by calling glDeleteProgram
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
.
[Exposed=(Window,Worker)]
@@ -1080,11 +1080,11 @@ WebGLRenderbuffer
The WebGLRenderbuffer interface represents an OpenGL Renderbuffer Object. The
underlying object is created as if by calling glGenRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
, bound as if by calling glBindRenderbuffer
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
and marked for deletion as if by calling glDeleteRenderbuffers
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
.
[Exposed=(Window,Worker)]
@@ -1098,11 +1098,11 @@ WebGLShader
The WebGLShader interface represents an OpenGL Shader Object. The
underlying object is created as if by calling glCreateShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
, attached to a Program as if by calling glAttachShader
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
and marked for deletion as if by calling glDeleteShader
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
.
[Exposed=(Window,Worker)]
@@ -1116,11 +1116,11 @@ WebGLTexture
The WebGLTexture interface represents an OpenGL Texture Object. The
underlying object is created as if by calling glGenTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
, bound as if by calling glBindTexture
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
and marked for deletion as if by calling glDeleteTextures
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
.
[Exposed=(Window,Worker)]
@@ -2123,58 +2123,58 @@ Setting and getting state
- void activeTexture(GLenum texture)
- (OpenGL ES 2.0 §3.7, man page)
+ (OpenGL ES 2.0 §3.7, man page)
- void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
blendColor clamps its arguments to the range 0 to 1 in WebGL 1.0, unless EXT_color_buffer_half_float or WEBGL_color_buffer_float are enabled.
- void blendEquation(GLenum mode)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
- void blendFunc(GLenum sfactor, GLenum dfactor)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
- (OpenGL ES 2.0 §4.1.6, man page)
+ (OpenGL ES 2.0 §4.1.6, man page)
-
See Blending With Constant Color for limitations imposed
by WebGL.
- void clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void clearDepth(GLclampf depth)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
-
depth value is clamped to the range 0 to 1.
- void clearStencil(GLint s)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
- void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void cullFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- void depthFunc(GLenum func)
- (OpenGL ES 2.0 §4.1.5, man page)
+ (OpenGL ES 2.0 §4.1.5, man page)
- void depthMask(GLboolean flag)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void depthRange(GLclampf zNear, GLclampf zFar)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
-
zNear and zFar values are clamped to the range 0 to 1 and
zNear must be less than or equal to zFar; see
Viewport Depth Range.
- void disable(GLenum cap)
- (man page)
+ (man page)
- void enable(GLenum cap)
- (man page)
+ (man page)
- void frontFace(GLenum mode)
- (OpenGL ES 2.0 §3.5.1, man page)
+ (OpenGL ES 2.0 §3.5.1, man page)
- any getParameter(GLenum pname)
-
+
(glGet OpenGL ES 2.0 man page)
-
+
(glGetString OpenGL ES 2.0 man page)
-
@@ -2292,16 +2292,16 @@
Setting and getting state
See Extension Queries for information on querying the
available extensions in the current WebGL implementation.
- [WebGLHandlesContextLoss] GLenum getError()
- (OpenGL ES 2.0 §2.5, man page)
+ (OpenGL ES 2.0 §2.5, man page)
-
If the context's webgl context lost flag is set,
returns
CONTEXT_LOST_WEBGL the first time this method is
called. Afterward, returns NO_ERROR until the context has
been restored.
- void hint(GLenum target, GLenum mode)
- (OpenGL ES 2.0 §5.2, man page)
+ (OpenGL ES 2.0 §5.2, man page)
- [WebGLHandlesContextLoss] GLboolean isEnabled(GLenum cap)
- (OpenGL ES 2.0 §6.1.1, man page)
+ (OpenGL ES 2.0 §6.1.1, man page)
-
For any
isEnabled query, the same boolean value can be obtained via
getParameter.
@@ -2309,12 +2309,12 @@ Setting and getting state
Returns false if the context's webgl context lost
flag is set.
- void lineWidth(GLfloat width)
- (OpenGL ES 2.0 §3.4, man page)
+ (OpenGL ES 2.0 §3.4, man page)
-
See NaN Line Width for restrictions specified for WebGL.
- void pixelStorei(GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.6.1, man page)
+ (OpenGL ES 2.0 §3.6.1, man page)
-
In addition to the parameters in the OpenGL ES 2.0 specification, the WebGL
specification accepts the parameters
UNPACK_FLIP_Y_WEBGL,
@@ -2322,27 +2322,27 @@ Setting and getting state
and UNPACK_COLORSPACE_CONVERSION_WEBGL. See Pixel
Storage Parameters for documentation of these parameters.
- void polygonOffset(GLfloat factor, GLfloat units)
- (OpenGL ES 2.0 §3.5.2, man page)
+ (OpenGL ES 2.0 §3.5.2, man page)
- void sampleCoverage(GLclampf value, GLboolean invert)
- (OpenGL ES 2.0 §4.1.3, man page)
+ (OpenGL ES 2.0 §4.1.3, man page)
- void stencilFunc(GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable argument values.
- void stencilMask(GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
-
See Stencil Separate Mask and Reference Value for information
on WebGL specific limitations to the allowable mask values.
- void stencilMaskSeparate(GLenum face, GLuint mask)
- (OpenGL ES 2.0 §4.2.2, man page)
+ (OpenGL ES 2.0 §4.2.2, man page)
- void stencilOp(GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
- void stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
- (OpenGL ES 2.0 §4.1.4, man page)
+ (OpenGL ES 2.0 §4.1.4, man page)
@@ -2368,10 +2368,10 @@ Viewing and clipping
- void scissor(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.1.2, man page)
+ (OpenGL ES 2.0 §4.1.2, man page)
- void viewport(GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §2.12.1, man page)
+ (OpenGL ES 2.0 §2.12.1, man page)
@@ -2385,7 +2385,7 @@ Buffer objects
- void bindBuffer(GLenum target, WebGLBuffer? buffer)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
If
buffer was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -2400,20 +2400,20 @@ Buffer objects
INVALID_OPERATION error, and the current binding will remain untouched.
- void bufferData(GLenum target, GLsizeiptr size, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target. The
buffer is initialized to 0.
- void bufferData(GLenum target, AllowSharedBufferSource? data, GLenum usage)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
Set the size of the currently bound WebGLBuffer object for the passed target to the
size of the passed data, then write the contents of data to the buffer object.
If the passed data is null then an INVALID_VALUE error is generated.
void bufferSubData(GLenum target, GLintptr offset, AllowSharedBufferSource data)
- (OpenGL ES 2.0 §2.9, man page)
+ (OpenGL ES 2.0 §2.9, man page)
-
For the WebGLBuffer object bound to the passed target write the passed data starting at
the passed offset. If the data would be written past the end of the buffer object
@@ -2421,13 +2421,13 @@
Buffer objects
an INVALID_VALUE error is generated.
- WebGLBuffer createBuffer()
- (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glGenBuffers)
-
Create a WebGLBuffer object and initialize it with a buffer object name as if by
calling glGenBuffers.
- void deleteBuffer(WebGLBuffer? buffer)
- (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
+ (OpenGL ES 2.0 §2.9, similar to glDeleteBuffers)
-
If
buffer was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -2438,7 +2438,7 @@ Buffer objects
destroyed, however this method allows authors to mark an object for deletion early.
- any getBufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetBufferParameteriv)
-
Return the value for the passed pname. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2450,7 +2450,7 @@
Buffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isBuffer(WebGLBuffer? buffer)
- (OpenGL ES 2.0 §6.1.6, man page)
+ (OpenGL ES 2.0 §6.1.6, man page)
-
Return true if the passed WebGLBuffer is valid and false otherwise.
@@ -2473,7 +2473,7 @@ Framebuffer objects
- void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer)
- (OpenGL ES 2.0 §4.4.1, man page)
+ (OpenGL ES 2.0 §4.4.1, man page)
-
If
framebuffer was generated by a
different WebGLRenderingContext than this one, generates
@@ -2488,19 +2488,19 @@ Framebuffer objects
INVALID_OPERATION error, and the current binding will remain untouched.
- [WebGLHandlesContextLoss] GLenum checkFramebufferStatus(GLenum target)
- (OpenGL ES 2.0 §4.4.5, man page)
+ (OpenGL ES 2.0 §4.4.5, man page)
-
Returns
FRAMEBUFFER_UNSUPPORTED if the
context's webgl context lost flag is set.
- WebGLFramebuffer createFramebuffer()
- (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glGenFramebuffers)
-
Create a WebGLFramebuffer object and initialize it with a framebuffer object name as if by
calling glGenFramebuffers.
- void deleteFramebuffer(WebGLFramebuffer? buffer)
- (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
+ (OpenGL ES 2.0 §4.4.1, similar to glDeleteFramebuffers)
-
If
framebuffer was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -2514,19 +2514,19 @@ Framebuffer objects
- void framebufferRenderbuffer(GLenum target, GLenum attachment,
GLenum renderbuffertarget,
WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
If
renderbuffer was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
- void framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget,
WebGLTexture? texture, GLint level)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
If
texture was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment,
GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetFramebufferAttachmentParameteriv)
-
Return the value for the passed pname given the passed target and attachment. The type
returned is the natural type for the requested pname, as given in the following table:
@@ -2540,7 +2540,7 @@
Framebuffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isFramebuffer(WebGLFramebuffer? framebuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLFramebuffer is valid and false otherwise.
@@ -2562,7 +2562,7 @@ Renderbuffer objects
- void bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
-
If
renderbuffer was generated by a
different WebGLRenderingContext than this one, generates
@@ -2576,13 +2576,13 @@ Renderbuffer objects
INVALID_OPERATION error, and the current binding will remain untouched.
- WebGLRenderbuffer createRenderbuffer()
- (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glGenRenderbuffers)
-
Create a WebGLRenderbuffer object and initialize it with a renderbuffer object name as if by
calling glGenRenderbuffers.
- void deleteRenderbuffer(WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
+ (OpenGL ES 2.0 §4.4.3, similar to glDeleteRenderbuffers)
-
If
renderbuffer was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -2593,7 +2593,7 @@ Renderbuffer objects
destroyed, however this method allows authors to mark an object for deletion early.
- any getRenderbufferParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
+ (OpenGL ES 2.0 §6.1.3, similar to glGetRenderbufferParameteriv)
-
Return the value for the passed pname given the passed target. The type returned is the natural
type for the requested pname, as given in the following table:
@@ -2612,7 +2612,7 @@
Renderbuffer objects
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isRenderbuffer(WebGLRenderbuffer? renderbuffer)
- (OpenGL ES 2.0 §6.1.7, man page)
+ (OpenGL ES 2.0 §6.1.7, man page)
-
Return true if the passed WebGLRenderbuffer is valid and false otherwise.
@@ -2623,7 +2623,7 @@ Renderbuffer objects
flag is set.
- void renderbufferStorage(GLenum target, GLenum internalformat,
GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §4.4.3, man page)
+ (OpenGL ES 2.0 §4.4.3, man page)
@@ -2638,7 +2638,7 @@ Texture objects
- void bindTexture(GLenum target, WebGLTexture? texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
If
texture was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -2648,10 +2648,10 @@ Texture objects
void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLsizei width, GLsizei height, GLint border, [AllowShared] ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
void compressedTexSubImage2D(GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, [AllowShared] ArrayBufferView pixels)
- (OpenGL ES 2.0 §3.7.3, man page)
+ (OpenGL ES 2.0 §3.7.3, man page)
-
If an attempt is made to call these functions with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
@@ -2663,7 +2663,7 @@ Texture objects
- void copyTexImage2D(GLenum target, GLint level, GLenum internalformat,
GLint x, GLint y, GLsizei width, GLsizei height,
GLint border)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
A [Read Operation].
@@ -2686,7 +2686,7 @@ Texture objects
per Reading from a Missing Attachment.
- void copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLint x, GLint y, GLsizei width, GLsizei height)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
A [Read Operation].
@@ -2701,13 +2701,13 @@ Texture objects
an INVALID_OPERATION error is generated
per Reading from a Missing Attachment.
- WebGLTexture createTexture()
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
Create a WebGLTexture object and initialize it with a texture object name as if by
calling glGenTextures.
- void deleteTexture(WebGLTexture? texture)
- (OpenGL ES 2.0 §3.7.13, man page)
+ (OpenGL ES 2.0 §3.7.13, man page)
-
If
texture was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -2718,12 +2718,12 @@ Texture objects
destroyed, however this method allows authors to mark an object for deletion early.
- void generateMipmap(GLenum target)
- (OpenGL ES 2.0 §3.7.11, man page)
+ (OpenGL ES 2.0 §3.7.11, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- any getTexParameter(GLenum target, GLenum pname)
- (OpenGL ES 2.0 §6.1.3, man page)
+ (OpenGL ES 2.0 §6.1.3, man page)
-
Return the value for the passed pname given the passed target. The type returned is the natural type for the
requested pname, as given in the following table:
@@ -2739,7 +2739,7 @@
Texture objects
INVALID_OPERATION error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLboolean isTexture(WebGLTexture? texture)
- (OpenGL ES 2.0 §6.1.4, man page)
+ (OpenGL ES 2.0 §6.1.4, man page)
-
Return true if the passed WebGLTexture is valid and false otherwise.
@@ -2751,7 +2751,7 @@ Texture objects
- void texImage2D(GLenum target, GLint level, GLint internalformat,
GLsizei width, GLsizei height, GLint border, GLenum format,
GLenum type, [AllowShared] ArrayBufferView? pixels)
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
If
pixels is null, a buffer of sufficient size initialized to 0 is
passed.
@@ -2773,7 +2773,7 @@ Texture objects
void texImage2D(GLenum target, GLint level, GLint internalformat,
GLenum format, GLenum type, TexImageSource source) /* May throw DOMException */
- (OpenGL ES 2.0 §3.7.1, man page)
+ (OpenGL ES 2.0 §3.7.1, man page)
-
Uploads the given element or image data to the currently bound WebGLTexture.
@@ -2902,19 +2902,19 @@ Texture objects
If source is null then an INVALID_VALUE error is
generated.
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texParameteri(GLenum target, GLenum pname, GLint param)
- (OpenGL ES 2.0 §3.7.4, man page)
+ (OpenGL ES 2.0 §3.7.4, man page)
-
If an attempt is made to call this function with no WebGLTexture bound (see above), an
INVALID_OPERATION error is generated.
- void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLsizei width, GLsizei height,
GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels)
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
See texImage2D for restrictions on the format
and pixels arguments.
@@ -2934,7 +2934,7 @@ Texture objects
pixel storage parameters that affect the behavior of this function.
void texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset,
GLenum format, GLenum type, TexImageSource source) /* May throw DOMException */
- (OpenGL ES 2.0 §3.7.2, man page)
+ (OpenGL ES 2.0 §3.7.2, man page)
-
Updates a sub-rectangle of the currently bound WebGLTexture with the contents of the
given element or image data.
@@ -2988,13 +2988,13 @@ Programs and Shaders
- void attachShader(WebGLProgram program, WebGLShader shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
If either
program or shader were generated by a different
WebGLRenderingContext than this one, generates
an INVALID_OPERATION error.
- void bindAttribLocation(WebGLProgram program, GLuint index, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3010,7 +3010,7 @@ Programs and Shaders
See Characters Outside the GLSL Source Character
Set for additional validation performed by WebGL implementations.
- void compileShader(WebGLShader shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
If
shader was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3023,19 +3023,19 @@ Programs and Shaders
Varyings for additional constraints enforced in, additional constructs supported by,
and additional validation performed by WebGL implementations.
- WebGLProgram createProgram()
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
Create a WebGLProgram object and initialize it with a program object name as if by
calling glCreateProgram.
- WebGLShader? createShader(GLenum type)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
Create a WebGLShader object and initialize it with a shader object name as if by
calling glCreateShader.
- void deleteProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3047,7 +3047,7 @@ Programs and Shaders
destroyed, however this method allows authors to mark an object for deletion early.
- void deleteShader(WebGLShader? shader)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
If
shader was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3059,13 +3059,13 @@ Programs and Shaders
destroyed, however this method allows authors to mark an object for deletion early.
- void detachShader(WebGLProgram program, WebGLShader shader)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
If either
program or shader were generated by a different
WebGLRenderingContext than this one, generates
an INVALID_OPERATION error.
- sequence<WebGLShader>? getAttachedShaders(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3075,7 +3075,7 @@ Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getProgramParameter(WebGLProgram program, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3095,7 +3095,7 @@ Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getProgramInfoLog(WebGLProgram program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3103,7 +3103,7 @@ Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- any getShaderParameter(WebGLShader shader, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
If
shader was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3130,7 +3130,7 @@ Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getShaderInfoLog(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
If
shader was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3138,7 +3138,7 @@ Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- DOMString? getShaderSource(WebGLShader shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
If
shader was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3146,7 +3146,7 @@ Programs and Shaders
Returns null if any OpenGL errors are generated during the execution of this
function.
- [WebGLHandlesContextLoss] GLboolean isProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLProgram is valid and false otherwise.
@@ -3155,7 +3155,7 @@ Programs and Shaders
Returns false if the program's invalidated
flag is set.
- [WebGLHandlesContextLoss] GLboolean isShader(WebGLShader? shader)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return true if the passed WebGLShader is valid and false otherwise.
@@ -3165,7 +3165,7 @@ Programs and Shaders
Returns false if the shader's invalidated
flag is set.
- void linkProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3199,7 +3199,7 @@ Programs and Shaders
implementations.
- void shaderSource(WebGLShader shader, DOMString source)
- (OpenGL ES 2.0 §2.10.1, man page)
+ (OpenGL ES 2.0 §2.10.1, man page)
-
If
shader was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3212,12 +3212,12 @@ Programs and Shaders
Varyings for additional constraints enforced in, additional constructs supported by,
and additional validation performed by WebGL implementations.
- void useProgram(WebGLProgram? program)
- (OpenGL ES 2.0 §2.10.3, man page)
+ (OpenGL ES 2.0 §2.10.3, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
- void validateProgram(WebGLProgram program)
- (OpenGL ES 2.0 §2.10.5, man page)
+ (OpenGL ES 2.0 §2.10.5, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3233,16 +3233,16 @@ Uniforms and attributes
- void disableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
- void enableVertexAttribArray(GLuint index)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Enable the vertex attribute at
index as an array. WebGL imposes additional
rules beyond OpenGL ES 2.0 regarding enabled vertex attributes;
see Enabled Vertex Attributes and Range
Checking.
- WebGLActiveInfo? getActiveAttrib(WebGLProgram program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3253,7 +3253,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- WebGLActiveInfo? getActiveUniform(WebGLProgram program, GLuint index)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error.
@@ -3264,7 +3264,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- [WebGLHandlesContextLoss] GLint getAttribLocation(WebGLProgram program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If the context's webgl context lost flag is set,
generates no error and returns -1 regardless of the passed parameters.
@@ -3294,7 +3294,7 @@ Uniforms and attributes
per GLSL Constructs and none of the error conditions
described above apply, generates no error and returns -1.
- any getUniform(WebGLProgram program, WebGLUniformLocation location)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
If either
program or location were generated by a
different WebGLRenderingContext than this one, generates
@@ -3326,7 +3326,7 @@ Uniforms and attributes
Returns null if any OpenGL errors are generated during the execution of this
function.
- WebGLUniformLocation? getUniformLocation(WebGLProgram program, DOMString name)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
If
program was generated by a different WebGLRenderingContext
than this one, generates an INVALID_OPERATION error and returns null.
@@ -3353,7 +3353,7 @@ Uniforms and attributes
specific uniform variable within a program object. The return value is null if name does
not correspond to an active uniform variable in the passed program.
- any getVertexAttrib(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, man page)
+ (OpenGL ES 2.0 §6.1.8, man page)
-
Return the information requested in pname about the vertex attribute at the passed index. The
type returned is dependent on the information requested, as shown in the following table:
@@ -3371,14 +3371,14 @@
Uniforms and attributes
If pname is not in the table above, generates an INVALID_ENUM error.
If an OpenGL error is generated, returns null.
- [WebGLHandlesContextLoss] GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname)
- (OpenGL ES 2.0 §6.1.8, similar to man page)
+ (OpenGL ES 2.0 §6.1.8, similar to man page)
-
Returns 0 if the context's webgl context lost
flag is set.
void uniform[1234][fi](WebGLUniformLocation? location, ...)
void uniform[1234][fi]v(WebGLUniformLocation? location, ...)
void uniformMatrix[234]fv(WebGLUniformLocation? location, GLboolean transpose, ...)
- (OpenGL ES 2.0 §2.10.4, man page)
+ (OpenGL ES 2.0 §2.10.4, man page)
-
Each of the uniform* functions above sets the specified uniform or uniforms to the
values provided. If the passed
location is not null and was not obtained
@@ -3398,7 +3398,7 @@ Uniforms and attributes
uniform itself.
void vertexAttrib[1234]f(GLuint index, ...)
void vertexAttrib[1234]fv(GLuint index, ...)
- (OpenGL ES 2.0 §2.7, man page)
+ (OpenGL ES 2.0 §2.7, man page)
-
Sets the vertex attribute at the passed index to the given constant value. Values set via the
vertexAttrib are guaranteed to be returned from the getVertexAttrib function
@@ -3410,7 +3410,7 @@ Uniforms and attributes
- void vertexAttribPointer(GLuint index, GLint size, GLenum type,
GLboolean normalized, GLsizei stride, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
Assign the WebGLBuffer object currently bound to the ARRAY_BUFFER target to the vertex
attribute at the passed index. Size is number of components per attribute. Stride and
@@ -3460,18 +3460,18 @@
Draw Operations
- void clear(GLbitfield mask)
- (OpenGL ES 2.0 §4.2.3, man page)
+ (OpenGL ES 2.0 §4.2.3, man page)
-
A [Draw Operation].
- void drawArrays(GLenum mode, GLint first, GLsizei count)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
A [Draw Operation].
If first is negative, an INVALID_VALUE error will be generated.
If the CURRENT_PROGRAM is null, an INVALID_OPERATION error will be generated.
- void drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset)
- (OpenGL ES 2.0 §2.8, man page)
+ (OpenGL ES 2.0 §2.8, man page)
-
A [Draw Operation].
@@ -3490,9 +3490,9 @@ Draw Operations
and drawElements. See Enabled Vertex
Attributes and Range Checking.
- void finish()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
- void flush()
- (OpenGL ES 2.0 §5.1, man page)
+ (OpenGL ES 2.0 §5.1, man page)
@@ -3516,7 +3516,7 @@ Read Operations
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, [AllowShared] ArrayBufferView? pixels)
- (OpenGL ES 2.0 §4.3.1, man page)
+ (OpenGL ES 2.0 §4.3.1, man page)
-
A [Read Operation].
diff --git a/specs/latest/2.0/index.html b/specs/latest/2.0/index.html
index 95011c086a..827b0a7ea1 100644
--- a/specs/latest/2.0/index.html
+++ b/specs/latest/2.0/index.html
@@ -1012,7 +1012,7 @@ More binding points
- void bindBuffer(GLenum target, WebGLBuffer? buffer)
(OpenGL ES 3.0.6 §2.10.1,
- man page)
+ man page)
-
@@ -1037,7 +1037,7 @@
More binding points
- void bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer)
(OpenGL ES 3.0.6 §4.4.1,
- man page)
+ man page)
-
@@ -1054,7 +1054,7 @@
More binding points
- void bindTexture(GLenum target, WebGLTexture? texture)
(OpenGL ES 3.0.6 §3.8.1,
- man page)
+ man page)
-
@@ -1078,8 +1078,8 @@
Setting and getting state
- any getParameter(GLenum pname)
(OpenGL ES 3.0.6 §6.1.1,
- glGet OpenGL ES 3.0 man page,
- glGetString OpenGL ES 3.0 man page)
+ glGet OpenGL ES 3.0 man page,
+ glGetString OpenGL ES 3.0 man page)
-
Return the value for the passed pname. As well as supporting all
@@ -1157,7 +1157,7 @@
Setting and getting state
- any getIndexedParameter(GLenum target, GLuint index)
(OpenGL ES 3.0.6 §6.1.1,
- glGet OpenGL ES 3.0 man page)
+ glGet OpenGL ES 3.0 man page)
-
Return the indexed value for the passed
target. The type returned is the natural type for the requested pname,
@@ -1177,7 +1177,7 @@ Setting and getting state
- GLboolean isEnabled(GLenum cap)
(OpenGL ES 3.0.6 §6.1.1,
- OpenGL ES 3.0 man page)
+ OpenGL ES 3.0 man page)
-
In addition to all of the
cap values from WebGL 1.0, RASTERIZER_DISCARD is supported.
@@ -1210,7 +1210,7 @@ Buffer objects
- void bufferData(GLenum target, [AllowShared] ArrayBufferView srcData, GLenum usage, unsigned long long srcOffset, optional GLuint length = 0);
(OpenGL ES 3.0.6 §2.10.2,
- man page)
+ man page)
-
@@ -1245,7 +1245,7 @@
Buffer objects
- void bufferSubData(GLenum target, GLintptr dstByteOffset, [AllowShared] ArrayBufferView srcData, unsigned long long srcOffset, optional GLuint length = 0);
(OpenGL ES 3.0.6 §2.10.2,
- man page)
+ man page)
-
@@ -1284,7 +1284,7 @@
Buffer objects
- any getBufferParameter(GLenum target, GLenum pname)
(OpenGL ES 3.0.6 §6.1.9,
- man page)
+ man page)
-
@@ -1296,7 +1296,7 @@
Buffer objects
void copyBufferSubData(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
(OpenGL ES 3.0.6 §2.10.5,
- man page)
+ man page)
@@ -1391,7 +1391,7 @@ Framebuffer objects
- [WebGLHandlesContextLoss] GLenum checkFramebufferStatus(GLenum target)
(OpenGL ES 3.0.6 §4.4.4.2,
- man page)
+ man page)
-
Only differences from checkFramebufferStatus in WebGL 1.0 are described here.
@@ -1406,7 +1406,7 @@ Framebuffer objects
- any getFramebufferAttachmentParameter(GLenum target, GLenum attachment, GLenum pname)
(OpenGL ES 3.0.6 §6.1.13,
- similar to glGetFramebufferAttachmentParameteriv)
+ similar to glGetFramebufferAttachmentParameteriv)
-
@@ -1436,7 +1436,7 @@
Framebuffer objects
void blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
(OpenGL ES 3.0.6 §4.3.3,
- man page)
+ man page)
@@ -1471,7 +1471,7 @@ Framebuffer objects
void framebufferTextureLayer(GLenum target, GLenum attachment, WebGLTexture? texture, GLint level, GLint layer)
(OpenGL ES 3.0.6 §4.4.2.4,
- man page)
+ man page)
@@ -1483,7 +1483,7 @@ Framebuffer objects
void invalidateFramebuffer(GLenum target, sequence<GLenum> attachments)
(OpenGL ES 3.0.6 §4.5,
- man page)
+ man page)
@@ -1498,7 +1498,7 @@ Framebuffer objects
void invalidateSubFramebuffer (GLenum target, sequence<GLenum> attachments, GLint x, GLint y, GLsizei width, GLsizei height)
(OpenGL ES 3.0.6 §4.5,
- man page)
+ man page)
@@ -1511,7 +1511,7 @@ Framebuffer objects
void readBuffer(GLenum src)
(OpenGL ES 3.0.6 §4.3.1,
- man page)
+ man page)
@@ -1529,7 +1529,7 @@ Renderbuffer objects
any getInternalformatParameter(GLenum target, GLenum internalformat, GLenum pname)
(OpenGL ES 3.0.6 §6.1.15,
- man page)
+ man page)
@@ -1547,7 +1547,7 @@ Renderbuffer objects
- any getRenderbufferParameter(GLenum target, GLenum pname)
(OpenGL ES 2.0 §6.1.14,
- similar to glGetRenderbufferParameteriv)
+ similar to glGetRenderbufferParameteriv)
-
@@ -1573,19 +1573,19 @@
Renderbuffer objects
void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
(OpenGL ES 3.0.6 §4.4.2.1,
- man page)
+ man page)
-
-
Accepts internal formats from OpenGL ES 3.0 as detailed in the specification and man page.
+ Accepts internal formats from OpenGL ES 3.0 as detailed in the specification and man page.
To be backward compatible with WebGL 1, also accepts internal format DEPTH_STENCIL, which should be mapped to DEPTH24_STENCIL8 by implementations.
-
void renderbufferStorageMultisample(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
(OpenGL ES 3.0.6 §4.4.2.1,
- man page)
+ man page)
Generates INVALID_OPERATION when `internalFormat == DEPTH_STENCIL && samples > 0`.
@@ -1607,7 +1607,7 @@ Texture objects
- any getTexParameter(GLenum target, GLenum pname)
(OpenGL ES 3.0.6 §6.1.3,
- man page)
+ man page)
-
@@ -1637,7 +1637,7 @@
Texture objects
- void texParameterf(GLenum target, GLenum pname, GLfloat param)
(OpenGL ES 3.0.6 §3.8.7,
- man page)
+ man page)
-
@@ -1663,7 +1663,7 @@
Texture objects
- void texParameteri(GLenum target, GLenum pname, GLint param)
(OpenGL ES 3.0.6 §3.8.7,
- man page)
+ man page)
-
@@ -1676,7 +1676,7 @@
Texture objects
void texStorage2D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height)
(OpenGL ES 3.0.6 §3.8.4,
- man page)
+ man page)
@@ -1696,7 +1696,7 @@ Texture objects
void texStorage3D(GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth)
(OpenGL ES 3.0.6 §3.8.4,
- man page)
+ man page)
@@ -2005,7 +2005,7 @@ Texture objects
optional unsigned long long srcOffset = 0)
(OpenGL ES 3.0.6 §3.8.5,
- man page)
+ man page)
@@ -2037,7 +2037,7 @@ Texture objects
TexImageSource source) // May throw DOMException
(OpenGL ES 3.0.6 §3.8.5,
- man page)
+ man page)
@@ -2060,7 +2060,7 @@ Texture objects
void texSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLintptr offset)
(OpenGL ES 3.0.6 §3.8.5,
- man page)
+ man page)
@@ -2079,7 +2079,7 @@ Texture objects
void copyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
(OpenGL ES 3.0.6 §3.8.5,
- man page)
+ man page)
@@ -2108,7 +2108,7 @@ Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
-
@@ -2130,7 +2130,7 @@
Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
-
@@ -2153,7 +2153,7 @@
Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
-
@@ -2175,7 +2175,7 @@
Texture objects
optional GLuint srcLengthOverride = 0)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
-
@@ -2199,7 +2199,7 @@
Texture objects
void compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, GLintptr offset)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
@@ -2207,7 +2207,7 @@ Texture objects
void compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, GLintptr offset)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
@@ -2215,7 +2215,7 @@ Texture objects
void compressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, GLintptr offset)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
@@ -2223,7 +2223,7 @@ Texture objects
void compressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, GLintptr offset)
(OpenGL ES 3.0.6 §3.8.6,
- man page)
+ man page)
@@ -2245,7 +2245,7 @@ Programs and Shaders
[WebGLHandlesContextLoss] GLint getFragDataLocation(WebGLProgram program, DOMString name)
(OpenGL ES 3.0.6 §3.9.2.3,
- man page)
+ man page)
@@ -2256,7 +2256,7 @@ Programs and Shaders
- any getProgramParameter(WebGLProgram? program, GLenum pname)
(OpenGL ES 3.0.6 §6.1.12,
- man page)
+ man page)
-
@@ -2292,7 +2292,7 @@
Uniforms and attributes
any getUniform(WebGLProgram program, WebGLUniformLocation location)
(OpenGL ES 3.0.6 §6.1.12,
- man page)
+ man page)
-
@@ -2325,7 +2325,7 @@
Uniforms and attributes
void uniformMatrix[234]x[234]fv(WebGLUniformLocation? location, ...)
(OpenGL ES 3.0.6 §2.12.6,
- man page)
+ man page)
@@ -2353,7 +2353,7 @@ Uniforms and attributes
void vertexAttribI4[u]iv(GLuint index, ...)
(OpenGL ES 3.0.6 §2.8,
- man page)
+ man page)
-
@@ -2369,7 +2369,7 @@
Uniforms and attributes
void vertexAttribIPointer(GLuint index, GLint size, GLenum type, GLsizei stride, GLintptr offset)
(OpenGL ES 3.0.6 §2.9,
- man page)
+ man page)
@@ -2388,7 +2388,7 @@ Uniforms and attributes
- any getVertexAttrib(GLuint index, GLenum pname)
(OpenGL ES 3.0.6 §6.1.12,
- man page)
+ man page)
-
@@ -2426,7 +2426,7 @@
Writing to the drawing buffervoid clear(GLbitfield mask)
(OpenGL ES 3.0.6 §4.2.3,
- man page)
+ man page)
@@ -2438,7 +2438,7 @@ Writing to the drawing buffervoid vertexAttribDivisor(GLuint index, GLuint divisor)
(OpenGL ES 3.0.6 §2.9,
- man page)
+ man page)
@@ -2449,7 +2449,7 @@ Writing to the drawing buffervoid drawArrays(GLenum mode, GLint first, GLsizei count)
(OpenGL ES 3.0.6 §2.9.3,
- man page)
+ man page)
@@ -2460,7 +2460,7 @@ Writing to the drawing buffervoid drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset)
(OpenGL ES 3.0.6 §2.9.3,
- man page)
+ man page)
@@ -2471,7 +2471,7 @@ Writing to the drawing buffervoid drawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instanceCount)
(OpenGL ES 3.0.6 §2.9.3,
- man page)
+ man page)
@@ -2485,7 +2485,7 @@ Writing to the drawing buffervoid drawElementsInstanced(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei instanceCount)
(OpenGL ES 3.0.6 §2.9.3,
- man page)
+ man page)
@@ -2499,7 +2499,7 @@ Writing to the drawing buffervoid drawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLintptr offset)
(OpenGL ES 3.0.6 §2.9.3,
- man page)
+ man page)
@@ -2541,7 +2541,7 @@ Reading back pixels
GLenum type, [AllowShared] ArrayBufferView dstData, unsigned long long dstOffset)
(OpenGL ES 3.0 §4.3.2,
- man page)
+ man page)
-
@@ -2577,7 +2577,7 @@
Reading back pixels
- void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLintptr offset)
(OpenGL ES 3.0 §4.3.2,
- man page)
+ man page)
-
@@ -2600,7 +2600,7 @@
Multiple render targets
void drawBuffers(sequence<GLenum> buffers)
(OpenGL ES 3.0.6 §4.2.1,
- man page)
+ man page)
@@ -2620,7 +2620,7 @@ Multiple render targets
void clearBufferfi(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
(OpenGL ES 3.0.6 §4.2.3,
- man page)
+ man page)
These are [Draw Operations].
@@ -2663,7 +2663,7 @@ Query objects
WebGLQuery createQuery()
(OpenGL ES 3.0.6 §2.14,
- man page)
+ man page)
@@ -2674,7 +2674,7 @@ Query objects
void deleteQuery(WebGLQuery? query)
(OpenGL ES 3.0.6 §2.14,
- man page)
+ man page)
@@ -2691,7 +2691,7 @@ Query objects
[WebGLHandlesContextLoss] GLboolean isQuery(WebGLQuery? query)
(OpenGL ES 3.0.6 §6.1.7,
- man page)
+ man page)
@@ -2708,7 +2708,7 @@ Query objects
void beginQuery(GLenum target, WebGLQuery query)
(OpenGL ES 3.0.6 §2.14,
- man page)
+ man page)
@@ -2721,7 +2721,7 @@ Query objects
void endQuery(GLenum target)
(OpenGL ES 3.0.6 §2.14,
- man page)
+ man page)
@@ -2734,7 +2734,7 @@ Query objects
WebGLQuery? getQuery(GLenum target, GLenum pname)
(OpenGL ES 3.0.6 §6.1.7,
- man page)
+ man page)
@@ -2756,7 +2756,7 @@ Query objects
any getQueryParameter(WebGLQuery query, GLenum pname)
(OpenGL ES 3.0.6 §6.1.7,
- man page)
+ man page)
@@ -2821,7 +2821,7 @@ Sampler objects
WebGLSampler createSampler()
(OpenGL ES 3.0.6 §3.8.2,
- man page)
+ man page)
@@ -2833,7 +2833,7 @@ Sampler objects
void deleteSampler(WebGLSampler? sampler)
(OpenGL ES 3.0.6 §3.8.2,
- man page)
+ man page)
@@ -2850,7 +2850,7 @@ Sampler objects
[WebGLHandlesContextLoss] GLboolean isSampler(WebGLSampler? sampler)
(OpenGL ES 3.0.6 §6.1.5,
- man page)
+ man page)
@@ -2867,7 +2867,7 @@ Sampler objects
void bindSampler(GLuint unit, WebGLSampler? sampler)
(OpenGL ES 3.0.6 §3.8.2,
- man page)
+ man page)
@@ -2889,7 +2889,7 @@ Sampler objects
void samplerParameterf(WebGLSampler sampler, GLenum pname, GLfloat param)
(OpenGL ES 3.0.6 §3.8.2,
- man page)
+ man page)
@@ -2916,7 +2916,7 @@ Sampler objects
- any getSamplerParameter(WebGLSampler sampler, GLenum pname)
(OpenGL ES 3.0.6 §6.1.5,
- man page)
+ man page)
-
@@ -2955,7 +2955,7 @@
Sync objects
WebGLSync? fenceSync(GLenum condition, GLbitfield flags)
(OpenGL ES 3.0.6 §5.2,
- man page)
+ man page)
@@ -2966,7 +2966,7 @@ Sync objects
[WebGLHandlesContextLoss] GLboolean isSync(WebGLSync? sync)
(OpenGL ES 3.0.6 §6.1.8,
- man page)
+ man page)
@@ -2983,7 +2983,7 @@ Sync objects
void deleteSync(WebGLSync? sync)
(OpenGL ES 3.0.6 §5.2,
- man page)
+ man page)
@@ -3000,7 +3000,7 @@ Sync objects
GLenum clientWaitSync(WebGLSync sync, GLbitfield flags, GLuint64 timeout)
(OpenGL ES 3.0.6 §5.2.1,
- man page)
+ man page)
@@ -3062,7 +3062,7 @@ Sync objects
void waitSync(WebGLSync sync, GLbitfield flags, GLint64 timeout)
(OpenGL ES 3.0.6 §5.2.1,
- man page)
+ man page)
@@ -3080,7 +3080,7 @@ Sync objects
- any getSyncParameter(WebGLSync sync, GLenum pname)
(OpenGL ES 3.0.6 §6.1.8,
- man page)
+ man page)
-
@@ -3141,7 +3141,7 @@
Transform feedback
- WebGLTransformFeedback createTransformFeedback()
(OpenGL ES 3.0.6 §2.15.1,
- similar to glGenTransformFeedbacks)
+ similar to glGenTransformFeedbacks)
-
Create a
WebGLTransformFeedback object and initialize it with a transform feedback object name as if by
@@ -3150,7 +3150,7 @@ Transform feedback
- void deleteTransformFeedback(WebGLTransformFeedback? transformFeedback)
(OpenGL ES 3.0.6 §2.15.1,
- similar to glDeleteTransformFeedbacks)
+ similar to glDeleteTransformFeedbacks)
-
If
transformFeedback was generated by a different WebGL2RenderingContext
@@ -3166,7 +3166,7 @@ Transform feedback
- [WebGLHandlesContextLoss] GLboolean isTransformFeedback(WebGLTransformFeedback? transformFeedback)
(OpenGL ES 3.0.6 §6.1.11,
- man page)
+ man page)
-
Return true if the passed
WebGLTransformFeedback is valid and false otherwise.
@@ -3180,7 +3180,7 @@ Transform feedback
- void bindTransformFeedback(GLenum target, WebGLTransformFeedback? transformFeedback)
(OpenGL ES 3.0.6 §2.15.1,
- man page)
+ man page)
-
If
transformFeedback was generated by a
@@ -3196,35 +3196,35 @@ Transform feedback
- void beginTransformFeedback(GLenum primitiveMode)
(OpenGL ES 3.0.6 §2.15.2,
- man page)
+ man page)
-
- void endTransformFeedback()
(OpenGL ES 3.0.6 §2.15.2,
- man page)
+ man page)
-
- void pauseTransformFeedback()
(OpenGL ES 3.0.6 §2.15.2,
- man page)
+ man page)
-
- void resumeTransformFeedback()
(OpenGL ES 3.0.6 §2.15.2,
- man page)
+ man page)
-
- void transformFeedbackVaryings(WebGLProgram program, sequence<DOMString> varyings, GLenum bufferMode)
(OpenGL ES 3.0.6 §2.12.8,
- man page)
+ man page)
-
If
program was generated by a different WebGL2RenderingContext
@@ -3233,7 +3233,7 @@ Transform feedback
- WebGLActiveInfo? getTransformFeedbackVarying(WebGLProgram program, GLuint index)
(OpenGL ES 3.0.6 §2.12.8,
- man page)
+ man page)
-
If
program was generated by a different WebGL2RenderingContext