EXTSRGB class
The extension is part of the WebGL API and adds sRGB support to
textures and framebuffer objects.
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. The constants in WebGL2 are:
gl.SRGB
, gl.SRGB8
, gl.SRGB8_ALPHA8
and
gl.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING
.
- Annotations
-
- @JS('EXT_sRGB')
- @staticInterop
Constructors
- EXTSRGB()
-
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
-
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
- framebufferAttachmentColorEncodingExt → int
-
no setter
- srgb8Alpha8Ext → int
-
no setter
- srgbAlphaExt → int
-
no setter
- srgbExt → int
-
no setter