Class BillboardMeshProcessor
Struct that represents a mesh to render.
Inherited Members
Namespace: Evergine.Framework.Graphics.Billboard
Assembly: Evergine.Framework.dll
Syntax
public class BillboardMeshProcessor : MeshProcessor
Constructors
BillboardMeshProcessor()
Initializes a new instance of the BillboardMeshProcessor class.
Declaration
public BillboardMeshProcessor()
Properties
Priority
Gets the priority of this processor. Processors with higher values will execute earlier.
Declaration
public override float Priority { get; }
Property Value
Type | Description |
---|---|
float |
Overrides
Methods
Collect()
Collects batches to be rendered.
Declaration
public override void Collect()
Overrides
CouldBatch(RenderObjectInfo, RenderObjectInfo)
Compares whether this processor can batch these two meshes.
Declaration
public override bool CouldBatch(RenderObjectInfo objectInfo1, RenderObjectInfo objectInfo2)
Parameters
Type | Name | Description |
---|---|---|
RenderObjectInfo | objectInfo1 | |
RenderObjectInfo | objectInfo2 |
Returns
Type | Description |
---|---|
bool | True if the batch is possible. |
Overrides
CouldRenderObject(RenderObjectInfo)
Can render a single render object.
Declaration
public override bool CouldRenderObject(RenderObjectInfo renderObjectInfo)
Parameters
Type | Name | Description |
---|---|---|
RenderObjectInfo | renderObjectInfo | The render object info. |
Returns
Type | Description |
---|---|
bool | True if this mesh processor can render an object. |
Overrides
CreateMaterial()
Creates Line Material.
Declaration
protected BillboardMaterial CreateMaterial()
Returns
Type | Description |
---|---|
BillboardMaterial | The material. |
Destroy()
Destroys the sprite mesh processor.
Declaration
protected override void Destroy()
Overrides
EmitBatch(int, int, DrawContext, RenderObjectInfoAccessor)
Emit a render batch.
Declaration
public override RenderUnit EmitBatch(int startIndex, int batchElementCount, DrawContext drawContext, MeshProcessor.RenderObjectInfoAccessor renderObjectInfoAccessor)
Parameters
Type | Name | Description |
---|---|---|
int | startIndex | Start mesh index. |
int | batchElementCount | |
DrawContext | drawContext | The draw context. |
MeshProcessor.RenderObjectInfoAccessor | renderObjectInfoAccessor | Function to obtain the renderObjectInfo by its index. |
Returns
Type | Description |
---|---|
RenderUnit | Id of this batch inside the mesh processor. |
Overrides
GetResourceSet(DrawContext, Texture, SamplerState)
Gets a resource set associated with the specified billboard info.
Declaration
public ResourceSet GetResourceSet(DrawContext drawContext, Texture billboardTexture, SamplerState billboardSampler)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
Texture | billboardTexture | The texture. |
SamplerState | billboardSampler | The sampler. |
Returns
Type | Description |
---|---|
ResourceSet | The resource set. |
Initialize()
Initializes this mesh processor.
Declaration
protected override void Initialize()
Overrides
Reset()
Resets processors to be ready for batch processing.
Declaration
public override void Reset()