Table of Contents

Class VideoProcessor

Namespace
Stride.Video.Rendering
Assembly
Stride.Video.dll

Processor in charge of updating the VideoComponents.

public class VideoProcessor : EntityProcessor<VideoComponent, VideoProcessor.AssociatedData>
Inheritance
VideoProcessor
Inherited Members

Fields

Logger

The logger of the VideoProcessor.

public static readonly Logger Logger

Field Value

Logger

Methods

Draw(RenderContext)

Performs work related to this processor.

public override void Draw(RenderContext context)

Parameters

context RenderContext

GenerateComponentData(Entity, VideoComponent)

Generates associated data to the given entity.

protected override VideoProcessor.AssociatedData GenerateComponentData(Entity entity, VideoComponent component)

Parameters

entity Entity

The entity.

component VideoComponent

Returns

VideoProcessor.AssociatedData

The associated data.

IsAssociatedDataValid(Entity, VideoComponent, AssociatedData)

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

protected override bool IsAssociatedDataValid(Entity entity, VideoComponent component, VideoProcessor.AssociatedData associatedData)

Parameters

entity Entity

The entity.

component VideoComponent
associatedData VideoProcessor.AssociatedData

The associated data.

Returns

bool

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

OnEntityComponentAdding(Entity, VideoComponent, AssociatedData)

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

protected override void OnEntityComponentAdding(Entity entity, VideoComponent component, VideoProcessor.AssociatedData data)

Parameters

entity Entity

The entity.

component VideoComponent
data VideoProcessor.AssociatedData

The associated data.

OnEntityComponentRemoved(Entity, VideoComponent, AssociatedData)

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

protected override void OnEntityComponentRemoved(Entity entity, VideoComponent component, VideoProcessor.AssociatedData data)

Parameters

entity Entity

The entity.

component VideoComponent
data VideoProcessor.AssociatedData

The associated data.

OnSystemAdd()

Run when this EntityProcessor is added to an EntityManager.

protected override void OnSystemAdd()