Files
RemSox/RemSox.Kernel/UI/GUI/UIEelements/Shapes/Pixel.cs
T

22 lines
553 B
C#

using RemSox.Shared.UI.GUI.Rendering;
namespace RemSox.Kernel.UI.GUI.UIEelements.Shapes;
public class Pixel() : Shape("Pixel")
{
public override IEnumerable<RenderCommand> ToPrimitives(int windowId)
{
yield return new RenderCommand
{
WindowId = windowId,
ElementId = PrimitiveId(0),
Type = RenderCommandType.DrawPoint,
Position = Position,
Properties = new Dictionary<string, object?>
{
["Color"] = Color,
}
};
}
}