Loading...
Searching...
No Matches
Asset.h
Go to the documentation of this file.
1//
2// Created by denzel on 10/04/2025.
3//
4
5#pragma once
6#include "ModelLoader.h"
7
8namespace hellfire {
9 class Scene;
10 using EntityID = uint32_t;
11
12 class Asset {
13 public:
14 Asset() = default;
15
16
17 static EntityID load(Scene* scene, const std::filesystem::path& file_path, const unsigned int import_flags = 0) {
18 return Addons::ModelLoader::load_model(scene, file_path, import_flags);
19 }
20
21 };
22}
static EntityID load_model(Scene *scene, const std::filesystem::path &filepath, unsigned int import_flags=0)
Asset()=default
static EntityID load(Scene *scene, const std::filesystem::path &file_path, const unsigned int import_flags=0)
Definition Asset.h:17
Manages a collection of entities and their hierarchical relationships.
Definition Scene.h:24