WebGLRenderingContext extension type

The WebGLRenderingContext interface provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML canvas element.

To get an access to a WebGL context for 2D and/or 3D graphics rendering, call HTMLCanvasElement.getContext on a <canvas> element, supplying "webgl" as the argument:

const canvas = document.getElementById("myCanvas");
const gl = canvas.getContext("webgl");

Once you have the WebGL rendering context for a canvas, you can render within it. The WebGL tutorial has more information, examples, and resources on how to get started with WebGL.

If you require a WebGL 2.0 context, see WebGL2RenderingContext; this supplies access to an implementation of OpenGL ES 3.0 graphics.

on
Implemented types

Properties

canvas JSObject
no setter
drawingBufferColorSpace PredefinedColorSpace
getter/setter pair
drawingBufferFormat GLenum
no setter
drawingBufferHeight GLsizei
no setter
drawingBufferWidth GLsizei
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unpackColorSpace PredefinedColorSpace
getter/setter pair

Methods

activeTexture(GLenum texture) → void
The WebGLRenderingContext.activeTexture() method of the WebGL API specifies which texture unit to make active.
attachShader(WebGLProgram program, WebGLShader shader) → void
The WebGLRenderingContext.attachShader() method of the WebGL API attaches either a fragment or vertex WebGLShader to a WebGLProgram.
bindAttribLocation(WebGLProgram program, GLuint index, String name) → void
The WebGLRenderingContext.bindAttribLocation() method of the WebGL API binds a generic vertex index to an attribute variable.
bindBuffer(GLenum target, WebGLBuffer? buffer) → void
The WebGLRenderingContext.bindBuffer() method of the WebGL API binds a given WebGLBuffer to a target.
bindFramebuffer(GLenum target, WebGLFramebuffer? framebuffer) → void
The WebGLRenderingContext.bindFramebuffer() method of the WebGL API binds to the specified target the provided WebGLFramebuffer, or, if the framebuffer argument is null, the default WebGLFramebuffer, which is associated with the canvas rendering context.
bindRenderbuffer(GLenum target, WebGLRenderbuffer? renderbuffer) → void
The WebGLRenderingContext.bindRenderbuffer() method of the WebGL API binds a given WebGLRenderbuffer to a target, which must be gl.RENDERBUFFER.
bindTexture(GLenum target, WebGLTexture? texture) → void
The WebGLRenderingContext.bindTexture() method of the WebGL API binds a given WebGLTexture to a target (binding point).
blendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) → void
The WebGLRenderingContext.blendColor() method of the WebGL API is used to set the source and destination blending factors.
blendEquation(GLenum mode) → void
The WebGLRenderingContext.blendEquation() method of the WebGL API is used to set both the RGB blend equation and alpha blend equation to a single equation.
blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) → void
The WebGLRenderingContext.blendEquationSeparate() method of the WebGL API is used to set the RGB blend equation and alpha blend equation separately.
blendFunc(GLenum sfactor, GLenum dfactor) → void
The WebGLRenderingContext.blendFunc() method of the WebGL API defines which function is used for blending pixel arithmetic.
blendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) → void
The WebGLRenderingContext.blendFuncSeparate() method of the WebGL API defines which function is used for blending pixel arithmetic for RGB and alpha components separately.
bufferData(GLenum target, JSAny dataOrSize, GLenum usage) → void
The WebGLRenderingContext.bufferData() method of the WebGL API initializes and creates the buffer object's data store.
bufferSubData(GLenum target, GLintptr offset, AllowSharedBufferSource data) → void
The WebGLRenderingContext.bufferSubData() method of the WebGL API updates a subset of a buffer object's data store.
checkFramebufferStatus(GLenum target) GLenum
The WebGLRenderingContext.checkFramebufferStatus() method of the WebGL API returns the completeness status of the WebGLFramebuffer object.
clear(GLbitfield mask) → void
The WebGLRenderingContext.clear() method of the WebGL API clears buffers to preset values.
clearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) → void
The WebGLRenderingContext.clearColor() method of the WebGL API specifies the color values used when clearing color buffers.
clearDepth(GLclampf depth) → void
The WebGLRenderingContext.clearDepth() method of the WebGL API specifies the clear value for the depth buffer.
clearStencil(GLint s) → void
The WebGLRenderingContext.clearStencil() method of the WebGL API specifies the clear value for the stencil buffer.
colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) → void
The WebGLRenderingContext.colorMask() method of the WebGL API sets which color components to enable or to disable when drawing or rendering to a WebGLFramebuffer.
compileShader(WebGLShader shader) → void
The WebGLRenderingContext.compileShader() method of the WebGL API compiles a GLSL shader into binary data so that it can be used by a WebGLProgram.
compressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, ArrayBufferView data) → void
The WebGLRenderingContext.compressedTexImage2D() and WebGL2RenderingContext.compressedTexImage3D() methods of the WebGL API specify a two- or three-dimensional texture image in a compressed format.
compressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, ArrayBufferView data) → void
The WebGLRenderingContext.compressedTexSubImage2D() method of the WebGL API specifies a two-dimensional sub-rectangle for a texture image in a compressed format.
copyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) → void
The WebGLRenderingContext.copyTexImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into a 2D texture image.
copyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) → void
The WebGLRenderingContext.copyTexSubImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into an existing 2D texture sub-image.
createBuffer() WebGLBuffer?
The WebGLRenderingContext.createBuffer() method of the WebGL API creates and initializes a WebGLBuffer storing data such as vertices or colors.
createFramebuffer() WebGLFramebuffer?
The WebGLRenderingContext.createFramebuffer() method of the WebGL API creates and initializes a WebGLFramebuffer object.
createProgram() WebGLProgram?
The WebGLRenderingContext.createProgram() method of the WebGL API creates and initializes a WebGLProgram object.
createRenderbuffer() WebGLRenderbuffer?
The WebGLRenderingContext.createRenderbuffer() method of the WebGL API creates and initializes a WebGLRenderbuffer object.
createShader(GLenum type) WebGLShader?
The WebGLRenderingContext method createShader() of the WebGL API creates a WebGLShader that can then be configured further using WebGLRenderingContext.shaderSource and WebGLRenderingContext.compileShader.
createTexture() WebGLTexture?
The WebGLRenderingContext.createTexture() method of the WebGL API creates and initializes a WebGLTexture object.
cullFace(GLenum mode) → void
The WebGLRenderingContext.cullFace() method of the WebGL API specifies whether or not front- and/or back-facing polygons can be culled.
deleteBuffer(WebGLBuffer? buffer) → void
The WebGLRenderingContext.deleteBuffer() method of the WebGL API deletes a given WebGLBuffer. This method has no effect if the buffer has already been deleted. Normally you don't need to call this method yourself, when the buffer object is dereferenced it will be marked as free.
deleteFramebuffer(WebGLFramebuffer? framebuffer) → void
The WebGLRenderingContext.deleteFramebuffer() method of the WebGL API deletes a given WebGLFramebuffer object. This method has no effect if the frame buffer has already been deleted.
deleteProgram(WebGLProgram? program) → void
The WebGLRenderingContext.deleteProgram() method of the WebGL API deletes a given WebGLProgram object. This method has no effect if the program has already been deleted.
deleteRenderbuffer(WebGLRenderbuffer? renderbuffer) → void
The WebGLRenderingContext.deleteRenderbuffer() method of the WebGL API deletes a given WebGLRenderbuffer object. This method has no effect if the render buffer has already been deleted.
deleteShader(WebGLShader? shader) → void
The WebGLRenderingContext.deleteShader() method of the WebGL API marks a given WebGLShader object for deletion. It will then be deleted whenever the shader is no longer in use. This method has no effect if the shader has already been deleted, and the WebGLShader is automatically marked for deletion when it is destroyed by the garbage collector.
deleteTexture(WebGLTexture? texture) → void
The WebGLRenderingContext.deleteTexture() method of the WebGL API deletes a given WebGLTexture object. This method has no effect if the texture has already been deleted.
depthFunc(GLenum func) → void
The WebGLRenderingContext.depthFunc() method of the WebGL API specifies a function that compares incoming pixel depth to the current depth buffer value.
depthMask(GLboolean flag) → void
The WebGLRenderingContext.depthMask() method of the WebGL API sets whether writing into the depth buffer is enabled or disabled.
depthRange(GLclampf zNear, GLclampf zFar) → void
The WebGLRenderingContext.depthRange() method of the WebGL API specifies the depth range mapping from normalized device coordinates to window or viewport coordinates.
detachShader(WebGLProgram program, WebGLShader shader) → void
The WebGLRenderingContext.detachShader() method of the WebGL API detaches a previously attached WebGLShader from a WebGLProgram.
disable(GLenum cap) → void
The WebGLRenderingContext.disable() method of the WebGL API disables specific WebGL capabilities for this context.
disableVertexAttribArray(GLuint index) → void
The WebGLRenderingContext.disableVertexAttribArray() method of the WebGL API turns the generic vertex attribute array off at a given index position.
drawArrays(GLenum mode, GLint first, GLsizei count) → void
The WebGLRenderingContext.drawArrays() method of the WebGL API renders primitives from array data.
drawElements(GLenum mode, GLsizei count, GLenum type, GLintptr offset) → void
The WebGLRenderingContext.drawElements() method of the WebGL API renders primitives from array data.
drawingBufferStorage(GLenum sizedFormat, int width, int height) → void
enable(GLenum cap) → void
The WebGLRenderingContext.enable() method of the WebGL API enables specific WebGL capabilities for this context.
enableVertexAttribArray(GLuint index) → void
The WebGLRenderingContext method enableVertexAttribArray(), part of the WebGL API, turns on the generic vertex attribute array at the specified index into the list of attribute arrays.
finish() → void
The WebGLRenderingContext.finish() method of the WebGL API blocks execution until all previously called commands are finished.
flush() → void
The WebGLRenderingContext.flush() method of the WebGL API empties different buffer commands, causing all commands to be executed as quickly as possible.
framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer) → void
The WebGLRenderingContext.framebufferRenderbuffer() method of the WebGL API attaches a WebGLRenderbuffer object to a WebGLFramebuffer object.
framebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, WebGLTexture? texture, GLint level) → void
The WebGLRenderingContext.framebufferTexture2D() method of the WebGL API attaches a texture to a WebGLFramebuffer.
frontFace(GLenum mode) → void
The WebGLRenderingContext.frontFace() method of the WebGL API specifies whether polygons are front- or back-facing by setting a winding orientation.
generateMipmap(GLenum target) → void
The WebGLRenderingContext.generateMipmap() method of the WebGL API generates a set of mipmaps for a WebGLTexture object.
getActiveAttrib(WebGLProgram program, GLuint index) WebGLActiveInfo?
The WebGLRenderingContext.getActiveAttrib() method of the WebGL API returns a WebGLActiveInfo object containing size, type, and name of a vertex attribute. It is generally used when querying unknown attributes either for debugging or generic library creation.
getActiveUniform(WebGLProgram program, GLuint index) WebGLActiveInfo?
The WebGLRenderingContext.getActiveUniform() method of the WebGL API returns a WebGLActiveInfo object containing size, type, and name of a uniform attribute. It is generally used when querying unknown uniforms either for debugging or generic library creation.
getAttachedShaders(WebGLProgram program) JSArray<WebGLShader>?
The WebGLRenderingContext.getAttachedShaders() method of the WebGL API returns a list of WebGLShader objects attached to a WebGLProgram.
getAttribLocation(WebGLProgram program, String name) GLint
The WebGLRenderingContext.getAttribLocation() method of the WebGL API returns the location of an attribute variable in a given WebGLProgram.
getBufferParameter(GLenum target, GLenum pname) JSAny?
The WebGLRenderingContext.getBufferParameter() method of the WebGL API returns information about the buffer.
getContextAttributes() WebGLContextAttributes?
The WebGLRenderingContext.getContextAttributes() method returns a WebGLContextAttributes object that contains the actual context parameters. Might return null, if the context is lost.
getError() GLenum
The WebGLRenderingContext.getError() method of the WebGL API returns error information.
getExtension(String name) JSObject?
The WebGLRenderingContext.getExtension() method enables a WebGL extension.
getFramebufferAttachmentParameter(GLenum target, GLenum attachment, GLenum pname) JSAny?
The WebGLRenderingContext.getFramebufferAttachmentParameter() method of the WebGL API returns information about a framebuffer's attachment.
getParameter(GLenum pname) JSAny?
The WebGLRenderingContext.getParameter() method of the WebGL API returns a value for the passed parameter name.
getProgramInfoLog(WebGLProgram program) String?
The WebGLRenderingContext.getProgramInfoLog returns the information log for the specified WebGLProgram object. It contains errors that occurred during failed linking or validation of WebGLProgram objects.
getProgramParameter(WebGLProgram program, GLenum pname) JSAny?
The WebGLRenderingContext.getProgramParameter() method of the WebGL API returns information about the given program.
getRenderbufferParameter(GLenum target, GLenum pname) JSAny?
The WebGLRenderingContext.getRenderbufferParameter() method of the WebGL API returns information about the renderbuffer.
getShaderInfoLog(WebGLShader shader) String?
The WebGLRenderingContext.getShaderInfoLog returns the information log for the specified WebGLShader object. It contains warnings, debugging and compile information.
getShaderParameter(WebGLShader shader, GLenum pname) JSAny?
The WebGLRenderingContext.getShaderParameter() method of the WebGL API returns information about the given shader.
getShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype) WebGLShaderPrecisionFormat?
The WebGLRenderingContext.getShaderPrecisionFormat() method of the WebGL API returns a new WebGLShaderPrecisionFormat object describing the range and precision for the specified shader numeric format.
getShaderSource(WebGLShader shader) String?
The WebGLRenderingContext.getShaderSource() method of the WebGL API returns the source code of a WebGLShader as a string.
getSupportedExtensions() JSArray<JSString>?
The WebGLRenderingContext.getSupportedExtensions() method returns a list of all the supported WebGL extensions.
getTexParameter(GLenum target, GLenum pname) JSAny?
The WebGLRenderingContext.getTexParameter() method of the WebGL API returns information about the given texture.
getUniform(WebGLProgram program, WebGLUniformLocation location) JSAny?
The WebGLRenderingContext.getUniform() method of the WebGL API returns the value of a uniform variable at a given location.
getUniformLocation(WebGLProgram program, String name) WebGLUniformLocation?
Part of the WebGL API, the WebGLRenderingContext method getUniformLocation() returns the location of a specific uniform variable which is part of a given WebGLProgram.
getVertexAttrib(GLuint index, GLenum pname) JSAny?
The WebGLRenderingContext.getVertexAttrib() method of the WebGL API returns information about a vertex attribute at a given position.
getVertexAttribOffset(GLuint index, GLenum pname) GLintptr
The WebGLRenderingContext.getVertexAttribOffset() method of the WebGL API returns the address of a specified vertex attribute.
hint(GLenum target, GLenum mode) → void
The WebGLRenderingContext.hint() method of the WebGL API specifies hints for certain behaviors. The interpretation of these hints depend on the implementation.
isBuffer(WebGLBuffer? buffer) GLboolean
The WebGLRenderingContext.isBuffer() method of the WebGL API returns true if the passed WebGLBuffer is valid and false otherwise.
isContextLost() bool
The WebGLRenderingContext.isContextLost() method returns a boolean value indicating whether or not the WebGL context has been lost and must be re-established before rendering can resume.
isEnabled(GLenum cap) GLboolean
The WebGLRenderingContext.isEnabled() method of the WebGL API tests whether a specific WebGL capability is enabled or not for this context.
isFramebuffer(WebGLFramebuffer? framebuffer) GLboolean
The WebGLRenderingContext.isFramebuffer() method of the WebGL API returns true if the passed WebGLFramebuffer is valid and false otherwise.
isProgram(WebGLProgram? program) GLboolean
The WebGLRenderingContext.isProgram() method of the WebGL API returns true if the passed WebGLProgram is valid, false otherwise.
isRenderbuffer(WebGLRenderbuffer? renderbuffer) GLboolean
The WebGLRenderingContext.isRenderbuffer() method of the WebGL API returns true if the passed WebGLRenderbuffer is valid and false otherwise.
isShader(WebGLShader? shader) GLboolean
The WebGLRenderingContext.isShader() method of the WebGL API returns true if the passed WebGLShader is valid, false otherwise.
isTexture(WebGLTexture? texture) GLboolean
The WebGLRenderingContext.isTexture() method of the WebGL API returns true if the passed WebGLTexture is valid and false otherwise.
lineWidth(GLfloat width) → void
The WebGLRenderingContext.lineWidth() method of the WebGL API sets the line width of rasterized lines.
linkProgram(WebGLProgram program) → void
The WebGLRenderingContext interface's linkProgram() method links a given WebGLProgram, completing the process of preparing the GPU code for the program's fragment and vertex shaders.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pixelStorei(GLenum pname, GLint param) → void
The WebGLRenderingContext.pixelStorei() method of the WebGL API specifies the pixel storage modes.
polygonOffset(GLfloat factor, GLfloat units) → void
The WebGLRenderingContext.polygonOffset() method of the WebGL API specifies the scale factors and units to calculate depth values.
readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, ArrayBufferView? pixels) → void
The WebGLRenderingContext.readPixels() method of the WebGL API reads a block of pixels from a specified rectangle of the current color framebuffer into a TypedArray or a DataView object.
renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) → void
The WebGLRenderingContext.renderbufferStorage() method of the WebGL API creates and initializes a renderbuffer object's data store.
sampleCoverage(GLclampf value, GLboolean invert) → void
The WebGLRenderingContext.sampleCoverage() method of the WebGL API specifies multi-sample coverage parameters for anti-aliasing effects.
scissor(GLint x, GLint y, GLsizei width, GLsizei height) → void
The WebGLRenderingContext.scissor() method of the WebGL API sets a scissor box, which limits the drawing to a specified rectangle.
shaderSource(WebGLShader shader, String source) → void
The WebGLRenderingContext.shaderSource() method of the WebGL API sets the source code of a WebGLShader.
stencilFunc(GLenum func, GLint ref, GLuint mask) → void
The WebGLRenderingContext.stencilFunc() method of the WebGL API sets the front and back function and reference value for stencil testing.
stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) → void
The WebGLRenderingContext.stencilFuncSeparate() method of the WebGL API sets the front and/or back function and reference value for stencil testing.
stencilMask(GLuint mask) → void
The WebGLRenderingContext.stencilMask() method of the WebGL API controls enabling and disabling of both the front and back writing of individual bits in the stencil planes.
stencilMaskSeparate(GLenum face, GLuint mask) → void
The WebGLRenderingContext.stencilMaskSeparate() method of the WebGL API controls enabling and disabling of front and/or back writing of individual bits in the stencil planes.
stencilOp(GLenum fail, GLenum zfail, GLenum zpass) → void
The WebGLRenderingContext.stencilOp() method of the WebGL API sets both the front and back-facing stencil test actions.
stencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) → void
The WebGLRenderingContext.stencilOpSeparate() method of the WebGL API sets the front and/or back-facing stencil test actions.
texImage2D(GLenum target, GLint level, GLint internalformat, JSAny formatOrWidth, JSAny heightOrType, JSAny borderOrSource, [GLenum format, GLenum type, ArrayBufferView? pixels]) → void
The WebGLRenderingContext.texImage2D() method of the WebGL API specifies a two-dimensional texture image.
texParameterf(GLenum target, GLenum pname, GLfloat param) → void
texParameteri(GLenum target, GLenum pname, GLint param) → void
texSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, JSAny formatOrWidth, JSAny heightOrType, JSAny formatOrSource, [GLenum type, ArrayBufferView? pixels]) → void
The WebGLRenderingContext.texSubImage2D() method of the WebGL API specifies a sub-rectangle of the current texture.
toString() String
A string representation of this object.
inherited
uniform1f(WebGLUniformLocation? location, GLfloat x) → void
uniform1fv(WebGLUniformLocation? location, Float32List v) → void
uniform1i(WebGLUniformLocation? location, GLint x) → void
uniform1iv(WebGLUniformLocation? location, Int32List v) → void
uniform2f(WebGLUniformLocation? location, GLfloat x, GLfloat y) → void
uniform2fv(WebGLUniformLocation? location, Float32List v) → void
uniform2i(WebGLUniformLocation? location, GLint x, GLint y) → void
uniform2iv(WebGLUniformLocation? location, Int32List v) → void
uniform3f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z) → void
uniform3fv(WebGLUniformLocation? location, Float32List v) → void
uniform3i(WebGLUniformLocation? location, GLint x, GLint y, GLint z) → void
uniform3iv(WebGLUniformLocation? location, Int32List v) → void
uniform4f(WebGLUniformLocation? location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) → void
uniform4fv(WebGLUniformLocation? location, Float32List v) → void
uniform4i(WebGLUniformLocation? location, GLint x, GLint y, GLint z, GLint w) → void
uniform4iv(WebGLUniformLocation? location, Int32List v) → void
uniformMatrix2fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value) → void
uniformMatrix3fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value) → void
uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value) → void
useProgram(WebGLProgram? program) → void
The WebGLRenderingContext.useProgram() method of the WebGL API sets the specified WebGLProgram as part of the current rendering state.
validateProgram(WebGLProgram program) → void
The WebGLRenderingContext.validateProgram() method of the WebGL API validates a WebGLProgram. It checks if it is successfully linked and if it can be used in the current WebGL state.
vertexAttrib1f(GLuint index, GLfloat x) → void
vertexAttrib1fv(GLuint index, Float32List values) → void
vertexAttrib2f(GLuint index, GLfloat x, GLfloat y) → void
vertexAttrib2fv(GLuint index, Float32List values) → void
vertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z) → void
vertexAttrib3fv(GLuint index, Float32List values) → void
vertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) → void
vertexAttrib4fv(GLuint index, Float32List values) → void
vertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLintptr offset) → void
The WebGLRenderingContext.vertexAttribPointer() method of the WebGL API binds the buffer currently bound to gl.ARRAY_BUFFER to a generic vertex attribute of the current vertex buffer object and specifies its layout.
viewport(GLint x, GLint y, GLsizei width, GLsizei height) → void
The WebGLRenderingContext.viewport() method of the WebGL API sets the viewport, which specifies the affine transformation of x and y from normalized device coordinates to window coordinates.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

ACTIVE_ATTRIBUTES GLenum
no setter
ACTIVE_TEXTURE GLenum
no setter
ACTIVE_UNIFORMS GLenum
no setter
ALIASED_LINE_WIDTH_RANGE GLenum
no setter
ALIASED_POINT_SIZE_RANGE GLenum
no setter
ALPHA GLenum
no setter
ALPHA_BITS GLenum
no setter
ALWAYS GLenum
no setter
ARRAY_BUFFER GLenum
no setter
ARRAY_BUFFER_BINDING GLenum
no setter
ATTACHED_SHADERS GLenum
no setter
BACK GLenum
no setter
BLEND GLenum
no setter
BLEND_COLOR GLenum
no setter
BLEND_DST_ALPHA GLenum
no setter
BLEND_DST_RGB GLenum
no setter
BLEND_EQUATION GLenum
no setter
BLEND_EQUATION_ALPHA GLenum
no setter
BLEND_EQUATION_RGB GLenum
no setter
BLEND_SRC_ALPHA GLenum
no setter
BLEND_SRC_RGB GLenum
no setter
BLUE_BITS GLenum
no setter
BOOL GLenum
no setter
BOOL_VEC2 GLenum
no setter
BOOL_VEC3 GLenum
no setter
BOOL_VEC4 GLenum
no setter
BROWSER_DEFAULT_WEBGL GLenum
no setter
BUFFER_SIZE GLenum
no setter
BUFFER_USAGE GLenum
no setter
BYTE GLenum
no setter
CCW GLenum
no setter
CLAMP_TO_EDGE GLenum
no setter
COLOR_ATTACHMENT0 GLenum
no setter
COLOR_BUFFER_BIT GLenum
no setter
COLOR_CLEAR_VALUE GLenum
no setter
COLOR_WRITEMASK GLenum
no setter
COMPILE_STATUS GLenum
no setter
COMPRESSED_TEXTURE_FORMATS GLenum
no setter
CONSTANT_ALPHA GLenum
no setter
CONSTANT_COLOR GLenum
no setter
CONTEXT_LOST_WEBGL GLenum
no setter
CULL_FACE GLenum
no setter
CULL_FACE_MODE GLenum
no setter
CURRENT_PROGRAM GLenum
no setter
CURRENT_VERTEX_ATTRIB GLenum
no setter
CW GLenum
no setter
DECR GLenum
no setter
DECR_WRAP GLenum
no setter
DELETE_STATUS GLenum
no setter
DEPTH_ATTACHMENT GLenum
no setter
DEPTH_BITS GLenum
no setter
DEPTH_BUFFER_BIT GLenum
no setter
DEPTH_CLEAR_VALUE GLenum
no setter
DEPTH_COMPONENT GLenum
no setter
DEPTH_COMPONENT16 GLenum
no setter
DEPTH_FUNC GLenum
no setter
DEPTH_RANGE GLenum
no setter
DEPTH_STENCIL GLenum
no setter
DEPTH_STENCIL_ATTACHMENT GLenum
no setter
DEPTH_TEST GLenum
no setter
DEPTH_WRITEMASK GLenum
no setter
DITHER GLenum
no setter
DONT_CARE GLenum
no setter
DST_ALPHA GLenum
no setter
DST_COLOR GLenum
no setter
DYNAMIC_DRAW GLenum
no setter
ELEMENT_ARRAY_BUFFER GLenum
no setter
ELEMENT_ARRAY_BUFFER_BINDING GLenum
no setter
EQUAL GLenum
no setter
FASTEST GLenum
no setter
FLOAT GLenum
no setter
FLOAT_MAT2 GLenum
no setter
FLOAT_MAT3 GLenum
no setter
FLOAT_MAT4 GLenum
no setter
FLOAT_VEC2 GLenum
no setter
FLOAT_VEC3 GLenum
no setter
FLOAT_VEC4 GLenum
no setter
FRAGMENT_SHADER GLenum
no setter
FRAMEBUFFER GLenum
no setter
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME GLenum
no setter
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE GLenum
no setter
FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE GLenum
no setter
FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL GLenum
no setter
FRAMEBUFFER_BINDING GLenum
no setter
FRAMEBUFFER_COMPLETE GLenum
no setter
FRAMEBUFFER_INCOMPLETE_ATTACHMENT GLenum
no setter
FRAMEBUFFER_INCOMPLETE_DIMENSIONS GLenum
no setter
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT GLenum
no setter
FRAMEBUFFER_UNSUPPORTED GLenum
no setter
FRONT GLenum
no setter
FRONT_AND_BACK GLenum
no setter
FRONT_FACE GLenum
no setter
FUNC_ADD GLenum
no setter
FUNC_REVERSE_SUBTRACT GLenum
no setter
FUNC_SUBTRACT GLenum
no setter
GENERATE_MIPMAP_HINT GLenum
no setter
GEQUAL GLenum
no setter
GREATER GLenum
no setter
GREEN_BITS GLenum
no setter
HIGH_FLOAT GLenum
no setter
HIGH_INT GLenum
no setter
IMPLEMENTATION_COLOR_READ_FORMAT GLenum
no setter
IMPLEMENTATION_COLOR_READ_TYPE GLenum
no setter
INCR GLenum
no setter
INCR_WRAP GLenum
no setter
INT GLenum
no setter
INT_VEC2 GLenum
no setter
INT_VEC3 GLenum
no setter
INT_VEC4 GLenum
no setter
INVALID_ENUM GLenum
no setter
INVALID_FRAMEBUFFER_OPERATION GLenum
no setter
INVALID_OPERATION GLenum
no setter
INVALID_VALUE GLenum
no setter
INVERT GLenum
no setter
KEEP GLenum
no setter
LEQUAL GLenum
no setter
LESS GLenum
no setter
LINE_LOOP GLenum
no setter
LINE_STRIP GLenum
no setter
LINE_WIDTH GLenum
no setter
LINEAR GLenum
no setter
LINEAR_MIPMAP_LINEAR GLenum
no setter
LINEAR_MIPMAP_NEAREST GLenum
no setter
LINES GLenum
no setter
no setter
LOW_FLOAT GLenum
no setter
LOW_INT GLenum
no setter
LUMINANCE GLenum
no setter
LUMINANCE_ALPHA GLenum
no setter
MAX_COMBINED_TEXTURE_IMAGE_UNITS GLenum
no setter
MAX_CUBE_MAP_TEXTURE_SIZE GLenum
no setter
MAX_FRAGMENT_UNIFORM_VECTORS GLenum
no setter
MAX_RENDERBUFFER_SIZE GLenum
no setter
MAX_TEXTURE_IMAGE_UNITS GLenum
no setter
MAX_TEXTURE_SIZE GLenum
no setter
MAX_VARYING_VECTORS GLenum
no setter
MAX_VERTEX_ATTRIBS GLenum
no setter
MAX_VERTEX_TEXTURE_IMAGE_UNITS GLenum
no setter
MAX_VERTEX_UNIFORM_VECTORS GLenum
no setter
MAX_VIEWPORT_DIMS GLenum
no setter
MEDIUM_FLOAT GLenum
no setter
MEDIUM_INT GLenum
no setter
MIRRORED_REPEAT GLenum
no setter
NEAREST GLenum
no setter
NEAREST_MIPMAP_LINEAR GLenum
no setter
NEAREST_MIPMAP_NEAREST GLenum
no setter
NEVER GLenum
no setter
NICEST GLenum
no setter
NO_ERROR GLenum
no setter
NONE GLenum
no setter
NOTEQUAL GLenum
no setter
ONE GLenum
no setter
ONE_MINUS_CONSTANT_ALPHA GLenum
no setter
ONE_MINUS_CONSTANT_COLOR GLenum
no setter
ONE_MINUS_DST_ALPHA GLenum
no setter
ONE_MINUS_DST_COLOR GLenum
no setter
ONE_MINUS_SRC_ALPHA GLenum
no setter
ONE_MINUS_SRC_COLOR GLenum
no setter
OUT_OF_MEMORY GLenum
no setter
PACK_ALIGNMENT GLenum
no setter
POINTS GLenum
no setter
POLYGON_OFFSET_FACTOR GLenum
no setter
POLYGON_OFFSET_FILL GLenum
no setter
POLYGON_OFFSET_UNITS GLenum
no setter
RED_BITS GLenum
no setter
RENDERBUFFER GLenum
no setter
RENDERBUFFER_ALPHA_SIZE GLenum
no setter
RENDERBUFFER_BINDING GLenum
no setter
RENDERBUFFER_BLUE_SIZE GLenum
no setter
RENDERBUFFER_DEPTH_SIZE GLenum
no setter
RENDERBUFFER_GREEN_SIZE GLenum
no setter
RENDERBUFFER_HEIGHT GLenum
no setter
RENDERBUFFER_INTERNAL_FORMAT GLenum
no setter
RENDERBUFFER_RED_SIZE GLenum
no setter
RENDERBUFFER_STENCIL_SIZE GLenum
no setter
RENDERBUFFER_WIDTH GLenum
no setter
RENDERER GLenum
no setter
REPEAT GLenum
no setter
REPLACE GLenum
no setter
RGB GLenum
no setter
RGB565 GLenum
no setter
RGB5_A1 GLenum
no setter
RGBA GLenum
no setter
RGBA4 GLenum
no setter
RGBA8 GLenum
no setter
SAMPLE_ALPHA_TO_COVERAGE GLenum
no setter
SAMPLE_BUFFERS GLenum
no setter
SAMPLE_COVERAGE GLenum
no setter
SAMPLE_COVERAGE_INVERT GLenum
no setter
SAMPLE_COVERAGE_VALUE GLenum
no setter
SAMPLER_2D GLenum
no setter
SAMPLER_CUBE GLenum
no setter
SAMPLES GLenum
no setter
SCISSOR_BOX GLenum
no setter
SCISSOR_TEST GLenum
no setter
SHADER_TYPE GLenum
no setter
SHADING_LANGUAGE_VERSION GLenum
no setter
SHORT GLenum
no setter
SRC_ALPHA GLenum
no setter
SRC_ALPHA_SATURATE GLenum
no setter
SRC_COLOR GLenum
no setter
STATIC_DRAW GLenum
no setter
STENCIL_ATTACHMENT GLenum
no setter
STENCIL_BACK_FAIL GLenum
no setter
STENCIL_BACK_FUNC GLenum
no setter
STENCIL_BACK_PASS_DEPTH_FAIL GLenum
no setter
STENCIL_BACK_PASS_DEPTH_PASS GLenum
no setter
STENCIL_BACK_REF GLenum
no setter
STENCIL_BACK_VALUE_MASK GLenum
no setter
STENCIL_BACK_WRITEMASK GLenum
no setter
STENCIL_BITS GLenum
no setter
STENCIL_BUFFER_BIT GLenum
no setter
STENCIL_CLEAR_VALUE GLenum
no setter
STENCIL_FAIL GLenum
no setter
STENCIL_FUNC GLenum
no setter
STENCIL_INDEX8 GLenum
no setter
STENCIL_PASS_DEPTH_FAIL GLenum
no setter
STENCIL_PASS_DEPTH_PASS GLenum
no setter
STENCIL_REF GLenum
no setter
STENCIL_TEST GLenum
no setter
STENCIL_VALUE_MASK GLenum
no setter
STENCIL_WRITEMASK GLenum
no setter
STREAM_DRAW GLenum
no setter
SUBPIXEL_BITS GLenum
no setter
TEXTURE GLenum
no setter
TEXTURE0 GLenum
no setter
TEXTURE1 GLenum
no setter
TEXTURE10 GLenum
no setter
TEXTURE11 GLenum
no setter
TEXTURE12 GLenum
no setter
TEXTURE13 GLenum
no setter
TEXTURE14 GLenum
no setter
TEXTURE15 GLenum
no setter
TEXTURE16 GLenum
no setter
TEXTURE17 GLenum
no setter
TEXTURE18 GLenum
no setter
TEXTURE19 GLenum
no setter
TEXTURE2 GLenum
no setter
TEXTURE20 GLenum
no setter
TEXTURE21 GLenum
no setter
TEXTURE22 GLenum
no setter
TEXTURE23 GLenum
no setter
TEXTURE24 GLenum
no setter
TEXTURE25 GLenum
no setter
TEXTURE26 GLenum
no setter
TEXTURE27 GLenum
no setter
TEXTURE28 GLenum
no setter
TEXTURE29 GLenum
no setter
TEXTURE3 GLenum
no setter
TEXTURE30 GLenum
no setter
TEXTURE31 GLenum
no setter
TEXTURE4 GLenum
no setter
TEXTURE5 GLenum
no setter
TEXTURE6 GLenum
no setter
TEXTURE7 GLenum
no setter
TEXTURE8 GLenum
no setter
TEXTURE9 GLenum
no setter
TEXTURE_2D GLenum
no setter
TEXTURE_BINDING_2D GLenum
no setter
TEXTURE_BINDING_CUBE_MAP GLenum
no setter
TEXTURE_CUBE_MAP GLenum
no setter
TEXTURE_CUBE_MAP_NEGATIVE_X GLenum
no setter
TEXTURE_CUBE_MAP_NEGATIVE_Y GLenum
no setter
TEXTURE_CUBE_MAP_NEGATIVE_Z GLenum
no setter
TEXTURE_CUBE_MAP_POSITIVE_X GLenum
no setter
TEXTURE_CUBE_MAP_POSITIVE_Y GLenum
no setter
TEXTURE_CUBE_MAP_POSITIVE_Z GLenum
no setter
TEXTURE_MAG_FILTER GLenum
no setter
TEXTURE_MIN_FILTER GLenum
no setter
TEXTURE_WRAP_S GLenum
no setter
TEXTURE_WRAP_T GLenum
no setter
TRIANGLE_FAN GLenum
no setter
TRIANGLE_STRIP GLenum
no setter
TRIANGLES GLenum
no setter
UNPACK_ALIGNMENT GLenum
no setter
UNPACK_COLORSPACE_CONVERSION_WEBGL GLenum
no setter
UNPACK_FLIP_Y_WEBGL GLenum
no setter
UNPACK_PREMULTIPLY_ALPHA_WEBGL GLenum
no setter
UNSIGNED_BYTE GLenum
no setter
UNSIGNED_INT GLenum
no setter
UNSIGNED_SHORT GLenum
no setter
UNSIGNED_SHORT_4_4_4_4 GLenum
no setter
UNSIGNED_SHORT_5_5_5_1 GLenum
no setter
UNSIGNED_SHORT_5_6_5 GLenum
no setter
VALIDATE_STATUS GLenum
no setter
VENDOR GLenum
no setter
VERSION GLenum
no setter
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING GLenum
no setter
VERTEX_ATTRIB_ARRAY_ENABLED GLenum
no setter
VERTEX_ATTRIB_ARRAY_NORMALIZED GLenum
no setter
VERTEX_ATTRIB_ARRAY_POINTER GLenum
no setter
VERTEX_ATTRIB_ARRAY_SIZE GLenum
no setter
VERTEX_ATTRIB_ARRAY_STRIDE GLenum
no setter
VERTEX_ATTRIB_ARRAY_TYPE GLenum
no setter
VERTEX_SHADER GLenum
no setter
VIEWPORT GLenum
no setter
ZERO GLenum
no setter