Table of Contents

Class ParticleSystemRenderProcessor

Namespace
Stride.Particles.Rendering
Assembly
Stride.Particles.dll

The processor in charge of updating and drawing the entities having sprite components.

public class ParticleSystemRenderProcessor : EntityProcessor<ParticleSystemComponent, RenderParticleSystem>, IEntityComponentRenderProcessor
Inheritance
ParticleSystemRenderProcessor
Implements
Inherited Members

Constructors

ParticleSystemRenderProcessor()

Initializes a new instance of the ParticleSystemRenderProcessor class.

public ParticleSystemRenderProcessor()

Properties

VisibilityGroup

public VisibilityGroup VisibilityGroup { get; set; }

Property Value

VisibilityGroup

Methods

Draw(RenderContext)

Performs work related to this processor.

public override void Draw(RenderContext context)

Parameters

context RenderContext

GenerateComponentData(Entity, ParticleSystemComponent)

Generates associated data to the given entity.

protected override RenderParticleSystem GenerateComponentData(Entity entity, ParticleSystemComponent particleSystemComponent)

Parameters

entity Entity

The entity.

particleSystemComponent ParticleSystemComponent

Returns

RenderParticleSystem

The associated data.

IsAssociatedDataValid(Entity, ParticleSystemComponent, RenderParticleSystem)

Checks if the current associated data is valid, or if readding the entity is required.

protected override bool IsAssociatedDataValid(Entity entity, ParticleSystemComponent spriteComponent, RenderParticleSystem associatedData)

Parameters

entity Entity

The entity.

spriteComponent ParticleSystemComponent
associatedData RenderParticleSystem

The associated data.

Returns

bool

True if the change in associated data requires the entity to be readded, false otherwise.

OnEntityComponentAdding(Entity, ParticleSystemComponent, RenderParticleSystem)

Run when a matching entity is added to this entity processor.

protected override void OnEntityComponentAdding(Entity entity, ParticleSystemComponent particleSystemComponent, RenderParticleSystem renderParticleSystem)

Parameters

entity Entity

The entity.

particleSystemComponent ParticleSystemComponent
renderParticleSystem RenderParticleSystem

OnEntityComponentRemoved(Entity, ParticleSystemComponent, RenderParticleSystem)

Run when a matching entity is removed from this entity processor.

protected override void OnEntityComponentRemoved(Entity entity, ParticleSystemComponent particleSystemComponent, RenderParticleSystem renderParticleSystem)

Parameters

entity Entity

The entity.

particleSystemComponent ParticleSystemComponent
renderParticleSystem RenderParticleSystem