From 39a9f6736770dada44a5102a601f63ce6b05f608 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Sun, 14 May 2023 23:32:32 +0300 Subject: [PATCH] Add new commands. --- Quik/CommandQueue/Command.cs | 3 +++ Quik/CommandQueue/CommandQueue.cs | 17 ++++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Quik/CommandQueue/Command.cs b/Quik/CommandQueue/Command.cs index f85b200..c65f60c 100644 --- a/Quik/CommandQueue/Command.cs +++ b/Quik/CommandQueue/Command.cs @@ -22,13 +22,16 @@ namespace Quik.CommandQueue ConditionalEnd, PushViewport, + IntersectViewport, StoreViewport, PopViewport, + PushZ, IncrementZ, AddZ, StoreZ, DecrementZ, + PopZ, PushMatrix, StoreIdentityMatrix, diff --git a/Quik/CommandQueue/CommandQueue.cs b/Quik/CommandQueue/CommandQueue.cs index 862bd9c..843fd72 100644 --- a/Quik/CommandQueue/CommandQueue.cs +++ b/Quik/CommandQueue/CommandQueue.cs @@ -28,9 +28,14 @@ namespace Quik.CommandQueue Enqueue(Command.ConditionalEnd); } - public void PushViewport(in QuikRectangle viewport) + public void PushViewport() { Enqueue(Command.PushViewport); + } + + public void IntersectViewport(in QuikRectangle viewport) + { + Enqueue(Command.IntersectViewport); Enqueue(viewport); } @@ -45,6 +50,11 @@ namespace Quik.CommandQueue Enqueue(Command.PopViewport); } + public void PushZ() + { + Enqueue(Command.PushZ); + } + public void IncrementZ() { Enqueue(Command.IncrementZ); @@ -78,6 +88,11 @@ namespace Quik.CommandQueue Enqueue(Command.DecrementZ); } + public void PopZ() + { + Enqueue(Command.PopZ); + } + public void Line(in QuikLine line) { Enqueue(Command.Line);