WebGL2RenderingContext class
The WebGL2RenderingContext interface provides the OpenGL ES 3.0
rendering context for the drawing surface of an HTML <canvas>
element.
 To get an object of this interface, call getContext() on a
<canvas> element, supplying "webgl2" as the argument:
var canvas = document.getElementById('myCanvas');
var gl = canvas.getContext('webgl2');
Note: WebGL 2 is an extension to WebGL 1. The interface implements all members of the WebGLRenderingContext interface. Some methods of the WebGL 1 context can accept additional values when used in a WebGL 2 context. You will find this info noted on the WebGL 1 reference pages.
The WebGL tutorial has more information, examples, and resources on how to get started with WebGL.
- Implemented types
- Available extensions
- Annotations
- 
    - @JS.new()
- @staticInterop
 
Constructors
- WebGL2RenderingContext()
- 
          
            factory
Properties
- canvas → dynamic
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension no setter
- drawingBufferColorSpace ↔ PredefinedColorSpace
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension getter/setter pair
- drawingBufferHeight → int
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension no setter
- drawingBufferWidth → int
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 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
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension getter/setter pair
Methods
- 
  activeTexture(int texture) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  attachShader(WebGLProgram program, WebGLShader shader) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  beginQuery(int target, WebGLQuery query) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  beginTransformFeedback(int primitiveMode) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  bindAttribLocation(WebGLProgram program, int index, String name) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  bindBuffer(int target, WebGLBuffer? buffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  bindBufferBase(int target, int index, WebGLBuffer? buffer) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  bindBufferRange(int target, int index, WebGLBuffer? buffer, int offset, int size) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  bindFramebuffer(int target, WebGLFramebuffer? framebuffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  bindRenderbuffer(int target, WebGLRenderbuffer? renderbuffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  bindSampler(int unit, WebGLSampler? sampler) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  bindTexture(int target, WebGLTexture? texture) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  bindTransformFeedback(int target, WebGLTransformFeedback? tf) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  bindVertexArray(WebGLVertexArrayObject? array) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  blendColor(dynamic red, dynamic green, dynamic blue, dynamic alpha) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  blendEquation(int mode) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  blendEquationSeparate(int modeRGB, int modeAlpha) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  blendFunc(int sfactor, int dfactor) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  blitFramebuffer(int srcX0, int srcY0, int srcX1, int srcY1, int dstX0, int dstY0, int dstX1, int dstY1, int mask, int filter) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  bufferData(int target, dynamic srcData, [int? usage, int? srcOffset, int? length = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  bufferSubData(int target, int dstByteOffset, [dynamic srcData, int? srcOffset, int? length = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  checkFramebufferStatus(int target) → int 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  clear(int mask) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  clearBufferfi(int buffer, int drawbuffer, dynamic depth, int stencil) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  clearBufferfv(int buffer, int drawbuffer, dynamic values, [int? srcOffset = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  clearBufferiv(int buffer, int drawbuffer, dynamic values, [int? srcOffset = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  clearBufferuiv(int buffer, int drawbuffer, dynamic values, [int? srcOffset = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  clearColor(dynamic red, dynamic green, dynamic blue, dynamic alpha) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  clearDepth(dynamic depth) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  clearStencil(int s) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  clientWaitSync(WebGLSync sync, int flags, int timeout) → int 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  colorMask(bool red, bool green, bool blue, bool alpha) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  compileShader(WebGLShader shader) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, dynamic srcData, [int? srcOffset = 0, int? srcLengthOverride = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  compressedTexImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, dynamic srcData, [int? srcOffset = 0, int? srcLengthOverride = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, dynamic srcData, [int? srcOffset = 0, int? srcLengthOverride = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  compressedTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, dynamic srcData, [int? srcOffset = 0, int? srcLengthOverride = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  copyBufferSubData(int readTarget, int writeTarget, int readOffset, int writeOffset, int size) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  copyTexSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int x, int y, int width, int height) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  createBuffer() → WebGLBuffer? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  createFramebuffer() → WebGLFramebuffer? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  createProgram() → WebGLProgram? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  createQuery() → WebGLQuery? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  createRenderbuffer() → WebGLRenderbuffer? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  createSampler() → WebGLSampler? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  createShader(int type) → WebGLShader? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  createTexture() → WebGLTexture? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  createTransformFeedback() → WebGLTransformFeedback? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  createVertexArray() → WebGLVertexArrayObject? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  cullFace(int mode) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteBuffer(WebGLBuffer? buffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteFramebuffer(WebGLFramebuffer? framebuffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteProgram(WebGLProgram? program) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteQuery(WebGLQuery? query) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  deleteRenderbuffer(WebGLRenderbuffer? renderbuffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteSampler(WebGLSampler? sampler) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  deleteShader(WebGLShader? shader) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteSync(WebGLSync? sync) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  deleteTexture(WebGLTexture? texture) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  deleteTransformFeedback(WebGLTransformFeedback? tf) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  deleteVertexArray(WebGLVertexArrayObject? vertexArray) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  depthFunc(int func) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  depthMask(bool flag) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  depthRange(dynamic zNear, dynamic zFar) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  detachShader(WebGLProgram program, WebGLShader shader) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  disable(int cap) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  disableVertexAttribArray(int index) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  drawArrays(int mode, int first, int count) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  drawArraysInstanced(int mode, int first, int count, int instanceCount) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  drawBuffers(Iterable< int> buffers) → void
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  drawElements(int mode, int count, int type, int offset) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  drawElementsInstanced(int mode, int count, int type, int offset, int instanceCount) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  drawRangeElements(int mode, int start, int end, int count, int type, int offset) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  enable(int cap) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  enableVertexAttribArray(int index) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  endQuery(int target) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  endTransformFeedback() → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  fenceSync(int condition, int flags) → WebGLSync? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  finish() → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  flush() → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer? renderbuffer) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture? texture, int level) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  framebufferTextureLayer(int target, int attachment, WebGLTexture? texture, int level, int layer) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  frontFace(int mode) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  generateMipmap(int target) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getActiveAttrib(WebGLProgram program, int index) → WebGLActiveInfo? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getActiveUniform(WebGLProgram program, int index) → WebGLActiveInfo? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getActiveUniformBlockName(WebGLProgram program, int uniformBlockIndex) → String? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getActiveUniformBlockParameter(WebGLProgram program, int uniformBlockIndex, int pname) → dynamic 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getActiveUniforms(WebGLProgram program, Iterable< int> uniformIndices, int pname) → dynamic
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getAttachedShaders(WebGLProgram program) → Iterable< WebGLShader> 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getAttribLocation(WebGLProgram program, String name) → int 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getBufferParameter(int target, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getBufferSubData(int target, int srcByteOffset, dynamic dstBuffer, [int? dstOffset = 0, int? length = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getContextAttributes() → WebGLContextAttributes? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getError() → int 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getExtension(String name) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getFragDataLocation(WebGLProgram program, String name) → int 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getFramebufferAttachmentParameter(int target, int attachment, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getIndexedParameter(int target, int index) → dynamic 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getInternalformatParameter(int target, int internalformat, int pname) → dynamic 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getParameter(int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getProgramInfoLog(WebGLProgram program) → String? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getProgramParameter(WebGLProgram program, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getQuery(int target, int pname) → WebGLQuery? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getQueryParameter(WebGLQuery query, int pname) → dynamic 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getRenderbufferParameter(int target, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getSamplerParameter(WebGLSampler sampler, int pname) → dynamic 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getShaderInfoLog(WebGLShader shader) → String? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getShaderParameter(WebGLShader shader, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getShaderPrecisionFormat(int shadertype, int precisiontype) → WebGLShaderPrecisionFormat? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getShaderSource(WebGLShader shader) → String? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getSupportedExtensions() → Iterable< String> 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getSyncParameter(WebGLSync sync, int pname) → dynamic 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getTexParameter(int target, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getTransformFeedbackVarying(WebGLProgram program, int index) → WebGLActiveInfo? 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getUniform(WebGLProgram program, WebGLUniformLocation location) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getUniformBlockIndex(WebGLProgram program, String uniformBlockName) → int 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getUniformIndices(WebGLProgram program, Iterable< String> uniformNames) → Iterable<int> 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  getUniformLocation(WebGLProgram program, String name) → WebGLUniformLocation? 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getVertexAttrib(int index, int pname) → dynamic 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  getVertexAttribOffset(int index, int pname) → int 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  hint(int target, int mode) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  invalidateFramebuffer(int target, Iterable< int> attachments) → void
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  invalidateSubFramebuffer(int target, Iterable< int> attachments, int x, int y, int width, int height) → void
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  isBuffer(WebGLBuffer? buffer) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isContextLost() → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isEnabled(int cap) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isFramebuffer(WebGLFramebuffer? framebuffer) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isProgram(WebGLProgram? program) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isQuery(WebGLQuery? query) → bool 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  isRenderbuffer(WebGLRenderbuffer? renderbuffer) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isSampler(WebGLSampler? sampler) → bool 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  isShader(WebGLShader? shader) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isSync(WebGLSync? sync) → bool 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  isTexture(WebGLTexture? texture) → bool 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  isTransformFeedback(WebGLTransformFeedback? tf) → bool 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  isVertexArray(WebGLVertexArrayObject? vertexArray) → bool 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  lineWidth(dynamic width) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  linkProgram(WebGLProgram program) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  makeXRCompatible() → Future< void> 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  pauseTransformFeedback() → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  pixelStorei(int pname, int param) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  polygonOffset(dynamic factor, dynamic units) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  readBuffer(int src) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  readPixels(int x, int y, int width, int height, int format, int type, [dynamic dstData, int? dstOffset]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  renderbufferStorage(int target, int internalformat, int width, int height) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  renderbufferStorageMultisample(int target, int samples, int internalformat, int width, int height) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  resumeTransformFeedback() → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  sampleCoverage(dynamic value, bool invert) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  samplerParameterf(WebGLSampler sampler, int pname, dynamic param) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  samplerParameteri(WebGLSampler sampler, int pname, int param) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  scissor(int x, int y, int width, int height) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  shaderSource(WebGLShader shader, String source) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  stencilFunc(int func, int ref, int mask) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  stencilFuncSeparate(int face, int func, int ref, int mask) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  stencilMask(int mask) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  stencilMaskSeparate(int face, int mask) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  stencilOp(int fail, int zfail, int zpass) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  stencilOpSeparate(int face, int fail, int zfail, int zpass) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  texImage2D(int target, int level, int internalformat, int width, int height, [int? border, int? format, int? type, dynamic srcData, int? srcOffset]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  texImage3D(int target, int level, int internalformat, int width, int height, int depth, int border, int format, int type, [dynamic srcData, int? srcOffset]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  texParameterf(int target, int pname, dynamic param) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  texParameteri(int target, int pname, int param) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  texStorage2D(int target, int levels, int internalformat, int width, int height) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  texStorage3D(int target, int levels, int internalformat, int width, int height, int depth) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, [int? format, int? type, dynamic srcData, int? srcOffset]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  texSubImage3D(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int type, [dynamic srcData, int? srcOffset = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
- 
  transformFeedbackVaryings(WebGLProgram program, Iterable< String> varyings, int bufferMode) → void
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform1f(WebGLUniformLocation? location, dynamic x) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform1fv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform1i(WebGLUniformLocation? location, int x) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform1iv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform1ui(WebGLUniformLocation? location, int v0) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform1uiv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform2f(WebGLUniformLocation? location, dynamic x, dynamic y) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform2fv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform2i(WebGLUniformLocation? location, int x, int y) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform2iv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform2ui(WebGLUniformLocation? location, int v0, int v1) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform2uiv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform3f(WebGLUniformLocation? location, dynamic x, dynamic y, dynamic z) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform3fv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform3i(WebGLUniformLocation? location, int x, int y, int z) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform3iv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform3ui(WebGLUniformLocation? location, int v0, int v1, int v2) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform3uiv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform4f(WebGLUniformLocation? location, dynamic x, dynamic y, dynamic z, dynamic w) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform4fv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform4i(WebGLUniformLocation? location, int x, int y, int z, int w) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  uniform4iv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniform4ui(WebGLUniformLocation? location, int v0, int v1, int v2, int v3) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniform4uiv(WebGLUniformLocation? location, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformBlockBinding(WebGLProgram program, int uniformBlockIndex, int uniformBlockBinding) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformMatrix2fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniformMatrix2x3fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformMatrix2x4fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformMatrix3fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniformMatrix3x2fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformMatrix3x4fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformMatrix4fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextOverloads, provided by the PropsWebGL2RenderingContextOverloads extension 
- 
  uniformMatrix4x2fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  uniformMatrix4x3fv(WebGLUniformLocation? location, bool transpose, dynamic data, [int? srcOffset = 0, int? srcLength = 0]) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  useProgram(WebGLProgram? program) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  validateProgram(WebGLProgram program) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib1f(int index, dynamic x) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib1fv(int index, dynamic values) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib2f(int index, dynamic x, dynamic y) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib2fv(int index, dynamic values) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib3f(int index, dynamic x, dynamic y, dynamic z) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib3fv(int index, dynamic values) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib4f(int index, dynamic x, dynamic y, dynamic z, dynamic w) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttrib4fv(int index, dynamic values) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  vertexAttribDivisor(int index, int divisor) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  vertexAttribI4i(int index, int x, int y, int z, int w) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  vertexAttribI4iv(int index, dynamic values) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  vertexAttribI4ui(int index, int x, int y, int z, int w) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  vertexAttribI4uiv(int index, dynamic values) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  vertexAttribIPointer(int index, int size, int type, int stride, int offset) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
- 
  vertexAttribPointer(int index, int size, int type, bool normalized, int stride, int offset) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  viewport(int x, int y, int width, int height) → void 
- 
      Available on WebGLRenderingContextBase, provided by the PropsWebGLRenderingContextBase extension 
- 
  waitSync(WebGLSync sync, int flags, int timeout) → void 
- 
      Available on WebGL2RenderingContextBase, provided by the PropsWebGL2RenderingContextBase extension 
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited