Init.
This commit is contained in:
20
Source/Entities/CircleShape2d.cs
Executable file
20
Source/Entities/CircleShape2d.cs
Executable file
@@ -0,0 +1,20 @@
|
||||
using System.Drawing;
|
||||
|
||||
using DaggerFramework.Rendering;
|
||||
|
||||
namespace DaggerFramework
|
||||
{
|
||||
public class CircleShape2d : Drawable2d
|
||||
{
|
||||
public float Radius { get => _radius; set => _radius = value; }
|
||||
public Color Color { get => _color; set => _color = value; }
|
||||
|
||||
public override void OnDraw(ref Renderer renderer)
|
||||
{
|
||||
renderer.DrawCircle(_radius, _color);
|
||||
}
|
||||
|
||||
private float _radius;
|
||||
private System.Drawing.Color _color;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user