gameforge - v0.1.12
    Preparing search index...

    Class ContextSystem

    System plugin to the renderer to manage the context.

    PIXI

    Implements

    Index

    Constructors

    Properties

    CONTEXT_UID: number
    extensions: WebGLExtensions

    Extensions available.

    powerPreference: WebGLPowerPreference
    preserveDrawingBuffer: boolean
    supports: ISupportDict

    Features supported by current context.

    useContextAlpha: boolean | "notMultiplied"

    Pass-thru setting for the canvas' context alpha property. This is typically not something you need to fiddle with. If you want transparency, use backgroundAlpha.

    since 7.0.0

    webGLVersion: number

    Either 1 or 2 to reflect the WebGL version being used.

    Accessors

    • get isLost(): boolean

      true if the context is lost

      Returns boolean

    Methods

    • Handles the context change event.

      Parameters

      Returns void

    • Generic destroy methods to be overridden by the subclass

      Returns void

    • Auto-populate the PIXI.ContextSystem.extensions extensions.

      Returns void

    • Handles a lost webgl context

      Parameters

      • event: WebGLContextEvent

        The context lost event.

      Returns void

    • Handles a restored webgl context.

      Returns void

    • Protected

      Initializes the context.

      Parameters

      Returns void

    • Handle the post-render runner event.

      Returns void

    • Validate context.

      Parameters

      Returns void