PIXI.ParticleBuffer

private class ParticleBuffer

The particle buffer manages the static and dynamic buffers for a particle container.

Constructor


new PIXI.ParticleBuffer(properties: object, dynamicPropertyFlags: Array<boolean>, size: number) → {}
Parameters:
Name Type Description
properties object

The properties to upload.

dynamicPropertyFlags Array<boolean>

Flags for which properties are dynamic.

size number

The size of the batch.

Summary


Properties from ParticleBuffer

PIXI.Buffer
indexBuffer

Holds the indices of the geometry (quads) to draw.

Methods from ParticleBuffer

void
destroy()

Destroys the ParticleBuffer.

void
uploadDynamic(children: PIXI.Sprite[], startIndex: number, amount: number)
void
uploadStatic(children: PIXI.Sprite[], startIndex: number, amount: number)

Public Properties


indexBuffer ParticleBuffer.ts:38
indexBuffer: PIXI.Buffer

Holds the indices of the geometry (quads) to draw.

Public Methods


destroy ParticleBuffer.ts:222
destroy() → {void}

Destroys the ParticleBuffer.

Returns:
Type Description
void
uploadDynamic ParticleBuffer.ts:182
uploadDynamic(children: PIXI.Sprite[], startIndex: number, amount: number) → {void}

Uploads the dynamic properties.

Parameters:
Name Type Description
children PIXI.Sprite[]

The children to upload.

startIndex number

The index to start at.

amount number

The number to upload.

Returns:
Type Description
void
uploadStatic ParticleBuffer.ts:202
uploadStatic(children: PIXI.Sprite[], startIndex: number, amount: number) → {void}

Uploads the static properties.

Parameters:
Name Type Description
children PIXI.Sprite[]

The children to upload.

startIndex number

The index to start at.

amount number

The number to upload.

Returns:
Type Description
void

Powered by webdoc!