Search Results for

    Show / Hide Table of Contents

    Class MeshRenderer

    Renders a mesh on the screen.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    Drawable
    Drawable3D
    MeshRenderer
    Implements
    IDependencyObject
    Inherited Members
    Drawable3D.RenderFlags
    Drawable3D.CastShadows
    Drawable3D.DrawDebugLines()
    Drawable.RenderManager
    Drawable.Transform
    Drawable.IsCullingEnabled
    Drawable.BoundingBox
    Drawable.DebugBoundingbox
    Drawable.OrderBias
    Drawable.BaseDraw(DrawContext)
    Drawable.UpdatePreWorldMatrix()
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.Start()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Components.Graphics3D
    Assembly: Evergine.Framework.dll
    Syntax
    public class MeshRenderer : Drawable3D, IDependencyObject

    Fields

    Materials

    Materials used for rendering the MeshComponent.

    Declaration
    [BindComponent(true, true, BindComponentSource.Owner, null, true)]
    public List<MaterialComponent> Materials
    Field Value
    Type Description
    List<MaterialComponent>

    MeshComponent

    Renders the MeshComponent.

    Declaration
    [BindComponent(false, true, BindComponentSource.Owner, null, true)]
    public MeshComponent MeshComponent
    Field Value
    Type Description
    MeshComponent

    renderMeshes

    The rendered meshes.

    Declaration
    protected RenderMeshInfo[] renderMeshes
    Field Value
    Type Description
    RenderMeshInfo[]

    Methods

    DestroyMeshes()

    Destroys the current meshes array.

    Declaration
    protected void DestroyMeshes()

    Draw(DrawContext)

    Draws the model.

    Declaration
    public override void Draw(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The drawing context.

    Overrides
    Drawable.Draw(DrawContext)

    OnActivated()

    Invoked when the object is activated once it is attached.

    Declaration
    protected override void OnActivated()
    Overrides
    Component.OnActivated()

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    Drawable.OnAttached()

    OnDeactivated()

    Invoked when the object is deactivated.

    Declaration
    protected override void OnDeactivated()
    Overrides
    Component.OnDeactivated()

    OnDetach()

    Invoked when the object is detached.

    Declaration
    protected override void OnDetach()
    Overrides
    Drawable.OnDetach()

    RefreshMaterial(MaterialComponent)

    Refreshes the material.

    Declaration
    protected void RefreshMaterial(MaterialComponent materialComponent)
    Parameters
    Type Name Description
    MaterialComponent materialComponent

    Material component instance.

    RefreshMeshes()

    Generates a new RenderMeshInfo collection.

    Declaration
    protected virtual void RefreshMeshes()

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX