WebGLContextAttributes

@native @JSGlobal @JSType
class WebGLContextAttributes extends Object

Contains drawing surface attributes.

class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

var alpha: Boolean

When true, the drawing buffer has an alpha channel.

When true, the drawing buffer has an alpha channel.

var antialias: Boolean

When true and antialiasing is supported, the drawing buffer will use an antialiasing method if it's choice.

When true and antialiasing is supported, the drawing buffer will use an antialiasing method if it's choice.

var depth: Boolean

When true, the drawing buffer has a depth buffer of at least 16 bits.

When true, the drawing buffer has a depth buffer of at least 16 bits.

var premultipliedAlpha: Boolean

When true the page compositor assumes the buffer's contents is premultiplied. Used for sensible transparency when using WebGL canvases for overlays.

When true the page compositor assumes the buffer's contents is premultiplied. Used for sensible transparency when using WebGL canvases for overlays.

When true, the drawing buffer is preserved after rendering, otherwise it is cleared. On some implementations preserving the drawing buffer can dramatically impact performance.

When true, the drawing buffer is preserved after rendering, otherwise it is cleared. On some implementations preserving the drawing buffer can dramatically impact performance.

var stencil: Boolean

When true, the drawing buffer has a stencil buffer of at least 8 bits.

When true, the drawing buffer has a stencil buffer of at least 8 bits.