Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GLExtRequestor

Hierarchy

Index

Constructors

constructor

Properties

extensions

extensions: object

Type declaration

  • [key: string]: any

gl

gl: WebGLRenderingContext

Static _customExtensionResolvers

_customExtensionResolvers: object

Some of extensions needed to override resolving extensions by this.

Type declaration

  • [key: string]: function
      • (gl: WebGLRenderingContext): any
      • Parameters

        • gl: WebGLRenderingContext

        Returns any

Static _requestObserver

_requestObserver: function[] = []

Static registryName

registryName: string = "GLExtensionRequestor"

Methods

Static Protected ___get

  • ___get<T>(gl: WebGLRenderingContext, ctor: object): T

Static Protected ___getAll

  • ___getAll<T>(ctor: object): T[]

Static get

Static request

  • request(extName: string, isNecessary?: boolean): void
  • Request extension to use.

    Parameters

    • extName: string
    • Default value isNecessary: boolean = false

    Returns void

Static supported

  • supported(extName: string): boolean
  • Check specified extension was supported on this device. Note: This method would throw an exception if there was no WebGL context initialized yet.

    Parameters

    • extName: string

    Returns boolean

    [description]

Generated using TypeDoc