18 lines
475 B
C++
18 lines
475 B
C++
#pragma once
|
|
|
|
#include "entt.hpp"
|
|
#include <string>
|
|
|
|
class ModelManager;
|
|
class ShaderManager;
|
|
|
|
|
|
// Set global context used by scene loading
|
|
void SetSceneContext(entt::registry* registry, ModelManager* modelManager, ShaderManager* shaderManager);
|
|
|
|
// Load a scene from a TOML-like file. Returns the root entity (or entt::null on failure).
|
|
entt::entity LoadSceneFromFile(const std::string& path, bool clearExisting);
|
|
|
|
// Clear all entities from the registry
|
|
void ClearScene();
|