From a5e3e1bdb104555394e9f3aad6d1cf07e93998bf Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 09:18:32 +0100 Subject: refactor(3d): SceneLoader to namespace Refactors the SceneLoader class to a namespace. Since it only contained a single static utility function, a namespace is a more appropriate and idiomatic C++ construct. No functional changes. --- src/3d/scene_loader.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/3d/scene_loader.h') diff --git a/src/3d/scene_loader.h b/src/3d/scene_loader.h index eabfb7a..c4fb9e9 100644 --- a/src/3d/scene_loader.h +++ b/src/3d/scene_loader.h @@ -4,12 +4,11 @@ #include #include -// 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); -}; +namespace SceneLoader { + +// Loads a scene from a binary buffer. +// Returns true on success, false on failure (e.g., invalid magic, version +// mismatch). +bool LoadScene(Scene& scene, const uint8_t* data, size_t size); + +} // namespace SceneLoader -- cgit v1.2.3