diff options
| author | Omar Rizwan <omar@omar.website> | 2024-05-03 04:18:52 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2024-05-03 04:18:52 +0000 |
| commit | 5e55c91155c3a4bae810efcb9ef074bfc6076dbf (patch) | |
| tree | 27bfcca125dde1048fb9034acc3dd88538683ee4 /virtual-programs | |
| parent | Gpu,display: More hack laptop fixes so virtual programs work (diff) | |
| download | folk-5e55c91155c3a4bae810efcb9ef074bfc6076dbf.tar.gz folk-5e55c91155c3a4bae810efcb9ef074bfc6076dbf.zip | |
display/text: Add layer support
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/display/text.folk | 3 |
1 files changed, 2 insertions, 1 deletions
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 } } |
