PIXI.ParticleRenderer
class ParticleRenderer extends PIXI.ObjectRenderer
Renderer for Particles that is designer for speed over feature set.
Constructor
new PIXI.ParticleRenderer(renderer: PIXI.Renderer) → {}
Name | Type | Description |
---|---|---|
renderer | PIXI.Renderer |
The renderer this sprite batch works for. |
Summary
Properties from ParticleRenderer
PIXI.Shader |
The default shader that is used if a sprite doesn't have a more specific one. |
PIXI.State |
The WebGL state in which this renderer will work. |
Methods from ParticleRenderer
void |
Destroys the ParticleRenderer. |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Properties inherited from ObjectRenderer
PIXI.Renderer |
The renderer this manager works for. |
Public Properties
shader: PIXI.Shader
The default shader that is used if a sprite doesn't have a more specific one.
Public Methods
destroy() → {void}
Destroys the ParticleRenderer.
Type | Description |
---|---|
void |
render(container: PIXI.ParticleContainer) → {void}
Renders the particle container object.
Name | Type | Description |
---|---|---|
container | PIXI.ParticleContainer |
The container to render using this ParticleRenderer. |
Type | Description |
---|---|
void |
uploadPosition(children: PIXI.Sprite[], startIndex: number, amount: number, array: number[], stride: number, offset: number) → {void}
Uploads the position.
Name | Type | Description |
---|---|---|
children | PIXI.Sprite[] |
the array of sprites 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 | number[] |
The vertices to upload. |
stride | number |
Stride to use for iteration. |
offset | number |
Offset to start at. |
Type | Description |
---|---|
void |
uploadRotation(children: PIXI.Sprite[], startIndex: number, amount: number, array: number[], stride: number, offset: number) → {void}
Uploads the rotation.
Name | Type | Description |
---|---|---|
children | PIXI.Sprite[] |
the array of sprites 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 | number[] |
The vertices to upload. |
stride | number |
Stride to use for iteration. |
offset | number |
Offset to start at. |
Type | Description |
---|---|
void |
uploadTint(children: PIXI.Sprite[], startIndex: number, amount: number, array: number[], stride: number, offset: number) → {void}
Uploads the tint.
Name | Type | Description |
---|---|---|
children | PIXI.Sprite[] |
the array of sprites 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 | number[] |
The vertices to upload. |
stride | number |
Stride to use for iteration. |
offset | number |
Offset to start at. |
Type | Description |
---|---|
void |
uploadUvs(children: PIXI.Sprite[], startIndex: number, amount: number, array: number[], stride: number, offset: number) → {void}
Uploads the UVs.
Name | Type | Description |
---|---|---|
children | PIXI.Sprite[] |
the array of sprites 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 | number[] |
The vertices to upload. |
stride | number |
Stride to use for iteration. |
offset | number |
Offset to start at. |
Type | Description |
---|---|
void |
uploadVertices(children: PIXI.Sprite[], startIndex: number, amount: number, array: number[], stride: number, offset: number) → {void}
Uploads the vertices.
Name | Type | Description |
---|---|---|
children | PIXI.Sprite[] |
the array of sprites 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 | number[] |
The vertices to upload. |
stride | number |
Stride to use for iteration. |
offset | number |
Offset to start at. |
Type | Description |
---|---|
void |