Search Results for

    Show / Hide Table of Contents

    Class RenderMeshInfo

    Struct that represent a mesh to render.

    Inheritance
    object
    DisposableObject
    RenderObjectInfo
    RenderMeshInfo
    Implements
    IDisposable
    Inherited Members
    RenderObjectInfo.boundingBox
    RenderObjectInfo.CullingType
    RenderObjectInfo.Drawable
    RenderObjectInfo.isBoundingBoxDirty
    RenderObjectInfo.isSortKeyDirty
    RenderObjectInfo.IsEnabled
    RenderObjectInfo.Tag
    RenderObjectInfo.RenderFlags
    RenderObjectInfo.IsCullingEnabled
    RenderObjectInfo.FlipWinding
    RenderObjectInfo.IsSortKeyDirty
    RenderObjectInfo.SortKey
    RenderObjectInfo.Transform
    RenderObjectInfo.BoundingBox
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    RenderObjectInfo.DrawableType

    InputLayoutID

    Gets the InputLayout ID.

    Declaration
    public override uint InputLayoutID { get; }
    Property Value
    Type Description
    uint
    Overrides
    RenderObjectInfo.InputLayoutID

    InputLayouts

    Gets the input layout.

    Declaration
    public override InputLayouts InputLayouts { get; }
    Property Value
    Type Description
    InputLayouts
    Overrides
    RenderObjectInfo.InputLayouts

    IsActive

    Gets a value indicating whether this object is activated.

    Declaration
    public override bool IsActive { get; }
    Property Value
    Type Description
    bool
    Overrides
    RenderObjectInfo.IsActive

    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
    RenderObjectInfo.IsReady

    Material

    Gets the material.

    Declaration
    public override Material Material { get; }
    Property Value
    Type Description
    Material
    Overrides
    RenderObjectInfo.Material

    MaterialID

    Gets the material ID.

    Declaration
    public override uint MaterialID { get; }
    Property Value
    Type Description
    uint
    Overrides
    RenderObjectInfo.MaterialID

    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
    RenderObjectInfo.OrderBias

    PrimitiveTopology

    Gets the primitive topology.

    Declaration
    public override PrimitiveTopology PrimitiveTopology { get; }
    Property Value
    Type Description
    PrimitiveTopology
    Overrides
    RenderObjectInfo.PrimitiveTopology

    RenderStateOrder

    Gets the order of the Render State.

    Declaration
    public override int RenderStateOrder { get; }
    Property Value
    Type Description
    int
    Overrides
    RenderObjectInfo.RenderStateOrder

    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
    RenderObjectInfo.SortMode

    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
    RenderObjectInfo.Collect(DrawContext)

    Destroy()

    Destroy all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    DisposableObject.Destroy()

    MakeDirty()

    Inticates that this object info is dirty.

    Declaration
    public override void MakeDirty()
    Overrides
    RenderObjectInfo.MakeDirty()

    RefreshBoundingBox()

    Refresh the bounding box.

    Declaration
    protected override void RefreshBoundingBox()
    Overrides
    RenderObjectInfo.RefreshBoundingBox()

    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.

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX