From 5e55c91155c3a4bae810efcb9ef074bfc6076dbf Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Fri, 3 May 2024 00:18:52 -0400 Subject: [PATCH] display/text: Add layer support --- virtual-programs/display/text.folk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtual-programs/display/text.folk b/virtual-programs/display/text.folk index d2243b89..4ff3a8a8 100644 --- a/virtual-programs/display/text.folk +++ b/virtual-programs/display/text.folk @@ -208,6 +208,7 @@ On process "display" { set anchor [dict_getdef $options anchor "center"] set radians [dict_getdef $options radians 0] set color [getColor [dict_getdef $options color white]] + set layer [dict_getdef $options layer 0] if {$anchor == "topleft"} { set anchor [list 0 0] @@ -238,6 +239,6 @@ On process "display" { # We need to batch into one wish so we don't deal with n^2 # checks for existing statements for n glyphs. - Wish the GPU draws pipeline "glyph" with instances $instances + Wish the GPU draws pipeline "glyph" with instances $instances layer $layer } }