18 lines
596 B
C#
18 lines
596 B
C#
using System.Drawing;
|
|
using System.Numerics;
|
|
using Dashboard.Layout;
|
|
using Dashboard.Pal;
|
|
|
|
namespace Dashboard.Drawing
|
|
{
|
|
public record struct RectangleDrawInfo(Vector2 Position, ComputedBox Box, Brush Fill, Brush? Border = null);
|
|
|
|
public interface IImmediateMode : IDeviceContextExtension
|
|
{
|
|
void Line(Vector2 a, Vector2 b, float width, float depth, Vector4 color);
|
|
void Rectangle(Box2d rectangle, float depth, Vector4 color);
|
|
void Rectangle(in RectangleDrawInfo rectangle);
|
|
void Image(Box2d rectangle, Box2d uv, float depth, ITexture texture);
|
|
}
|
|
}
|