aboutsummaryrefslogtreecommitdiff
path: root/src/scene/node_impl.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-10-30 17:21:22 -0700
committer3gg <3gg@shellblade.net>2025-10-30 17:21:25 -0700
commit440b292c39162284a447b34d3a692143af9fbc87 (patch)
treeb5f0adf047651a56eb74ba7b92fdf6ebe2bbc635 /src/scene/node_impl.h
parent643382dfd364a193686201e1c82b6fe7f351f068 (diff)
- Replace SceneCamera with Camera.
- Remove backpointer from scene types to node to decouple underlying types from the scene graph.
Diffstat (limited to 'src/scene/node_impl.h')
-rw-r--r--src/scene/node_impl.h4
1 files changed, 1 insertions, 3 deletions
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 @@
4 4
5#include "types.h" 5#include "types.h"
6 6
7#include <math/camera.h>
7#include <math/mat4.h> 8#include <math/mat4.h>
8 9
9/// Scene node. 10/// Scene node.
@@ -12,9 +13,6 @@
12/// together form a strict tree hierarchy and not a more general DAG. 13/// together form a strict tree hierarchy and not a more general DAG.
13typedef struct SceneNode { 14typedef struct SceneNode {
14 NodeType type; 15 NodeType type;
15 // TODO: Inline the actual object here and get rid of the indirection and the
16 // extra pools? The "scene camera" is kind of a useless data structure, for
17 // example.
18 union { 16 union {
19 anima_idx anima; 17 anima_idx anima;
20 camera_idx camera; 18 camera_idx camera;