layer text rendering is working!

This commit is contained in:
2024-06-23 21:32:00 -04:00
parent 7d41fcc335
commit dee8fc7ef9
5 changed files with 68 additions and 43 deletions

View File

@ -165,7 +165,7 @@ ui_box_compute_layout :: proc( box : ^UI_Box,
{
content_size := content_bounds.max - content_bounds.min
text_pos : Vec2
text_pos = content_bounds.min + { 0, text_size.y }
text_pos = content_bounds.min + { 0, 0 }
text_pos += (content_size - text_size) * layout.text_alignment
computed.text_size = text_size