Options
All
  • Public
  • Public/Protected
  • All
Menu

System plugin to the renderer to manage the context.

memberof

PIXI

Hierarchy

Index

Constructors

constructor

Properties

Protected CONTEXT_UID

CONTEXT_UID: number

extensions

extensions: WebGLExtensions

Protected gl

renderer

renderer: Renderer

Readonly supports

supports: ISupportDict

webGLVersion

webGLVersion: number

Accessors

isLost

  • get isLost(): boolean
  • true if the context is lost

    member

    {boolean}

    readonly

    Returns boolean

Methods

Protected contextChange

  • Handle the context change event

    Parameters

    Returns void

createContext

  • createContext(canvas: HTMLCanvasElement, options: WebGLContextAttributes): IRenderingContext

destroy

  • destroy(): void
  • Generic destroy methods to be overridden by the subclass

    Returns void

Protected getExtensions

  • getExtensions(): void
  • Auto-populate the extensions

    Returns void

Protected handleContextLost

  • handleContextLost(event: WebGLContextEvent): void
  • Handles a lost webgl context

    Parameters

    • event: WebGLContextEvent

      The context lost event.

    Returns void

Protected handleContextRestored

  • handleContextRestored(): void
  • Handles a restored webgl context

    Returns void

Protected initFromContext

  • Initialize the context

    Parameters

    Returns void

Protected initFromOptions

  • initFromOptions(options: WebGLContextAttributes): void

Protected postrender

  • postrender(): void
  • Handle the post-render runner event

    Returns void

Protected validateContext

  • Validate context

    Parameters

    Returns void

Generated using TypeDoc