mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-18 18:12:23 -07:00
on second thought... merging both view rule expansion *header* info generation, and windowed range queries into an expanded block, into the same hook, is really limiting & wrong - so split back to two hooks, one stage is just informing the expansion space, the next provides per-row information within an expanded block with range-based queries
This commit is contained in:
@@ -569,6 +569,22 @@ ctrl_entity_list_from_handle_list(Arena *arena, CTRL_EntityStore *store, CTRL_Ha
|
||||
return result;
|
||||
}
|
||||
|
||||
//- rjf: entity array data structure
|
||||
|
||||
internal CTRL_EntityArray
|
||||
ctrl_entity_array_from_list(Arena *arena, CTRL_EntityList *list)
|
||||
{
|
||||
CTRL_EntityArray result = {0};
|
||||
result.count = list->count;
|
||||
result.v = push_array_no_zero(arena, CTRL_Entity *, result.count);
|
||||
U64 idx = 0;
|
||||
for(CTRL_EntityNode *n = list->first; n != 0; n = n->next, idx += 1)
|
||||
{
|
||||
result.v[idx] = n->v;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
//- rjf: cache creation/destruction
|
||||
|
||||
internal CTRL_EntityStore *
|
||||
|
||||
Reference in New Issue
Block a user