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

    A RenderNode which handles texturing for a single TileSprite GameObject.

    This node stores values relevant to texturing, such as UVs and frame data. These values should be read off before the node is reused.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    frame: Frame

    The frame data of the GameObject being rendered.

    The manager that owns this RenderNode.

    name: string

    The name of the RenderNode.

    uvMatrix: TransformMatrix

    The matrix used internally to compute UV coordinates.

    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

    • Set this RenderNode to temporarily store the texture data for the given GameObject. Ensure that it is used before the node is reused.

      Parameters

      • drawingContext: DrawingContext

        The current drawing context.

      • gameObject: GameObjects.Image

        The GameObject being rendered.

      • Optionalelement: object

        The specific element within the game object. This is used for objects that consist of multiple quads. It is unused here.

      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