WEBGLDrawBuffers class

The extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example. WebGL extensions are available using the WebGLRenderingContext.getExtension() method. For more information, see also Using Extensions in the WebGL tutorial.

Note: This extension is only available to WebGL1 contexts. In WebGL2, the functionality of this extension is available on the WebGL2 context by default. In WebGL 2, the constants are available without the "WEBGL" suffix and the new GLSL built-ins require GLSL #version 300 es.

Available extensions
Annotations
  • @JS('WEBGL_draw_buffers')
  • @staticInterop

Constructors

WEBGLDrawBuffers()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

drawBuffersWEBGL(Iterable<int> buffers) → void

Available on WEBGLDrawBuffers, provided by the PropsWEBGLDrawBuffers extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

colorAttachment0Webgl int
no setter
colorAttachment10Webgl int
no setter
colorAttachment11Webgl int
no setter
colorAttachment12Webgl int
no setter
colorAttachment13Webgl int
no setter
colorAttachment14Webgl int
no setter
colorAttachment15Webgl int
no setter
colorAttachment1Webgl int
no setter
colorAttachment2Webgl int
no setter
colorAttachment3Webgl int
no setter
colorAttachment4Webgl int
no setter
colorAttachment5Webgl int
no setter
colorAttachment6Webgl int
no setter
colorAttachment7Webgl int
no setter
colorAttachment8Webgl int
no setter
colorAttachment9Webgl int
no setter
drawBuffer0Webgl int
no setter
drawBuffer10Webgl int
no setter
drawBuffer11Webgl int
no setter
drawBuffer12Webgl int
no setter
drawBuffer13Webgl int
no setter
drawBuffer14Webgl int
no setter
drawBuffer15Webgl int
no setter
drawBuffer1Webgl int
no setter
drawBuffer2Webgl int
no setter
drawBuffer3Webgl int
no setter
drawBuffer4Webgl int
no setter
drawBuffer5Webgl int
no setter
drawBuffer6Webgl int
no setter
drawBuffer7Webgl int
no setter
drawBuffer8Webgl int
no setter
drawBuffer9Webgl int
no setter
maxColorAttachmentsWebgl int
no setter
maxDrawBuffersWebgl int
no setter