ParticleBufferBuilder

Description

sealed class Tinman.Engine.Particles.ParticleBufferBuilder

A builder for ParticleBuffer objects.

Public / Methods

Build


[OwnerReturn]
public method Build → ()

returns → ParticleBuffer

The built ParticleBuffer object.

Builds a ParticleBuffer object using the current builder options.

Capacity


public method Capacity → (1)

value in : int32

The particle buffer capacity. Will be clamped to [256..1048576].

returns → ParticleBufferBuilder

this

Specifies the capacity of the particle buffer.

Defaults to 65536 particles.

Data


public method Data → (1)

semantic in : Semantic

[not-null]
The vertex array semantic that represents the particle data to add.

returns → ParticleBufferBuilder

this

Specifies additional particle data.

The following particle data is created by the ParticleBuffer class is is thus always available:

The used IParticleUpdater object will create required particle data automatically. Additional optional particle data may be added with this method.

Rate


public method Rate → (1)

value in : int32

The desired update rate, in Hz. Will be clamped to [1..100].

returns → ParticleBufferBuilder

this

Specifies the update rate of the particle simulation.

Defaults to 12 Hz.

Updater


public method Updater → (1)

value in : IParticleUpdater

[not-null]
The particle updater.

returns → ParticleBufferBuilder

this

Specifies the particle updater to use for background particle simulation.

Defaults to a dummy particle updater that does not update any particle data.