From 440b292c39162284a447b34d3a692143af9fbc87 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 30 Oct 2025 17:21:22 -0700 Subject: - Replace SceneCamera with Camera. - Remove backpointer from scene types to node to decouple underlying types from the scene graph. --- src/scene/node_impl.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/scene/node_impl.h') diff --git a/src/scene/node_impl.h b/src/scene/node_impl.h index fb88bd5..15ee232 100644 --- a/src/scene/node_impl.h +++ b/src/scene/node_impl.h @@ -4,6 +4,7 @@ #include "types.h" +#include #include /// Scene node. @@ -12,9 +13,6 @@ /// together form a strict tree hierarchy and not a more general DAG. typedef struct SceneNode { NodeType type; - // TODO: Inline the actual object here and get rid of the indirection and the - // extra pools? The "scene camera" is kind of a useless data structure, for - // example. union { anima_idx anima; camera_idx camera; -- cgit v1.2.3