Mostly cleanup

Text is athe biggest bottleneck right now. Raylib as a renderer fails for this prototype in that front.

I'll eventually need to look into other solutions such as SDL2 + something that renders UI boxes & text very fast...
This commit is contained in:
2024-05-13 21:53:08 -04:00
parent adc75f6977
commit 12c99bee26
16 changed files with 940 additions and 183 deletions

View File

@ -88,7 +88,7 @@ UI_Layout :: struct {
alignment : Vec2,
text_alignment : Vec2,
font_size : f32,
font_size : UI_Scalar,
margins : UI_LayoutSide,
padding : UI_LayoutSide,
@ -104,8 +104,6 @@ UI_Layout :: struct {
// (We can union either varient and just know based on checking if its the screenspace UI)
// If the box is a child of the root parent, its automatically in world space and thus will use the tile_pos.
// tile_pos : WS_Pos,
transition_time : f32,
}
UI_LayoutCombo :: struct #raw_union {