Hierarchy

  • WebGlContext

Constructors

  • Parameters

    • id: number
    • canvas: HTMLCanvasElement
    • gl: WebGL2RenderingContext
    • version: number

    Returns WebGlContext

Properties

canvas: HTMLCanvasElement
gl: WebGL2RenderingContext
id: number
resourceLoader: default = ...
version: number

Methods

  • Returns void

  • Returns void

  • Returns void

  • Initializes shaders and resource loader

    Returns Promise<void>

  • Completes once the context is ready for rendering

    Parameters

    • Optional background: boolean

    Returns Promise<void>

  • Returns Promise<void>

Generated using TypeDoc