Skip to main content
Version: Phaser v4.0.0

ListCompositor

ListCompositor

Constructor

new ListCompositor(manager)

Parameters

nametypeoptionaldescription
managerPhaser.Renderer.WebGL.RenderNodes.RenderNodeManagerNoThe manager that owns this RenderNode.

Scope: static

Extends

Phaser.Renderer.WebGL.RenderNodes.RenderNode

Source: src/renderer/webgl/renderNodes/ListCompositor.js#L27
Since: 4.0.0

Inherited Methods

From Phaser.Renderer.WebGL.RenderNodes.RenderNode:


Public Methods

run

<instance> run(displayContext, children, [parentTransformMatrix], [renderStep])

Description:

Render each child in the display list.

This allocates a new DisplayContext if a child's blend mode is different from the previous child. This will start a new batch if one is in progress.

Parameters:

nametypeoptionaldefaultdescription
displayContextPhaser.Renderer.WebGL.DrawingContextNoThe context currently in use.
childrenArray.<Phaser.GameObjects.GameObject>NoThe list of children to render.
parentTransformMatrixPhaser.GameObjects.Components.TransformMatrixYesThe accumulated transform matrix of the parent Game Object, passed down when this list is rendered as part of a nested display hierarchy.
renderStepnumberYes0The index of the current render step within the ordered list of render functions being executed for this frame.

Overrides: Phaser.Renderer.WebGL.RenderNodes.RenderNode#run

Source: src/renderer/webgl/renderNodes/ListCompositor.js#L35
Since: 4.0.0


Inherited Members

From Phaser.Renderer.WebGL.RenderNodes.RenderNode: