config settings, for top-level toggles or simple numeric parameters; use to mask off animations, background blurs, and so on; use to control tab width

This commit is contained in:
Ryan Fleury
2024-06-25 09:09:10 -07:00
parent 7a185f9560
commit c10ac170a8
11 changed files with 258 additions and 45 deletions
-15
View File
@@ -248,21 +248,6 @@ df_expand_tree_table_init(Arena *arena, DF_ExpandTreeTable *table, U64 slot_coun
table->slots = push_array(arena, DF_ExpandSlot, table->slots_count);
}
internal void
df_expand_tree_table_animate(DF_ExpandTreeTable *table, F32 dt)
{
F32 rate = 1 - pow_f32(2, (-50.f * dt));
for(U64 slot_idx = 0; slot_idx < table->slots_count; slot_idx += 1)
{
for(DF_ExpandNode *node = table->slots[slot_idx].first;
node != 0;
node = node->hash_next)
{
node->expanded_t += (((F32)!!node->expanded) - node->expanded_t) * rate;
}
}
}
internal DF_ExpandNode *
df_expand_node_from_key(DF_ExpandTreeTable *table, DF_ExpandKey key)
{
-1
View File
@@ -1363,7 +1363,6 @@ internal B32 df_expand_key_match(DF_ExpandKey a, DF_ExpandKey b);
//- rjf: table
internal void df_expand_tree_table_init(Arena *arena, DF_ExpandTreeTable *table, U64 slot_count);
internal void df_expand_tree_table_animate(DF_ExpandTreeTable *table, F32 dt);
internal DF_ExpandNode *df_expand_node_from_key(DF_ExpandTreeTable *table, DF_ExpandKey key);
internal B32 df_expand_key_is_set(DF_ExpandTreeTable *table, DF_ExpandKey key);
internal void df_expand_set_expansion(Arena *arena, DF_ExpandTreeTable *table, DF_ExpandKey parent_key, DF_ExpandKey key, B32 expanded);