Class CPUEmitterSimulator
A class that manages a single particle emitter simulator by CPU.
Inherited Members
Namespace: Evergine.Framework.Particles
Assembly: Evergine.Framework.dll
Syntax
public class CPUEmitterSimulator : EmitterSimulator
Constructors
CPUEmitterSimulator(ParticlesComponent, ParticlesEmitter)
Initializes a new instance of the CPUEmitterSimulator class.
Declaration
public CPUEmitterSimulator(ParticlesComponent component, ParticlesEmitter emitter)
Parameters
Type | Name | Description |
---|---|---|
ParticlesComponent | component | The particle system component. |
ParticlesEmitter | emitter | The particle emitter. |
Properties
ComputeResolved
Gets a value indicating whether the emitter is using a compute shader.
Declaration
public override bool ComputeResolved { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Methods
ClearResources()
Clears the emitter's resources.
Declaration
protected override void ClearResources()
Overrides
CreateResources()
Creates the emitter's resources.
Declaration
protected override void CreateResources()
Overrides
RefreshCounters()
Refreshes all the counters that the emitter may have.
Declaration
protected override void RefreshCounters()
Overrides
RefreshParticles()
Refreshes the particles.
Declaration
protected override void RefreshParticles()
Overrides
ResetData(CommandBuffer)
Resets the emitter data.
Declaration
protected override void ResetData(CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
Overrides
Unitialize()
Uninitializes the emitter.
Declaration
protected override void Unitialize()
Overrides
UpdateParticlesMethod(CommandBuffer, TimeSpan)
The method that updates the particle system.
Declaration
protected override void UpdateParticlesMethod(CommandBuffer commandBuffer, TimeSpan gameTime)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
TimeSpan | gameTime |