Skip to content

Commit

Permalink
display/text: Add layer support
Browse files Browse the repository at this point in the history
  • Loading branch information
osnr committed May 3, 2024
1 parent 60ce6b4 commit 5e55c91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtual-programs/display/text.folk
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
}
}

0 comments on commit 5e55c91

Please sign in to comment.