Class RenderFeature
Manages the mesh processor's collection.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class RenderFeature : DisposableObject
Constructors
RenderFeature(RenderManager)
Initializes a new instance of the RenderFeature class.
Declaration
public RenderFeature(RenderManager renderManager)
Parameters
Type | Name | Description |
---|---|---|
RenderManager | renderManager | The rendering manager. |
Fields
ActiveMeshProcessors
Active mesh processors.
Declaration
public MeshProcessor[] ActiveMeshProcessors
Field Value
Type | Description |
---|---|
MeshProcessor[] |
ActiveMeshProcessorsCount
Active mesh processor count.
Declaration
public int ActiveMeshProcessorsCount
Field Value
Type | Description |
---|---|
int |
RenderManager
The rendering manager.
Declaration
public readonly RenderManager RenderManager
Field Value
Type | Description |
---|---|
RenderManager |
RenderObjects
Gets the meshes processed by this rendering feature.
Declaration
public readonly RenderObjectSource RenderObjects
Field Value
Type | Description |
---|---|
RenderObjectSource |
Properties
FeatureTypes
Gets the array of feature types.
Declaration
public abstract Type[] FeatureTypes { get; }
Property Value
Type | Description |
---|---|
Type[] |
Methods
Add(RenderObjectInfo)
Processes a mesh.
Declaration
public virtual void Add(RenderObjectInfo objectInfo)
Parameters
Type | Name | Description |
---|---|---|
RenderObjectInfo | objectInfo | The object to process. |
Collect()
Gets the render object source to be rendered by the specified drawing context.
Declaration
public virtual void Collect()
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
FindMeshProcessor<T>()
Finds a mesh processor by its type.
Declaration
public T FindMeshProcessor<T>() where T : MeshProcessor
Returns
Type | Description |
---|---|
T | The mesh processor. |
Type Parameters
Name | Description |
---|---|
T | The mesh processor type. |
Initialize()
Initializes the render feature.
Declaration
public virtual void Initialize()
RegisterMeshProcessor(MeshProcessor)
Registers a mesh processor.
Declaration
public void RegisterMeshProcessor(MeshProcessor meshProcessor)
Parameters
Type | Name | Description |
---|---|---|
MeshProcessor | meshProcessor | The mesh processor. |
Remove(RenderObjectInfo)
Removes a mesh.
Declaration
public virtual void Remove(RenderObjectInfo objectInfo)
Parameters
Type | Name | Description |
---|---|---|
RenderObjectInfo | objectInfo | The object to process. |
Reset()
Resets this mesh processor.
Declaration
public virtual void Reset()
UnregisterMeshProcessor(MeshProcessor)
Unregisters a mesh processor.
Declaration
public void UnregisterMeshProcessor(MeshProcessor meshProcessor)
Parameters
Type | Name | Description |
---|---|---|
MeshProcessor | meshProcessor | The mesh processor. |