Class LineMeshRenderer3D
Renders a line mesh on the screen.
Inheritance
DependencyObject
AttachableObject
PrefabInstanceObject
Component
Drawable
Drawable3D
LineMeshRenderer3D
Implements
Inherited Members
Drawable3D.RenderFlags
Drawable3D.CastShadows
Drawable.RenderManager
Drawable.IsCullingEnabled
Drawable.BoundingBox
Drawable.DebugBoundingbox
Drawable.OrderBias
Drawable.BaseDraw(DrawContext)
Component.Owner
Component.Managers
Component.ShouldBeActivated
Component.Clone()
Component.Attach(Entity)
Component.OnLoaded()
Component.Start()
Component.OnDestroy()
PrefabInstanceObject.PrefabSource
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
Namespace: Evergine.Components.Graphics3D
Assembly: Evergine.Components.dll
Syntax
public class LineMeshRenderer3D : Drawable3D, IDependencyObject
Constructors
LineMeshRenderer3D()
Initializes a new instance of the LineMeshRenderer3D class.
Declaration
public LineMeshRenderer3D()
Fields
lineMesh
LineMeshBase to render.
Declaration
[BindComponent(false, true, BindComponentSource.Owner, null, true)]
protected LineMeshBase lineMesh
Field Value
Type | Description |
---|---|
LineMeshBase |
transform
The Evergine.Framework.Graphics.Transform3D.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected Transform3D transform
Field Value
Type | Description |
---|---|
Transform3D |
Properties
Layer
Gets or sets the type of the layer.
Declaration
public RenderLayerDescription Layer { get; set; }
Property Value
Type | Description |
---|---|
RenderLayerDescription | The type of the layer. |
Methods
Draw(DrawContext)
Allows to perform custom drawing.
Declaration
public override void Draw(DrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
Overrides
Evergine.Framework.Drawable.Draw(Evergine.Framework.Graphics.DrawContext)
Remarks
This method will only be called if all the following points are true:
- The entity passes the culling test.
- The parent of the owner Evergine.Framework.Entity of the Evergine.Framework.Drawable cascades its visibility to its children and it is visible.
- The Evergine.Framework.Drawable is active.
- The owner Evergine.Framework.Entity of the Evergine.Framework.Drawable is active and visible.
DrawDebugLines()
Helper method that draws debug lines showing the bounding of this instance.
Declaration
protected override void DrawDebugLines()
Overrides
Evergine.Framework.Graphics.Drawable3D.DrawDebugLines()
Remarks
This method will only work on debug mode and if Evergine.Framework.Managers.RenderManager.DebugLines
is set to true
.
OnActivated()
Invoked when the object is activated once is attached.
Declaration
protected override void OnActivated()
Overrides
Evergine.Framework.Component.OnActivated()
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
Type | Description |
---|---|
bool | True if all is OK. |
Overrides
Evergine.Framework.Drawable.OnAttached()
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()
Overrides
Evergine.Framework.Component.OnDeactivated()
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
Overrides
Evergine.Framework.Drawable.OnDetach()