summaryrefslogtreecommitdiff
path: root/src/transform_hierarchy.c
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-17 15:07:45 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-03-17 15:07:45 +1100
commit31359e468c4f1d844f19862f63ed911b66b98068 (patch)
tree9e930d00b69525d5bba86b547dadc4c8ea7ac45c /src/transform_hierarchy.c
parentc97327fcdcbe8b85d7718cfb722e1525986a8514 (diff)
print desu?
Diffstat (limited to 'src/transform_hierarchy.c')
-rw-r--r--src/transform_hierarchy.c16
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