Class Drawable2D
Represents a 2D drawable Component.
Inheritance
Drawable2D
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class Drawable2D : Drawable, IDependencyObject
Constructors
Drawable2D()
Initializes a new instance of the Drawable2D class.
Declaration
public Drawable2D()
Fields
DebugAlpha
The debug alpha value.
Declaration
protected const float DebugAlpha = 0.2
Field Value
Type | Description |
---|---|
float |
Delta
The minimum alpha value.
Declaration
protected const float Delta = 0.001
Field Value
Type | Description |
---|---|
float |
Transform2D
Required Transform2D. The associated transform 2D.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
public Transform2D Transform2D
Field Value
Type | Description |
---|---|
Transform2D |
Properties
Layer
Gets or sets the type of the layer.
Declaration
public virtual RenderLayerDescription Layer { get; set; }
Property Value
Type | Description |
---|---|
RenderLayerDescription | The type of the layer. |
Methods
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
.