summaryrefslogtreecommitdiff
path: root/src/3d/scene_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/3d/scene_loader.h')
-rw-r--r--src/3d/scene_loader.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/3d/scene_loader.h b/src/3d/scene_loader.h
new file mode 100644
index 0000000..15f08c7
--- /dev/null
+++ b/src/3d/scene_loader.h
@@ -0,0 +1,14 @@
+#pragma once
+
+#include "3d/scene.h"
+#include <cstdint>
+#include <cstddef>
+
+// SceneLoader handles parsing of binary scene files (.bin) exported from Blender.
+// It populates a Scene object with objects, lights, and cameras.
+class SceneLoader {
+ public:
+ // Loads a scene from a binary buffer.
+ // Returns true on success, false on failure (e.g., invalid magic, version mismatch).
+ static bool LoadScene(Scene& scene, const uint8_t* data, size_t size);
+};