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

    A RenderNode which renders a filled triangle.

    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

    • Render the triangle.

      Parameters

      • drawingContext: DrawingContext

        The context currently in use.

      • currentMatrix: TransformMatrix

        A transform matrix to apply to the vertices. If not defined, the vertices are not transformed.

      • submitterNode: BatchHandlerTriFlat

        The Submitter node to use.

      • xA: number

        The x-coordinate of the first vertex.

      • yA: number

        The y-coordinate of the first vertex.

      • xB: number

        The x-coordinate of the second vertex.

      • yB: number

        The y-coordinate of the second vertex.

      • xC: number

        The x-coordinate of the third vertex.

      • yC: number

        The y-coordinate of the third vertex.

      • tintA: number

        The tint color of the first vertex.

      • tintB: number

        The tint color of the second vertex.

      • tintC: number

        The tint color of the third vertex.

      • lighting: boolean

        Whether to apply lighting effects to the triangle.

      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