new PIXI.ParticleRenderer (renderer) overrides
Name | Type | Description |
---|---|---|
renderer |
PIXI.Renderer |
The renderer this sprite batch works for. |
Extends
Members
shader PIXI.Shader
The default shader that is used if a sprite doesn't have a more specific one.
state PIXI.State
The WebGL state in which this renderer will work.
Methods
destroy () void overrides
Destroys the ParticleRenderer.
render (container) void overrides
Renders the particle container object.
Name | Type | Description |
---|---|---|
container |
PIXI.ParticleContainer |
The container to render using this ParticleRenderer |
Uploads the position.
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. |
Uploads the rotation.
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. |
Uploads the tint.
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. |
Uploads the Uvs
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. |
Uploads the vertices.
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. |
Inherited Properties
From class PIXI.ObjectRenderer
renderer PIXI.Renderer inherited
The renderer this manager works for.
Inherited Methods
From class PIXI.ObjectRenderer
flush () void inherited
Stub method that should be used to empty the current batch by rendering objects now.
start () void inherited
Stub method that initializes any state required before
rendering starts. It is different from the prerender
signal, which occurs every frame, in that it is called
whenever an object requests this renderer specifically.
stop () void inherited
Stops the renderer. It should free up any state and become dormant.