Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    BackgroundRenderProcessor Class

    Namespace: Stride.Rendering.Background
    Assembly: Stride.Engine.dll

    A default entity processor for BackgroundComponent.

    System.Object → EntityProcessor → EntityProcessor<BackgroundComponent, RenderBackground> → BackgroundRenderProcessor
    Derived from BackgroundRenderProcessor:

    public class BackgroundRenderProcessor : EntityProcessor<BackgroundComponent, RenderBackground>, IEntityComponentRenderProcessor
    Name Description
    Properties
    ActiveBackground

    Gets the active background.

    VisibilityGroup
    Methods
    Draw(RenderContext)

    Performs work related to this processor.

    GenerateComponentData(Entity, BackgroundComponent)

    Generates associated data to the given entity.

    IsAssociatedDataValid(Entity, BackgroundComponent, RenderBackground)

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

    OnSystemRemove()

    Run when this EntityProcessor is removed from an EntityManager.

    | Improve this Doc View Source

    Properties


    ActiveBackground

    Gets the active background.

    public RenderBackground ActiveBackground { get; }
    Property Value
    Type Description
    RenderBackground

    The active background.


    VisibilityGroup

    public VisibilityGroup VisibilityGroup { get; set; }
    Property Value
    Type Description
    VisibilityGroup
    | Improve this Doc View Source

    Methods


    Draw(RenderContext)

    Performs work related to this processor.

    public override void Draw(RenderContext context)
    Parameters
    Type Name Description
    RenderContext context
    Overrides
    EntityProcessor.Draw(RenderContext)

    GenerateComponentData(Entity, BackgroundComponent)

    Generates associated data to the given entity.

    protected override RenderBackground GenerateComponentData(Entity entity, BackgroundComponent component)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    BackgroundComponent component
    Returns
    Type Description
    RenderBackground

    The associated data.

    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.BackgroundComponent, Stride.Rendering.Background.RenderBackground>.GenerateComponentData(Stride.Engine.Entity, Stride.Engine.BackgroundComponent)

    IsAssociatedDataValid(Entity, BackgroundComponent, RenderBackground)

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

    protected override bool IsAssociatedDataValid(Entity entity, BackgroundComponent component, RenderBackground associatedData)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    BackgroundComponent component
    RenderBackground associatedData
    Returns
    Type Description
    System.Boolean

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

    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.BackgroundComponent, Stride.Rendering.Background.RenderBackground>.IsAssociatedDataValid(Stride.Engine.Entity, Stride.Engine.BackgroundComponent, Stride.Rendering.Background.RenderBackground)

    OnSystemRemove()

    Run when this EntityProcessor is removed from an EntityManager.

    protected override void OnSystemRemove()
    Overrides
    Stride.Engine.EntityProcessor<Stride.Engine.BackgroundComponent, Stride.Rendering.Background.RenderBackground>.OnSystemRemove()

    Inherited Members

    EntityProcessor<BackgroundComponent, RenderBackground>.ComponentDatas
    EntityProcessor<BackgroundComponent, RenderBackground>.OnSystemAdd()
    EntityProcessor<BackgroundComponent, RenderBackground>.OnSystemRemove()
    EntityProcessor<BackgroundComponent, RenderBackground>.RemoveAllEntities()
    EntityProcessor<BackgroundComponent, RenderBackground>.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor<BackgroundComponent, RenderBackground>.GenerateComponentData(Entity, BackgroundComponent)
    EntityProcessor<BackgroundComponent, RenderBackground>.IsAssociatedDataValid(Entity, BackgroundComponent, RenderBackground)
    EntityProcessor<BackgroundComponent, RenderBackground>.OnEntityComponentAdding(Entity, BackgroundComponent, RenderBackground)
    EntityProcessor<BackgroundComponent, RenderBackground>.OnEntityComponentRemoved(Entity, BackgroundComponent, RenderBackground)
    EntityProcessor.Tags
    EntityProcessor.UpdateProfilingState
    EntityProcessor.DrawProfilingState
    EntityProcessor.Enabled
    EntityProcessor.MainComponentType
    EntityProcessor.RequiredTypes
    EntityProcessor.HasRequiredComponents
    EntityProcessor.Order
    EntityProcessor.EntityManager
    EntityProcessor.Services
    EntityProcessor.Update(GameTime)
    EntityProcessor.OnSystemAdd()
    EntityProcessor.RemoveAllEntities()
    EntityProcessor.ProcessEntityComponent(Entity, EntityComponent, Boolean)
    EntityProcessor.InternalAddEntity(Entity)
    EntityProcessor.InternalRemoveEntity(Entity, Boolean)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation