Class LineMeshRenderer2D
Renders a line mesh on the screen.
Inheritance
LineMeshRenderer2D
Implements
Inherited Members
Namespace: Evergine.Components.Graphics2D
Assembly: Evergine.Components.dll
Syntax
[DataContract(Namespace = "Evergine.Components.Graphics2D")]
public class LineMeshRenderer2D : Drawable2D, IDependencyObject
Fields
lineMesh
LineMeshBase to render.
Declaration
[BindComponent(false, true, BindComponentSource.Owner, null, true)]
protected LineMeshBase lineMesh
Field Value
Type | Description |
---|---|
LineMeshBase |
Properties
Layer
Gets or sets the type of the layer.
Declaration
public override RenderLayerDescription Layer { get; set; }
Property Value
Type | Description |
---|---|
RenderLayerDescription | The type of the layer. |
Overrides
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
Remarks
This method will only be called if all the following points are true:
DrawDebugLines()
Helper method that draws debug lines.
Declaration
protected override void DrawDebugLines()
Overrides
Remarks
This method will only work on debug mode and if RenderManager.DebugLines />
is set to true
.
OnActivated()
Invoked when the object is activated once is attached.
Declaration
protected override void OnActivated()
Overrides
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
OnDeactivated()
Invoked when the object is deactivated.
Declaration
protected override void OnDeactivated()
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()