Search Results for

    Show / Hide Table of Contents

    Class RenderPipeline

    Allows to control how the scene is rendering.

    Inheritance
    object
    DisposableObject
    RenderPipeline
    DefaultRenderPipeline
    Implements
    IDisposable
    Inherited Members
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class RenderPipeline : DisposableObject, IDisposable

    Fields

    Clock

    Gets the clock service instance.

    Declaration
    public Clock Clock
    Field Value
    Type Description
    Clock

    PerSceneCBufferCollection

    Gets the Per Frame CBuffer collection of this scene.

    Declaration
    public CBufferCollectionUpdater PerSceneCBufferCollection
    Field Value
    Type Description
    CBufferCollectionUpdater

    Properties

    AdditionalEffectDirectives

    Gets the additional effects directives specified by this pipeline.

    Declaration
    public virtual List<string> AdditionalEffectDirectives { get; }
    Property Value
    Type Description
    List<string>

    DefaultRenderPath

    Gets the default render path.

    Declaration
    public abstract CameraRenderPath DefaultRenderPath { get; }
    Property Value
    Type Description
    CameraRenderPath

    RenderManager

    Gets the render manager.

    Declaration
    public RenderManager RenderManager { get; }
    Property Value
    Type Description
    RenderManager

    SupportedRenderPaths

    Gets the supported render path.

    Declaration
    public abstract IReadOnlyList<CameraRenderPath> SupportedRenderPaths { get; }
    Property Value
    Type Description
    IReadOnlyList<CameraRenderPath>

    Methods

    AddCamera(Camera)

    Add a camera.

    Declaration
    public abstract void AddCamera(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera.

    AddLight(Light)

    Add a light.

    Declaration
    public abstract void AddLight(Light light)
    Parameters
    Type Name Description
    Light light

    The light.

    AddRenderPath(CameraRenderPath)

    Add render path.

    Declaration
    public abstract void AddRenderPath(CameraRenderPath renderPath)
    Parameters
    Type Name Description
    CameraRenderPath renderPath

    The render path.

    BaseInitialize(RenderManager)

    Initialize this instance.

    Declaration
    public void BaseInitialize(RenderManager renderManager)
    Parameters
    Type Name Description
    RenderManager renderManager

    The render manager.

    Destroy()

    Destroy all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    DisposableObject.Destroy()

    FireOnCameraRender(DrawContext)

    Fire on camera render event.

    Declaration
    public void FireOnCameraRender(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The draw context.

    FireOnPostRender()

    Fire on post render event.

    Declaration
    protected void FireOnPostRender()

    FireOnPreRender()

    Fire on pre render event.

    Declaration
    protected void FireOnPreRender()

    Initialize()

    Initialize the Render Pipeline.

    Declaration
    protected abstract void Initialize()

    RemoveCamera(Camera)

    Remove a camera.

    Declaration
    public abstract void RemoveCamera(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    The camera.

    RemoveLight(Light)

    Remove a light.

    Declaration
    public abstract void RemoveLight(Light light)
    Parameters
    Type Name Description
    Light light

    The light.

    RemoveRenderPath(CameraRenderPath)

    Remove render path.

    Declaration
    public abstract bool RemoveRenderPath(CameraRenderPath renderPath)
    Parameters
    Type Name Description
    CameraRenderPath renderPath

    The render path.

    Returns
    Type Description
    bool

    True if has been removed successfully.

    Render(TimeSpan)

    Render this scene.

    Declaration
    public abstract void Render(TimeSpan gameTime)
    Parameters
    Type Name Description
    TimeSpan gameTime

    The game time.

    Events

    OnCameraRender

    Event fired when a camera is rendered

    Declaration
    public event EventHandler<DrawContext> OnCameraRender
    Event Type
    Type Description
    EventHandler<DrawContext>

    OnPostRender

    Event fired after the render finished

    Declaration
    public event EventHandler OnPostRender
    Event Type
    Type Description
    EventHandler

    OnPreRender

    Event fired before the render starts

    Declaration
    public event EventHandler OnPreRender
    Event Type
    Type Description
    EventHandler

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX