diff options
author | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-17 15:07:45 +1100 |
---|---|---|
committer | Omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-03-17 15:07:45 +1100 |
commit | 31359e468c4f1d844f19862f63ed911b66b98068 (patch) | |
tree | 9e930d00b69525d5bba86b547dadc4c8ea7ac45c /src/transform_hierarchy.c | |
parent | c97327fcdcbe8b85d7718cfb722e1525986a8514 (diff) |
print desu?
Diffstat (limited to 'src/transform_hierarchy.c')
-rw-r--r-- | src/transform_hierarchy.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/transform_hierarchy.c b/src/transform_hierarchy.c index 468be56..65d4edf 100644 --- a/src/transform_hierarchy.c +++ b/src/transform_hierarchy.c @@ -11,6 +11,7 @@ #include "maths.h" #include "maths_types.h" #include "render_types.h" +#include "core.h" struct transform_hierarchy { transform_node root; @@ -144,4 +145,19 @@ bool update_matrix(transform_node* node, void* _ctx_data) { void transform_hierarchy_propagate_transforms(transform_hierarchy* tfh) { // kickoff traversal transform_hierarchy_dfs(&tfh->root, update_matrix, false, NULL); +} + +void print_node(transform_node* node, void* _ctx_data) { + // Grab the model + model m = core->models->data[start_node->model.raw]; + printf("Node %s\n", m.name.buf); +} + +struct print_ctx { + core* core; + u32 indentation_lvl; +}; + +void transform_hierarchy_debug_print(transform_node* start_node, core* core) { + }
\ No newline at end of file |