summaryrefslogtreecommitdiff
path: root/src/3d/scene_loader.h
blob: eabfb7adc7b948a10ec1b35e16f8dbd77a1ec2cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#include "3d/scene.h"
#include <cstddef>
#include <cstdint>

// 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);
};