Options
All
  • Public
  • Public/Protected
  • All
Menu

Rendering Context wraps WebGLRenderingContext and a cache for shared Buffers.

Hierarchy

  • RenderingContext

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private buffers

buffers: object

Type declaration

Private gl

gl: WebGLRenderingContext

the WebGLRenderingContext to be used

Methods

cacheBuffer

  • cacheBuffer(name: string, buffer: Buffer): void
  • Caches given buffer in this context

    Parameters

    • name: string

      cache key for the buffer

    • buffer: Buffer

      the buffer to be cached

    Returns void

destroy

  • destroy(): void

getBuffer

  • getBuffer(name: string): Buffer

getGl

  • getGl(): WebGLRenderingContext