Add Color record struct, small refactor, create a DaggerFramework.SceneGraph namespace.

This commit is contained in:
2023-06-16 00:03:45 +02:00
parent 964b903500
commit 7d5c5f822b
25 changed files with 217 additions and 111 deletions

View File

@@ -0,0 +1,18 @@
using DaggerFramework.Rendering;
namespace DaggerFramework.SceneGraph
{
public class CircleShape2d : Drawable2d
{
public float Radius { get => _radius; set => _radius = value; }
public Color Color { get => _color; set => _color = value; }
public override void OnDraw(Renderer renderer)
{
renderer.DrawCircle(_radius, _color);
}
private float _radius;
private Color _color;
}
}