Context

Context contains the WebGL context.

Hierarchy

Constructors

new Context(canvas: HTMLCanvasElement, opts?: ContextOptions): Context

Properties

_shaders: WeakMap<Shader, Shader> = new WeakMap<typeof Shader, Shader>()

canvas: HTMLCanvasElement

capabilities: ContextCapabilities

The capabilities supported by current browser.

gl: WebGLRenderingContext

The WebGL rendering context used in this Context.

halfFloatExt: any

Methods

getOrCreateShader(klass: Shader): Shader