LogoPixi’VN
pixi-jsClasses

Class: ParticleBuffer

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:23

Internal

The ParticleBuffer holds the buffers and geometry for a particle container. It also contains the upload functions for the static and dynamic properties.

Implements

Constructors

Constructor

> new ParticleBuffer(options): ParticleBuffer

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:40

Parameters

options

ParticleBufferOptions

Returns

ParticleBuffer

Properties

dynamicAttributeBuffer

> dynamicAttributeBuffer: ViewableBuffer

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:27

The buffer containing dynamic attribute data for all elements in the batch.


geometry

> readonly geometry: Geometry

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:35

The geometry of the particle buffer.


indexBuffer

> indexBuffer: IndexBufferArray

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:31

The buffer containing index data for all elements in the batch.


staticAttributeBuffer

> staticAttributeBuffer: ViewableBuffer

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:25

The buffer containing static attribute data for all elements in the batch.

Methods

destroy()

> destroy(): void

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:50

Returns

void

Implementation of

GPUData.destroy


generateParticleUpdate()

> generateParticleUpdate(properties): object

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:45

Parameters

properties

Record<string, ParticleRendererProperty>

Returns

object

dynamicUpdate

> dynamicUpdate: ParticleUpdateFunction

staticUpdate

> staticUpdate: ParticleUpdateFunction


getParticleUpdate()

> getParticleUpdate(properties): object

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:41

Parameters

properties

Record<string, ParticleRendererProperty>

Returns

object

dynamicUpdate

> dynamicUpdate: ParticleUpdateFunction

staticUpdate

> staticUpdate: ParticleUpdateFunction


update()

> update(particles, uploadStatic): void

Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleBuffer.d.ts:49

Parameters

particles

IParticle[]

uploadStatic

boolean

Returns

void