LayerPixiRenderer

LayerPixiRenderer

The renderer for a gdjs.Layer using Pixi.js.

Constructor

new LayerPixiRenderer(layer, runtimeSceneRenderer)

Parameters:
Name Type Description
layer

The layer

runtimeSceneRenderer

The scene renderer

Source:

Methods

addRendererObject(child, zOrder)

Add a child to the pixi container associated to the layer. All objects which are on this layer must be children of this container.

Parameters:
Name Type Description
child

The child (PIXI object) to be added.

zOrder

The z order of the associated object.

Source:

changeRendererObjectZOrder(child, newZOrder)

Change the z order of a child associated to an object.

Parameters:
Name Type Description
child

The child (PIXI object) to be modified.

newZOrder

The z order of the associated object.

Source:

removeRendererObject(child)

Remove a child from the internal pixi container. Should be called when an object is deleted or removed from the layer.

Parameters:
Name Type Description
child

The child (PIXI object) to be removed.

Source:

updatePosition()

Update the position of the PIXI container. To be called after each change made to position, zoom or rotation of the camera.

Source: