ModelRenderProcessor Class
Namespace: Stride.RenderingAssembly: Stride.Engine.dll
public class ModelRenderProcessor : EntityProcessor<ModelComponent, RenderModel>, IEntityComponentRenderProcessor
| Name | Description | |
|---|---|---|
| Constructors | ||
| ModelRenderProcessor() | ||
| Properties | ||
| RenderModels | ||
| VisibilityGroup | ||
| Methods | ||
| Draw(RenderContext) | Performs work related to this processor. |
|
| GenerateComponentData(Entity, ModelComponent) | Generates associated data to the given entity. |
|
| IsAssociatedDataValid(Entity, ModelComponent, RenderModel) | Checks if the current associated data is valid, or if readding the entity is required. |
|
| OnEntityComponentRemoved(Entity, ModelComponent, RenderModel) | Run when a matching entity is removed from this entity processor. |
|
| OnSystemAdd() | Run when this EntityProcessor is added to an EntityManager. |
|
Constructors
ModelRenderProcessor()
public ModelRenderProcessor()
Properties
RenderModels
public Dictionary<ModelComponent, RenderModel> RenderModels { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<ModelComponent, RenderModel> |
VisibilityGroup
public VisibilityGroup VisibilityGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| VisibilityGroup |
Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderContext | context |
Overrides
GenerateComponentData(Entity, ModelComponent)
Generates associated data to the given entity.
protected override RenderModel GenerateComponentData(Entity entity, ModelComponent component)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| ModelComponent | component |
Returns
| Type | Description |
|---|---|
| RenderModel | The associated data. |
Overrides
IsAssociatedDataValid(Entity, ModelComponent, RenderModel)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, ModelComponent component, RenderModel associatedData)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| ModelComponent | component | |
| RenderModel | associatedData |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the change in associated data requires the entity to be readded, false otherwise. |
Overrides
OnEntityComponentRemoved(Entity, ModelComponent, RenderModel)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, ModelComponent component, RenderModel renderModel)
Parameters
| Type | Name | Description |
|---|---|---|
| Entity | entity | The entity. |
| ModelComponent | component | |
| RenderModel | renderModel |
Overrides
OnSystemAdd()
Run when this EntityProcessor is added to an EntityManager.
protected override void OnSystemAdd()