mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-02 20:18:12 +00:00
eliminate state delta history experiment codef
This commit is contained in:
@@ -2571,11 +2571,7 @@ df_window_update_and_render(Arena *arena, DF_Window *ws, D_CmdList *cmds)
|
||||
{
|
||||
if(ui_clicked(df_icon_buttonf(DF_IconKind_Trash, 0, "Remove Color###color_toggle")))
|
||||
{
|
||||
D_StateDeltaHistoryBatch(d_state_delta_history())
|
||||
{
|
||||
d_state_delta_history_push_struct_delta(d_state_delta_history(), &entity->flags, .guard_entity = entity);
|
||||
entity->flags &= ~D_EntityFlag_HasColor;
|
||||
}
|
||||
entity->flags &= ~D_EntityFlag_HasColor;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2583,10 +2579,7 @@ df_window_update_and_render(Arena *arena, DF_Window *ws, D_CmdList *cmds)
|
||||
}
|
||||
if(!entity_has_color && ui_clicked(df_icon_buttonf(DF_IconKind_Palette, 0, "Apply Color###color_toggle")))
|
||||
{
|
||||
D_StateDeltaHistoryBatch(d_state_delta_history())
|
||||
{
|
||||
d_entity_equip_color_rgba(entity, v4f32(1, 1, 1, 1));
|
||||
}
|
||||
d_entity_equip_color_rgba(entity, v4f32(1, 1, 1, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7821,14 +7814,13 @@ df_request_frame(void)
|
||||
#endif
|
||||
|
||||
internal void
|
||||
df_init(D_StateDeltaHistory *hist)
|
||||
df_init(void)
|
||||
{
|
||||
ProfBeginFunction();
|
||||
Arena *arena = arena_alloc();
|
||||
df_state = push_array(arena, DF_State, 1);
|
||||
df_state->arena = arena;
|
||||
df_state->num_frames_requested = 2;
|
||||
df_state->hist = hist;
|
||||
df_state->key_map_arena = arena_alloc();
|
||||
df_state->confirm_arena = arena_alloc();
|
||||
df_state->view_spec_table_size = 256;
|
||||
|
||||
@@ -626,9 +626,6 @@ struct DF_State
|
||||
// rjf: frame request state
|
||||
U64 num_frames_requested;
|
||||
|
||||
// rjf: history cache
|
||||
D_StateDeltaHistory *hist;
|
||||
|
||||
// rjf: key map table
|
||||
Arena *key_map_arena;
|
||||
U64 key_map_table_size;
|
||||
@@ -966,7 +963,7 @@ internal void df_request_frame(void);
|
||||
////////////////////////////////
|
||||
//~ rjf: Main Layer Top-Level Calls
|
||||
|
||||
internal void df_init(D_StateDeltaHistory *hist);
|
||||
internal void df_init(void);
|
||||
internal void df_frame(void);
|
||||
|
||||
#endif // DBG_FRONTEND_CORE_H
|
||||
|
||||
Reference in New Issue
Block a user