Search Results for

    Show / Hide Table of Contents

    Class BaseRenderManager

    This class represents a manager that is updated every frame.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    SceneManager
    BaseRenderManager
    RenderManager
    Implements
    IDependencyObject
    Inherited Members
    SceneManager.Managers
    SceneManager.Scene
    SceneManager.OnLoaded()
    SceneManager.OnAttached()
    SceneManager.OnActivated()
    SceneManager.Start()
    SceneManager.OnDeactivated()
    SceneManager.OnDetach()
    SceneManager.OnDestroy()
    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 abstract class BaseRenderManager : SceneManager, IDependencyObject

    Constructors

    BaseRenderManager()

    Initializes a new instance of the BaseRenderManager class.

    Declaration
    public BaseRenderManager()

    Fields

    Cameras

    Collection of registered cameras.

    Declaration
    public List<Camera> Cameras
    Field Value
    Type Description
    List<Camera>

    Drawables

    Collection of drawables registered to draw.

    Declaration
    public List<Drawable> Drawables
    Field Value
    Type Description
    List<Drawable>

    Lights

    Collection of registered lights.

    Declaration
    public List<Light> Lights
    Field Value
    Type Description
    List<Light>

    RenderPipeline

    Gets or sets the RenderPipeline.

    Declaration
    public RenderPipeline RenderPipeline
    Field Value
    Type Description
    RenderPipeline

    Properties

    ActiveCamera3D

    Gets or sets the Active Camera3D. This is the main camera 3D of the scene. This instance is suitable to use in behaviors that deal with the camera.

    Declaration
    public virtual Camera3D ActiveCamera3D { get; set; }
    Property Value
    Type Description
    Camera3D

    Methods

    AddCamera(Camera)

    Add a camera.

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

    The camera.

    AddDrawable(Drawable)

    Adds a Drawable to this manager so it is rendered.

    Declaration
    public virtual void AddDrawable(Drawable drawable)
    Parameters
    Type Name Description
    Drawable drawable

    The drawable to render.

    Exceptions
    Type Condition
    ArgumentNullException

    If drawable is null.

    AddLight(Light)

    Add a light.

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

    The light.

    AddRenderObject(BaseROI, Drawable)

    Add a mesh to be rendered.

    Declaration
    public abstract 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.

    Draw(TimeSpan)

    Update this manager.

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

    The game time.

    FireOnAddCamera(Camera)

    Invoke OnAddCamera event.

    Declaration
    protected void FireOnAddCamera(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    Camera instance.

    FireOnAddDrawable(Drawable)

    Invoke OnAddDrawable event.

    Declaration
    protected void FireOnAddDrawable(Drawable drawable)
    Parameters
    Type Name Description
    Drawable drawable

    Drawable instance.

    FireOnAddLight(Light)

    Invoke OnAddLight event.

    Declaration
    protected void FireOnAddLight(Light light)
    Parameters
    Type Name Description
    Light light

    Light instance.

    FireOnPostRender()

    Invoke OnPostRender event.

    Declaration
    protected void FireOnPostRender()

    FireOnPreRender()

    Invoke OnPreRender event.

    Declaration
    protected void FireOnPreRender()

    FireOnRemoveCamera(Camera)

    Invoke OnRemoveCamera event.

    Declaration
    protected void FireOnRemoveCamera(Camera camera)
    Parameters
    Type Name Description
    Camera camera

    Camera instance.

    FireOnRemoveDrawable(Drawable)

    Invoke OnRemoveDrawable event.

    Declaration
    protected void FireOnRemoveDrawable(Drawable drawable)
    Parameters
    Type Name Description
    Drawable drawable

    Drawable instance.

    FireOnRemoveLight(Light)

    Invoke OnRemoveLight event.

    Declaration
    protected void FireOnRemoveLight(Light light)
    Parameters
    Type Name Description
    Light light

    Light instance.

    RemoveCamera(Camera)

    Remove a camera.

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

    The camera.

    RemoveDrawable(Drawable)

    Removes a Drawable from this manager so it is not rendered.

    Declaration
    public virtual void RemoveDrawable(Drawable drawable)
    Parameters
    Type Name Description
    Drawable drawable

    The drawable to remove.

    Exceptions
    Type Condition
    ArgumentNullException

    If drawable is null.

    RemoveLight(Light)

    Remove a light.

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

    The light.

    RemoveRenderObject(BaseROI)

    Remove a mesh to be rendered.

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

    The mesh to render.

    Events

    OnAddCamera

    Event fired when a camera is registered

    Declaration
    public event EventHandler<Camera> OnAddCamera
    Event Type
    Type Description
    EventHandler<Camera>

    OnAddDrawable

    Event fired when a drawable is registered

    Declaration
    public event EventHandler<Drawable> OnAddDrawable
    Event Type
    Type Description
    EventHandler<Drawable>

    OnAddLight

    Event fired when a light is registered

    Declaration
    public event EventHandler<Light> OnAddLight
    Event Type
    Type Description
    EventHandler<Light>

    OnPostRender

    OnPostRender is called after the manager finished rendering the scene.

    Declaration
    public event EventHandler OnPostRender
    Event Type
    Type Description
    EventHandler

    OnPreRender

    OnPreRender is called before the manager starts rendering the scene.

    Declaration
    public event EventHandler OnPreRender
    Event Type
    Type Description
    EventHandler

    OnRemoveCamera

    Event fired when a camera is removed

    Declaration
    public event EventHandler<Camera> OnRemoveCamera
    Event Type
    Type Description
    EventHandler<Camera>

    OnRemoveDrawable

    Event fired when a drawable is removed

    Declaration
    public event EventHandler<Drawable> OnRemoveDrawable
    Event Type
    Type Description
    EventHandler<Drawable>

    OnRemoveLight

    Event fired when a light is removed

    Declaration
    public event EventHandler<Light> OnRemoveLight
    Event Type
    Type Description
    EventHandler<Light>

    Implements

    IDependencyObject

    Extension Methods

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