diff --git a/Dashboard.BlurgText/BlurgCommand.cs b/Dashboard.BlurgText/BlurgCommand.cs index 1797074..314b9f5 100644 --- a/Dashboard.BlurgText/BlurgCommand.cs +++ b/Dashboard.BlurgText/BlurgCommand.cs @@ -1,11 +1,11 @@ using BlurgText; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; namespace Dashboard.BlurgText { public static class BlurgCommand { - public static void PutBlurgText(this CommandList list, DashboardBlurg blurg, BlurgResult result, QVec2 origin) + public static void PutBlurgText(this DrawList list, DashboardBlurg blurg, BlurgResult result, QVec2 origin) { for (int i = 0; i < result.Count; i++) { diff --git a/Dashboard.OpenTK/OpenTKPlatform.cs b/Dashboard.OpenTK/OpenTKPlatform.cs index 2ac16dc..a025732 100644 --- a/Dashboard.OpenTK/OpenTKPlatform.cs +++ b/Dashboard.OpenTK/OpenTKPlatform.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using OpenTK.Windowing.Desktop; using OpenTK.Windowing.GraphicsLibraryFramework; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Media; using Dashboard.OpenGL; using Dashboard.PAL; @@ -86,7 +86,7 @@ namespace Dashboard.OpenTK public void PortShow(IDashHandle port, bool shown = true) => ((OpenTKPort)port).Show(shown); - public void PortPaint(IDashHandle port, CommandList commands) => ((OpenTKPort)port).Paint(commands); + public void PortPaint(IDashHandle port, DrawList commands) => ((OpenTKPort)port).Paint(commands); public void GetMaximumImage(out int width, out int height) { diff --git a/Dashboard.OpenTK/OpenTKPort.cs b/Dashboard.OpenTK/OpenTKPort.cs index 58fc91e..82b7994 100644 --- a/Dashboard.OpenTK/OpenTKPort.cs +++ b/Dashboard.OpenTK/OpenTKPort.cs @@ -2,7 +2,7 @@ using System; using OpenTK.Mathematics; using OpenTK.Windowing.Desktop; using Dashboard.OpenGL; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.PAL; using Dashboard.VertexGenerator; @@ -65,7 +65,7 @@ namespace Dashboard.OpenTK _window.Focus(); } - public void Paint(CommandList queue) + public void Paint(DrawList queue) { QRectangle view = new QRectangle(Size, new QVec2(0, 0)); diff --git a/Dashboard/Controls/Control.cs b/Dashboard/Controls/Control.cs index a3586a7..ba8df72 100644 --- a/Dashboard/Controls/Control.cs +++ b/Dashboard/Controls/Control.cs @@ -1,12 +1,12 @@ using System; using System.Collections.Generic; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; namespace Dashboard.Controls { public abstract class Control : UIBase { - private readonly CommandList drawCommands = new CommandList(); + private readonly DrawList drawCommands = new DrawList(); public Style Style { get; set; } = new Style(); public float Padding @@ -43,10 +43,10 @@ namespace Dashboard.Controls InvalidateLayout(); } - protected abstract void ValidateVisual(CommandList cmd); + protected abstract void ValidateVisual(DrawList cmd); protected abstract void ValidateLayout(); - protected override void PaintBegin(CommandList cmd) + protected override void PaintBegin(DrawList cmd) { base.PaintBegin(cmd); diff --git a/Dashboard/Controls/FlowBox.cs b/Dashboard/Controls/FlowBox.cs index 6647292..e3887a3 100644 --- a/Dashboard/Controls/FlowBox.cs +++ b/Dashboard/Controls/FlowBox.cs @@ -2,7 +2,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Linq; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; namespace Dashboard.Controls { @@ -19,7 +19,7 @@ namespace Dashboard.Controls ValidateChildrenLayout(); } - protected override void ValidateVisual(CommandList cmd) + protected override void ValidateVisual(DrawList cmd) { throw new NotImplementedException(); } diff --git a/Dashboard/Controls/Label.cs b/Dashboard/Controls/Label.cs index 7f42aad..31d647f 100644 --- a/Dashboard/Controls/Label.cs +++ b/Dashboard/Controls/Label.cs @@ -1,4 +1,4 @@ -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Media; using Dashboard.Typography; @@ -20,7 +20,7 @@ namespace Dashboard.Controls } } - protected override void ValidateVisual(CommandList cmd) + protected override void ValidateVisual(DrawList cmd) { float padding = Padding; QVec2 origin = new QVec2(padding, padding); diff --git a/Dashboard/Controls/UIBase.cs b/Dashboard/Controls/UIBase.cs index 7de73f4..e93bd9f 100644 --- a/Dashboard/Controls/UIBase.cs +++ b/Dashboard/Controls/UIBase.cs @@ -1,6 +1,6 @@ using System; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; namespace Dashboard.Controls { @@ -62,19 +62,19 @@ namespace Dashboard.Controls { } - protected virtual void PaintBegin(CommandList cmd) + protected virtual void PaintBegin(DrawList cmd) { cmd.PushViewport(); cmd.StoreViewport(AbsoluteBounds); cmd.PushZ(); } - protected virtual void PaintEnd(CommandList cmd) + protected virtual void PaintEnd(DrawList cmd) { cmd.PopViewport(); } - public void Paint(CommandList cmd) + public void Paint(DrawList cmd) { PaintBegin(cmd); PaintEnd(cmd); diff --git a/Dashboard/DbApplication.cs b/Dashboard/DbApplication.cs index f25324c..ef3e052 100644 --- a/Dashboard/DbApplication.cs +++ b/Dashboard/DbApplication.cs @@ -1,7 +1,7 @@ using System; using System.Collections.Generic; using System.Threading; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Controls; using Dashboard.Media; using Dashboard.PAL; @@ -86,7 +86,7 @@ namespace Dashboard return disposable; } - private CommandList cmd = new CommandList(); + private DrawList cmd = new DrawList(); public void Run(View mainView, bool yield = true) { diff --git a/Dashboard/CommandMachine/Command.cs b/Dashboard/ImmediateDraw/Command.cs similarity index 97% rename from Dashboard/CommandMachine/Command.cs rename to Dashboard/ImmediateDraw/Command.cs index c8bb8d9..2e4cb69 100644 --- a/Dashboard/CommandMachine/Command.cs +++ b/Dashboard/ImmediateDraw/Command.cs @@ -1,4 +1,4 @@ -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { /// /// Enumeration of built-in Quik commands. diff --git a/Dashboard/CommandMachine/CommandHandler.cs b/Dashboard/ImmediateDraw/CommandHandler.cs similarity index 55% rename from Dashboard/CommandMachine/CommandHandler.cs rename to Dashboard/ImmediateDraw/CommandHandler.cs index 52f89b0..2f496a0 100644 --- a/Dashboard/CommandMachine/CommandHandler.cs +++ b/Dashboard/ImmediateDraw/CommandHandler.cs @@ -1,8 +1,8 @@ -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { /// /// A delegate for a Dashboard engine command. /// /// The current stack. - public delegate void CommandHandler(CommandEngine state, CommandQueue queue); + public delegate void CommandHandler(DrawingEngine state, DrawQueue queue); } \ No newline at end of file diff --git a/Dashboard/CommandMachine/CommandEngine.cs b/Dashboard/ImmediateDraw/DrawEngine.cs similarity index 85% rename from Dashboard/CommandMachine/CommandEngine.cs rename to Dashboard/ImmediateDraw/DrawEngine.cs index 09095eb..c0c9e1f 100644 --- a/Dashboard/CommandMachine/CommandEngine.cs +++ b/Dashboard/ImmediateDraw/DrawEngine.cs @@ -1,9 +1,9 @@ using System; using System.Collections.Generic; -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { - public class CommandEngine + public class DrawingEngine { private int _zIndex = 0; private readonly Stack _zStack = new Stack(); @@ -22,7 +22,7 @@ namespace Dashboard.CommandMachine public StyleStack Style { get; } = new StyleStack(new Style()); - protected CommandEngine() + protected DrawingEngine() { Reset(); } @@ -34,9 +34,9 @@ namespace Dashboard.CommandMachine return id; } - public void ProcessCommands(QRectangle bounds, CommandList queue) + public void ProcessCommands(QRectangle bounds, DrawList queue) { - CommandQueue iterator = queue.GetEnumerator(); + DrawQueue iterator = queue.GetEnumerator(); if (!iterator.Peek().IsCommand) throw new ArgumentException("The first element in the iterator must be a command frame."); @@ -113,7 +113,7 @@ namespace Dashboard.CommandMachine } } - protected virtual void ChildProcessCommand(Command name, CommandQueue queue) + protected virtual void ChildProcessCommand(Command name, DrawQueue queue) { } @@ -129,7 +129,7 @@ namespace Dashboard.CommandMachine _matrixStack.Push(QMat4.Identity); } - private void ConditionalHandler(CommandQueue iterator) + private void ConditionalHandler(DrawQueue iterator) { Frame frame = iterator.Dequeue(); @@ -171,7 +171,7 @@ namespace Dashboard.CommandMachine } } - private static readonly Dictionary s_serializers = new Dictionary(); + private static readonly Dictionary s_serializers = new Dictionary(); /// /// Add a custom serializer to the command engine. @@ -179,7 +179,7 @@ namespace Dashboard.CommandMachine /// Type object type. /// The serializer. /// True to allow overwriting. - public static void AddSerializer(ICommandListSerializer serializer, bool overwrite = false) + public static void AddSerializer(IDrawListSerializer serializer, bool overwrite = false) { if (overwrite) { @@ -197,8 +197,8 @@ namespace Dashboard.CommandMachine /// Type object type. /// The serializer. /// True to allow overwriting. - public static void AddSerializer(ICommandListSerializer serializer, bool overwrite = false) - => AddSerializer((ICommandListSerializer)serializer, overwrite); + public static void AddSerializer(IDrawListSerializer serializer, bool overwrite = false) + => AddSerializer((IDrawListSerializer)serializer, overwrite); /// /// Get a serializer for the given object. @@ -206,16 +206,16 @@ namespace Dashboard.CommandMachine /// The object type. /// Required parameter for the C# type inference to work. /// The serializer. - public static ICommandListSerializer GetSerializer(ICommandListSerializable? value) - where T : ICommandListSerializable, new() + public static IDrawListSerializer GetSerializer(IDrawListSerializable? value) + where T : IDrawListSerializable, new() { if (!s_serializers.TryGetValue(typeof(T), out var serializer)) { - serializer = new CommandListSerializableSerializer(); + serializer = new DrawListSerializableSerializer(); AddSerializer(serializer); } - return (ICommandListSerializer)serializer; + return (IDrawListSerializer)serializer; } /// @@ -224,9 +224,9 @@ namespace Dashboard.CommandMachine /// The object type. /// Required parameter for the C# type inference to work. /// The serializer. - public static ICommandListSerializer GetSerializer(T? value) + public static IDrawListSerializer GetSerializer(T? value) { - return (ICommandListSerializer)s_serializers[typeof(T)]; + return (IDrawListSerializer)s_serializers[typeof(T)]; } } } \ No newline at end of file diff --git a/Dashboard/CommandMachine/CommandList.cs b/Dashboard/ImmediateDraw/DrawList.cs similarity index 93% rename from Dashboard/CommandMachine/CommandList.cs rename to Dashboard/ImmediateDraw/DrawList.cs index a96c76a..ca041b3 100644 --- a/Dashboard/CommandMachine/CommandList.cs +++ b/Dashboard/ImmediateDraw/DrawList.cs @@ -4,9 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { - public class CommandList : IEnumerable + public class DrawList : IEnumerable { private readonly List _frames = new List(); @@ -307,7 +307,7 @@ namespace Dashboard.CommandMachine } } - public void Splice(CommandList list) + public void Splice(DrawList list) { foreach (Frame frame in list) { @@ -322,7 +322,7 @@ namespace Dashboard.CommandMachine /// What to write into the command list. public void Write(T value) { - CommandEngine.GetSerializer(value).Serialize(value, this); + DrawingEngine.GetSerializer(value).Serialize(value, this); } /// @@ -330,18 +330,18 @@ namespace Dashboard.CommandMachine /// /// The type of the value to serialize. /// What to write into the command list. - public void Write(ICommandListSerializable value) - where T : ICommandListSerializable, new() + public void Write(IDrawListSerializable value) + where T : IDrawListSerializable, new() { - CommandEngine.GetSerializer(value).Serialize((T)value, this); + DrawingEngine.GetSerializer(value).Serialize((T)value, this); } - public CommandQueue GetEnumerator() => new CommandQueue(_frames); + public DrawQueue GetEnumerator() => new DrawQueue(_frames); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); } - public class CommandQueue : IEnumerator + public class DrawQueue : IEnumerator { private readonly IReadOnlyList _frames; private int _current; @@ -350,7 +350,7 @@ namespace Dashboard.CommandMachine object IEnumerator.Current => Current; - public CommandQueue(IReadOnlyList frames) + public DrawQueue(IReadOnlyList frames) { _current = -1; _frames = frames; @@ -399,7 +399,7 @@ namespace Dashboard.CommandMachine /// The deserialized value. public void Read([NotNull] out T? value) { - value = CommandEngine.GetSerializer(default(T)).Deserialize(this); + value = DrawingEngine.GetSerializer(default(T)).Deserialize(this); } /// @@ -407,10 +407,10 @@ namespace Dashboard.CommandMachine /// /// Type of the object to deserialize. /// The deserialized value. - public void Read([NotNull] out ICommandListSerializable? value) - where T : ICommandListSerializable, new() + public void Read([NotNull] out IDrawListSerializable? value) + where T : IDrawListSerializable, new() { - value = CommandEngine.GetSerializer(value = null).Deserialize(this); + value = DrawingEngine.GetSerializer(value = null).Deserialize(this); } /// diff --git a/Dashboard/CommandMachine/Frame.cs b/Dashboard/ImmediateDraw/Frame.cs similarity index 99% rename from Dashboard/CommandMachine/Frame.cs rename to Dashboard/ImmediateDraw/Frame.cs index c84562e..6a41ce7 100644 --- a/Dashboard/CommandMachine/Frame.cs +++ b/Dashboard/ImmediateDraw/Frame.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.InteropServices; -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { [StructLayout(LayoutKind.Explicit)] public struct Frame diff --git a/Dashboard/CommandMachine/FrameType.cs b/Dashboard/ImmediateDraw/FrameType.cs similarity index 97% rename from Dashboard/CommandMachine/FrameType.cs rename to Dashboard/ImmediateDraw/FrameType.cs index fd93131..ddb4757 100644 --- a/Dashboard/CommandMachine/FrameType.cs +++ b/Dashboard/ImmediateDraw/FrameType.cs @@ -1,4 +1,4 @@ -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { /// /// Enumeration of command types in the Dashboard command lists. diff --git a/Dashboard/CommandMachine/Image.cs b/Dashboard/ImmediateDraw/Image.cs similarity index 88% rename from Dashboard/CommandMachine/Image.cs rename to Dashboard/ImmediateDraw/Image.cs index 9e42b61..8d07269 100644 --- a/Dashboard/CommandMachine/Image.cs +++ b/Dashboard/ImmediateDraw/Image.cs @@ -1,4 +1,4 @@ -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { public enum ImageCommandFlags { diff --git a/Dashboard/CommandMachine/Serializers.cs b/Dashboard/ImmediateDraw/Serializers.cs similarity index 62% rename from Dashboard/CommandMachine/Serializers.cs rename to Dashboard/ImmediateDraw/Serializers.cs index 4b4e9ec..de6c7d5 100644 --- a/Dashboard/CommandMachine/Serializers.cs +++ b/Dashboard/ImmediateDraw/Serializers.cs @@ -1,42 +1,41 @@ using System.Diagnostics.CodeAnalysis; -using System.Threading; -namespace Dashboard.CommandMachine +namespace Dashboard.ImmediateDraw { - public interface ICommandListSerializable { } + public interface IDrawListSerializable { } /// /// Interface for objects that can be serialized into the Dashboard command stream. /// - public interface ICommandListSerializable : ICommandListSerializable + public interface IDrawListSerializable : IDrawListSerializable { /// /// Seralize object. /// /// The object to serialize into. - void Serialize(CommandList list); + void Serialize(DrawList list); /// /// Deserialize object. /// /// The command queue to deserialize from. - void Deserialize(CommandQueue queue); + void Deserialize(DrawQueue queue); } /// /// Base interface for all Command List serializers. /// - public interface ICommandListSerializer { } + public interface IDrawListSerializer { } - public interface ICommandListSerializer : ICommandListSerializer + public interface IDrawListSerializer : IDrawListSerializer { /// /// Serialize an object into the command list. /// /// The object to serialize. /// The command list to serialize into. - void Serialize(T value, CommandList list); + void Serialize(T value, DrawList list); /// /// Deserialize an object from the command queue. @@ -44,24 +43,24 @@ namespace Dashboard.CommandMachine /// The command queue. /// The object deserialized from the command queue. [return: NotNull] - T Deserialize(CommandQueue queue); + T Deserialize(DrawQueue queue); } /// - /// Class for automatic serialization of objects. + /// Class for automatic serialization of objects. /// /// The object type to convert. - internal class CommandListSerializableSerializer : ICommandListSerializer - where T : ICommandListSerializable, new() + internal class DrawListSerializableSerializer : IDrawListSerializer + where T : IDrawListSerializable, new() { - public T Deserialize(CommandQueue queue) + public T Deserialize(DrawQueue queue) { T value = new T(); value.Deserialize(queue); return value; } - public void Serialize(T value, CommandList list) + public void Serialize(T value, DrawList list) { value.Serialize(list); } diff --git a/Dashboard/PAL/Dash.cs b/Dashboard/PAL/Dash.cs index 0c947de..2db30e9 100644 --- a/Dashboard/PAL/Dash.cs +++ b/Dashboard/PAL/Dash.cs @@ -1,4 +1,4 @@ -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Controls; using System; using System.Collections.Generic; @@ -70,12 +70,12 @@ namespace Dashboard.PAL platform.PortFocus(handle); } - public void Paint(CommandList? list = null) + public void Paint(DrawList? list = null) { if (UIElement == null) return; - list ??= new CommandList(); + list ??= new DrawList(); list.Clear(); UIElement.Bounds = new QRectangle(Size, new QVec2(0,0)); diff --git a/Dashboard/PAL/IDashboardPlatform.cs b/Dashboard/PAL/IDashboardPlatform.cs index acb3f51..116f7d9 100644 --- a/Dashboard/PAL/IDashboardPlatform.cs +++ b/Dashboard/PAL/IDashboardPlatform.cs @@ -1,5 +1,5 @@ using System; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Media; namespace Dashboard.PAL @@ -54,7 +54,7 @@ namespace Dashboard.PAL void PortUnsubscribeEvent(IDashHandle port, EventHandler handler); void PortFocus(IDashHandle port); void PortShow(IDashHandle port, bool shown = true); - void PortPaint(IDashHandle port, CommandList commands); + void PortPaint(IDashHandle port, DrawList commands); void GetMaximumImage(out int width, out int height); void GetMaximumImage(out int width, out int height, out int depth); } diff --git a/Dashboard/Typography/Typesetter.cs b/Dashboard/Typography/Typesetter.cs index 7286298..b271ecb 100644 --- a/Dashboard/Typography/Typesetter.cs +++ b/Dashboard/Typography/Typesetter.cs @@ -1,4 +1,4 @@ -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Media; using System; using System.Collections.Generic; @@ -102,7 +102,7 @@ namespace Dashboard.Typography return new QVec2(width, height); } - public static void TypesetHorizontalDirect(this CommandList list, ReadOnlySpan str, QVec2 origin, float size, QFont font) + public static void TypesetHorizontalDirect(this DrawList list, ReadOnlySpan str, QVec2 origin, float size, QFont font) { Dictionary drawInfo = new Dictionary(); var enumerator = new LineEnumerator(str); diff --git a/Dashboard/VertexGenerator/VertexCommandEngine.cs b/Dashboard/VertexGenerator/VertexCommandEngine.cs index b81836f..be20443 100644 --- a/Dashboard/VertexGenerator/VertexCommandEngine.cs +++ b/Dashboard/VertexGenerator/VertexCommandEngine.cs @@ -1,12 +1,12 @@ using System; using System.Collections.Generic; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Media; using Dashboard.Typography; namespace Dashboard.VertexGenerator { - public class VertexGeneratorEngine : CommandEngine + public class VertexGeneratorEngine : DrawingEngine { public DrawQueue DrawQueue { get; } = new DrawQueue(); @@ -41,7 +41,7 @@ namespace Dashboard.VertexGenerator DrawQueue.Clear(); } - protected override void ChildProcessCommand(Command name, CommandQueue queue) + protected override void ChildProcessCommand(Command name, ImmediateDraw.DrawQueue queue) { base.ChildProcessCommand(name, queue); @@ -67,7 +67,7 @@ namespace Dashboard.VertexGenerator } private readonly List LineList = new List(); - private void LineProc(CommandQueue queue) + private void LineProc(ImmediateDraw.DrawQueue queue) { Frame frame = queue.Dequeue(); @@ -292,7 +292,7 @@ namespace Dashboard.VertexGenerator } private readonly List BezierList = new List(); - private void BezierProc(CommandQueue queue) + private void BezierProc(ImmediateDraw.DrawQueue queue) { Frame a = queue.Dequeue(); Frame b; @@ -409,7 +409,7 @@ namespace Dashboard.VertexGenerator } private readonly List RectangleList = new List(); - private void RectangleProc(CommandQueue queue) + private void RectangleProc(ImmediateDraw.DrawQueue queue) { Frame frame = queue.Dequeue(); RectangleList.Clear(); @@ -1012,7 +1012,7 @@ namespace Dashboard.VertexGenerator DrawQueue.AddElement(s1); DrawQueue.AddElement(s2); DrawQueue.AddElement(4); } - private void ImageProc(CommandQueue queue) + private void ImageProc(ImmediateDraw.DrawQueue queue) { Frame frame = queue.Dequeue(); ImageCommandFlags flags = (ImageCommandFlags)frame.I1; @@ -1029,7 +1029,7 @@ namespace Dashboard.VertexGenerator } } - private void Image2d(CommandQueue queue, QImage image, int count, bool uv) + private void Image2d(ImmediateDraw.DrawQueue queue, QImage image, int count, bool uv) { DrawQueue.StartDrawCall(Viewport, image); @@ -1073,7 +1073,7 @@ namespace Dashboard.VertexGenerator DrawQueue.EndDrawCall(); } - private void Image3d(CommandQueue queue, QImage image, int count) + private void Image3d(ImmediateDraw.DrawQueue queue, QImage image, int count) { DrawQueue.StartDrawCall(Viewport, image); diff --git a/tests/Dashboard.Demo/Program.cs b/tests/Dashboard.Demo/Program.cs index 64332a7..46fbf39 100644 --- a/tests/Dashboard.Demo/Program.cs +++ b/tests/Dashboard.Demo/Program.cs @@ -1,5 +1,5 @@ using Dashboard; -using Dashboard.CommandMachine; +using Dashboard.ImmediateDraw; using Dashboard.Controls; using Dashboard.OpenTK; using Dashboard.Media.Defaults; @@ -27,7 +27,7 @@ namespace Dashboard.Demo BlurgResult? result; // private readonly Label Label = new Label() { Text = "Hello world!", Position = new QVec2(300, 300) }; - protected override void PaintBegin(CommandList cmd) + protected override void PaintBegin(DrawList cmd) { base.PaintBegin(cmd);