Class RenderManager
Inheritance
Implements
Inherited Members
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 |
|
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
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
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
OnDestroy()
Invoked when the object is about to be disposed.
Declaration
protected override void OnDestroy()
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
Overrides
OnLoaded()
Invoked when the object is loaded.
Declaration
protected override void OnLoaded()
Overrides
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
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. |