Files
Seele/src/Engine/Asset/MeshLoader.h
T

24 lines
523 B
C++
Raw Normal View History

2020-06-02 11:46:18 +02:00
#pragma once
#include "MinimalEngine.h"
#include "Containers/List.h"
#include <thread>
#include <future>
2020-08-11 22:38:19 +02:00
#include <filesystem>
2020-06-02 11:46:18 +02:00
namespace Seele
{
DECLARE_REF(MeshAsset)
DECLARE_NAME_REF(Gfx, Graphics);
class MeshLoader
{
public:
MeshLoader(Gfx::PGraphics graphic);
~MeshLoader();
2020-06-08 01:44:47 +02:00
void importAsset(const std::filesystem::path& filePath);
2020-06-02 11:46:18 +02:00
private:
2020-06-08 01:44:47 +02:00
void import(const std::filesystem::path& path);
2020-06-02 11:46:18 +02:00
List<std::future<void>> futures;
Gfx::PGraphics graphics;
};
DEFINE_REF(MeshLoader);
} // namespace Seele