Add new commands.

This commit is contained in:
H. Utku Maden 2023-05-14 23:32:32 +03:00
parent 3de9de4e2d
commit 39a9f67367
2 changed files with 19 additions and 1 deletions

@ -22,13 +22,16 @@ namespace Quik.CommandQueue
ConditionalEnd,
PushViewport,
IntersectViewport,
StoreViewport,
PopViewport,
PushZ,
IncrementZ,
AddZ,
StoreZ,
DecrementZ,
PopZ,
PushMatrix,
StoreIdentityMatrix,

@ -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);