Class RenderMeshInfo
Struct that represent a mesh to render.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class RenderMeshInfo : RenderObjectInfo, IDisposable
Constructors
RenderMeshInfo(Mesh, Material)
Initializes a new instance of the RenderMeshInfo class.
Declaration
public RenderMeshInfo(Mesh mesh, Material material)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh. |
Material | material | The material. |
RenderMeshInfo(Mesh, Material, Matrix4x4?)
Initializes a new instance of the RenderMeshInfo class.
Declaration
public RenderMeshInfo(Mesh mesh, Material material, Matrix4x4? rootInverseBindPose)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh. |
Material | material | The material. |
Matrix4x4? | rootInverseBindPose | The root inverse matrix pose. |
Fields
IsPipelineCacheDirty
Indicates the pipeline cache is dirty.
Declaration
protected bool IsPipelineCacheDirty
Field Value
Type | Description |
---|---|
bool |
MaterialResources
Gets dictionary with drawContextId as key and Pipelines by pass as value.
Declaration
public readonly Dictionary<int, MaterialResourcesCacheEntry> MaterialResources
Field Value
Type | Description |
---|---|
Dictionary<int, MaterialResourcesCacheEntry> |
Properties
DrawableType
Gets the drawable type.
Declaration
public override DrawableType DrawableType { get; }
Property Value
Type | Description |
---|---|
DrawableType |
Overrides
InputLayoutID
Gets the InputLayout ID.
Declaration
public override uint InputLayoutID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
InputLayouts
Gets the input layout.
Declaration
public override InputLayouts InputLayouts { get; }
Property Value
Type | Description |
---|---|
InputLayouts |
Overrides
IsActive
Gets a value indicating whether this object is activated.
Declaration
public override bool IsActive { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
IsReady
Gets a value indicating whether this instance is ready to be rendered.
Declaration
public override bool IsReady { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
Material
Gets the material.
Declaration
public override Material Material { get; }
Property Value
Type | Description |
---|---|
Material |
Overrides
MaterialID
Gets the material ID.
Declaration
public override uint MaterialID { get; }
Property Value
Type | Description |
---|---|
uint |
Overrides
Mesh
Gets the associated mesh.
Declaration
public Mesh Mesh { get; }
Property Value
Type | Description |
---|---|
Mesh |
MeshOrderBias
Gets or sets the Mesh order bias.
Declaration
public int MeshOrderBias { get; set; }
Property Value
Type | Description |
---|---|
int |
OrderBias
Gets the order bias.
Declaration
public override int OrderBias { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
PrimitiveTopology
Gets the primitive topology.
Declaration
public override PrimitiveTopology PrimitiveTopology { get; }
Property Value
Type | Description |
---|---|
PrimitiveTopology |
Overrides
RenderStateOrder
Gets the order of the Render State.
Declaration
public override int RenderStateOrder { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
RootInverseBindPose
Gets or sets the root inverse bind pose.
Declaration
public Matrix4x4? RootInverseBindPose { get; set; }
Property Value
Type | Description |
---|---|
Matrix4x4? |
SortMode
Gets the Sorting mode.
Declaration
public override SortMode SortMode { get; }
Property Value
Type | Description |
---|---|
SortMode |
Overrides
Methods
Collect(DrawContext)
Prepare this object with the specified draw context.
Declaration
public override void Collect(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
Overrides
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
MakeDirty()
Inticates that this object info is dirty.
Declaration
public override void MakeDirty()
Overrides
RefreshBoundingBox()
Refresh the bounding box.
Declaration
protected override void RefreshBoundingBox()
Overrides
SetMaterial(Material)
Sets the material.
Declaration
public void SetMaterial(Material material)
Parameters
Type | Name | Description |
---|---|---|
Material | material | The material. |
SetMesh(Mesh)
Sets the mesh.
Declaration
public void SetMesh(Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh | The mesh. |