WebGLRenderingContextOps

final implicit class WebGLRenderingContextOps(webGL: WebGLRenderingContext) extends AnyVal
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def getExtension[T](id: WebGLExtensionIdentifier[T]): UndefOr[T]

Returns the WebGL extension for the given identifier, if present on this browser.

Returns the WebGL extension for the given identifier, if present on this browser.

Type parameters:
T

The type of the result for this extension.

Value parameters:
id

the identifier singleton.

Returns:

Some(extension) or None