Search Results for

    Show / Hide Table of Contents

    Class RenderManager

    Holds all the Behavior instances present in a Scene and updates them.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    SceneManager
    BaseRenderManager
    RenderManager
    Implements
    IDependencyObject
    Inherited Members
    BaseRenderManager.OnPreRender
    BaseRenderManager.OnPostRender
    BaseRenderManager.OnAddCamera
    BaseRenderManager.OnRemoveCamera
    BaseRenderManager.OnAddLight
    BaseRenderManager.OnRemoveLight
    BaseRenderManager.OnAddDrawable
    BaseRenderManager.OnRemoveDrawable
    BaseRenderManager.RenderPipeline
    BaseRenderManager.Drawables
    BaseRenderManager.Cameras
    BaseRenderManager.Lights
    BaseRenderManager.ActiveCamera3D
    BaseRenderManager.AddDrawable(Drawable)
    BaseRenderManager.RemoveDrawable(Drawable)
    BaseRenderManager.AddCamera(Camera)
    BaseRenderManager.RemoveCamera(Camera)
    BaseRenderManager.AddLight(Light)
    BaseRenderManager.RemoveLight(Light)
    BaseRenderManager.FireOnPreRender()
    BaseRenderManager.FireOnPostRender()
    BaseRenderManager.FireOnAddDrawable(Drawable)
    BaseRenderManager.FireOnRemoveDrawable(Drawable)
    BaseRenderManager.FireOnAddCamera(Camera)
    BaseRenderManager.FireOnRemoveCamera(Camera)
    BaseRenderManager.FireOnAddLight(Light)
    BaseRenderManager.FireOnRemoveLight(Light)
    SceneManager.Managers
    SceneManager.Scene
    SceneManager.OnActivated()
    SceneManager.Start()
    SceneManager.OnDeactivated()
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.ShouldBeActivated
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Framework.Managers
    Assembly: Evergine.Framework.dll
    Syntax
    public class RenderManager : BaseRenderManager, IDependencyObject

    Constructors

    RenderManager()

    Initializes a new instance of the RenderManager class.

    Declaration
    public RenderManager()

    Fields

    GraphicsContext

    The graphics context.

    Declaration
    [BindService(true)]
    public GraphicsContext GraphicsContext
    Field Value
    Type Description
    GraphicsContext

    GraphicsPresenter

    The graphics presenter.

    Declaration
    [BindService(true)]
    public GraphicsPresenter GraphicsPresenter
    Field Value
    Type Description
    GraphicsPresenter

    RenderFeatures

    The RenderFeature list.

    Declaration
    public List<RenderFeature> RenderFeatures
    Field Value
    Type Description
    List<RenderFeature>

    Properties

    CullingSystem

    Gets or sets the culling system used by the Render System. A camera can specify the culling system that it will use.

    Declaration
    public CullingSystem CullingSystem { get; set; }
    Property Value
    Type Description
    CullingSystem

    CurrentDrawingCamera3D

    Gets the current Camera3D that is used in the Draw cycle. This property is suitable for use in Drawable 2D components.

    Declaration
    public Camera3D CurrentDrawingCamera3D { get; }
    Property Value
    Type Description
    Camera3D

    DebugLines

    Gets or sets a value indicating whether debug lines are rendered.

    Declaration
    public bool DebugLines { get; set; }
    Property Value
    Type Description
    bool

    true if debug lines are rendered; otherwise, false.

    LineBatch3D

    Gets the render manager's line batch for 3D.

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

    RegisteredCameras

    Gets the registered cameras.

    Declaration
    public IEnumerable<Camera> RegisteredCameras { get; }
    Property Value
    Type Description
    IEnumerable<Camera>

    RenderObjectResourcesCache

    Gets the rendered object resources cache.

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

    SortingMesh

    Gets or sets the mesh sorting method.

    Declaration
    public SortingMesh SortingMesh { get; set; }
    Property Value
    Type Description
    SortingMesh

    Methods

    AddRenderObject(BaseROI, Drawable)

    Add a mesh to be rendered.

    Declaration
    public override void AddRenderObject(BaseROI objectInfo, Drawable drawable = null)
    Parameters
    Type Name Description
    BaseROI objectInfo

    The mesh to render.

    Drawable drawable

    The drawable of the render object info.

    Overrides
    BaseRenderManager.AddRenderObject(BaseROI, Drawable)

    CreateRenderPipeline()

    Creates the rendering pipeline of the RenderManager.

    Declaration
    protected virtual RenderPipeline CreateRenderPipeline()
    Returns
    Type Description
    RenderPipeline

    The rendering pipeline.

    Draw(TimeSpan)

    Update this manager.

    Declaration
    public override void Draw(TimeSpan gameTime)
    Parameters
    Type Name Description
    TimeSpan gameTime

    The game time.

    Overrides
    BaseRenderManager.Draw(TimeSpan)

    FindFeatureByObjectType(RenderObjectInfo)

    Gets a render feature that is responsible for processing the render object.

    Declaration
    public RenderFeature FindFeatureByObjectType(RenderObjectInfo renderObjectInfo)
    Parameters
    Type Name Description
    RenderObjectInfo renderObjectInfo

    The object type.

    Returns
    Type Description
    RenderFeature

    The render feature.

    FindRenderFeature(Type)

    Finds a mesh processor by its type.

    Declaration
    public RenderFeature FindRenderFeature(Type renderFeatureType)
    Parameters
    Type Name Description
    Type renderFeatureType

    The mesh processor type.

    Returns
    Type Description
    RenderFeature

    The render feature.

    FindRenderFeature<T>()

    Finds a mesh processor by its type.

    Declaration
    public T FindRenderFeature<T>() where T : RenderFeature
    Returns
    Type Description
    T

    The mesh processor.

    Type Parameters
    Name Description
    T

    The mesh processor type.

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    SceneManager.OnAttached()

    OnDestroy()

    Invoked when the object is about to be disposed.

    Declaration
    protected override void OnDestroy()
    Overrides
    SceneManager.OnDestroy()

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    SceneManager.OnDetach()

    OnLoaded()

    Invoked when the object is loaded.

    Declaration
    protected override void OnLoaded()
    Overrides
    SceneManager.OnLoaded()

    RegisterRenderFeature(RenderFeature)

    Registers a render feature.

    Declaration
    public void RegisterRenderFeature(RenderFeature renderFeature)
    Parameters
    Type Name Description
    RenderFeature renderFeature

    The render feature.

    RemoveRenderObject(BaseROI)

    Remove a mesh to be rendered.

    Declaration
    public override void RemoveRenderObject(BaseROI objectInfo)
    Parameters
    Type Name Description
    BaseROI objectInfo

    The mesh to render.

    Overrides
    BaseRenderManager.RemoveRenderObject(BaseROI)

    TryGetDisplay(Camera, out Display)

    Gets a display ID by its tag.

    Declaration
    public virtual bool TryGetDisplay(Camera camera, out Display display)
    Parameters
    Type Name Description
    Camera camera

    The display tag.

    Display display

    The display.

    Returns
    Type Description
    bool

    True if the graphic presenter contains a display with the display tag. False otherwise.

    TryGetDisplay(string, out Display)

    Gets a display ID by its tag.

    Declaration
    public virtual bool TryGetDisplay(string displayTag, out Display display)
    Parameters
    Type Name Description
    string displayTag

    The display tag.

    Display display

    The display.

    Returns
    Type Description
    bool

    True if the graphic presenter contains a display with the display tag; false otherwise.

    UnregisterRenderFeature(RenderFeature)

    Unregisters a render feature.

    Declaration
    public void UnregisterRenderFeature(RenderFeature renderFeature)
    Parameters
    Type Name Description
    RenderFeature renderFeature

    The render feature.

    UnregisterRenderFeature(Type)

    Unregisters a render feature.

    Declaration
    public void UnregisterRenderFeature(Type renderFeatureType)
    Parameters
    Type Name Description
    Type renderFeatureType

    The render feature type.

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX