Gut raylib usage from the codebase.

Going to either fully commit to sokol or if it fails, rolling the platform layer myself.
This commit is contained in:
2024-05-25 11:52:23 -04:00
parent 13c3032dba
commit 797ab227e9
25 changed files with 571 additions and 1368 deletions

View File

@ -62,9 +62,9 @@ UI_LayoutSide :: struct {
UI_LayoutFlag :: enum u32 {
// Will perform scissor pass on children to their parent's bounds
// Will NOT perform scissor pass on children to their parent's bounds
// (Specified in the parent)
Clip_Children_To_Bounds,
Dont_Clip_Children_To_bounds,
// Enforces the box will always remain in a specific position relative to the parent.
// Overriding the anchors and margins.

View File

@ -86,6 +86,7 @@ UI_Parent_Stack_Size :: 512
// UI_Built_Boxes_Array_Size :: 8
UI_Built_Boxes_Array_Size :: 128 * Kilobyte
// TODO(Ed): Rename to UI_Context
UI_State :: struct {
// TODO(Ed) : Use these
// build_arenas : [2]Arena,

View File

@ -17,8 +17,8 @@ UI_StylePreset :: enum u32 {
}
UI_Style :: struct {
bg_color : Color,
border_color : Color,
bg_color : RGBA8,
border_color : RGBA8,
// TODO(Ed): We cannot support individual corners unless we add it to raylib (or finally change the rendering backend)
corner_radii : [Corner.Count]f32,
@ -33,7 +33,7 @@ UI_Style :: struct {
// shader : UI_Shader,
font : FontID,
text_color : Color,
text_color : RGBA8,
// TODO(Ed) : Support setting the cursor state
cursor : UI_Cursor,