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

    This RenderNode handles rendering of a single SpriteGPULayer object. A new instance of the RenderNode should be created for each SpriteGPULayer object, as it stores the shader program and vertex buffer data for the object.

    It is a Stand Alone Render, meaning that it does not batch. It is best suited to rendering highly complex objects.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _calcMatrix: TransformMatrix

    A matrix used for temporary calculations.

    config: object

    The completed configuration object for this RenderNode. This is defined by the default configuration and the user-defined configuration object.

    defaultConfig: object

    Default configuration of this RenderNode.

    The SpriteGPULayer GameObject this RenderNode is rendering.

    instanceBufferLayout: WebGLVertexBufferLayoutWrapper

    The instance buffer layout for this RenderNode.

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    programManager: ProgramManager

    The program manager used to create and manage shader programs. This contains shader variants.

    vertexBufferLayout: WebGLVertexBufferLayoutWrapper

    The vertex buffer layout for this RenderNode.

    This consists of 4 bytes, 0-3, forming corners of a quad instance.

    Methods

    • Fill out the configuration object with default values where needed.

      Parameters

      • config: object

        The configuration object to complete.

      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 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

    • 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