Class: ParticleRenderer

PIXI.ParticleRenderer

new PIXI.ParticleRenderer (renderer)

Name Type Description
renderer PIXI.Renderer

The renderer this sprite batch works for.

Members

shader PIXI.Shader

The default shader that is used if a sprite doesn't have a more specific one.

Methods

Destroys the ParticleRenderer.

generateBuffers (container)Array.<PIXI.ParticleBuffer>

Creates one particle buffer for each child in the container we want to render and updates internal properties

Name Type Description
container PIXI.ParticleContainer

The container to render using this ParticleRenderer

Returns:
Type Description
Array.<PIXI.ParticleBuffer> The buffers

render (container)

Renders the particle container object.

Name Type Description
container PIXI.ParticleContainer

The container to render using this ParticleRenderer

uploadPosition (children, startIndex, amount, array, stride, offset)

Name Type Description
children Array.<PIXI.DisplayObject>

the array of display objects to render

startIndex number

the index to start from in the children array

amount number

the amount of children that will have their positions uploaded

array Array.<number>

The vertices to upload.

stride number

Stride to use for iteration.

offset number

Offset to start at.

uploadRotation (children, startIndex, amount, array, stride, offset)

Name Type Description
children Array.<PIXI.DisplayObject>

the array of display objects to render

startIndex number

the index to start from in the children array

amount number

the amount of children that will have their rotation uploaded

array Array.<number>

The vertices to upload.

stride number

Stride to use for iteration.

offset number

Offset to start at.

uploadTint (children, startIndex, amount, array, stride, offset)

Name Type Description
children Array.<PIXI.DisplayObject>

the array of display objects to render

startIndex number

the index to start from in the children array

amount number

the amount of children that will have their rotation uploaded

array Array.<number>

The vertices to upload.

stride number

Stride to use for iteration.

offset number

Offset to start at.

uploadUvs (children, startIndex, amount, array, stride, offset)

Name Type Description
children Array.<PIXI.DisplayObject>

the array of display objects to render

startIndex number

the index to start from in the children array

amount number

the amount of children that will have their rotation uploaded

array Array.<number>

The vertices to upload.

stride number

Stride to use for iteration.

offset number

Offset to start at.

uploadVertices (children, startIndex, amount, array, stride, offset)

Uploads the verticies.

Name Type Description
children Array.<PIXI.DisplayObject>

the array of display objects to render

startIndex number

the index to start from in the children array

amount number

the amount of children that will have their vertices uploaded

array Array.<number>

The vertices to upload.

stride number

Stride to use for iteration.

offset number

Offset to start at.