phaser - v4.0.0-rc.4
    Preparing search index...

    RebindContext is a RenderNode which sets the WebGL context to a default state, resetting important properties that might have been changed by an external renderer.

    This is used by the Extern GameObject after rendering. It is the counterpart of YieldContext.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    Methods

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the start of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • By default this is an empty method hook that you can override and use in your own custom render nodes.

      This method is called at the end of the run method. Don't forget to call it in your custom method.

      Parameters

      Returns void

    • Run the RenderNode. This is a stub method that should be overridden by the specific implementation.

      This method may be wrapped by setDebug.

      Parameters

      • ...args: any[]

        Arguments to pass to the node. These will vary depending on the node.

      Returns void

    • Set whether the node should report debug information. It wraps the run method with additional debug information.

      Parameters

      • debug: boolean

        Whether to report debug information.

      Returns void