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

23 lines
568 B
C++
Raw Normal View History

2020-06-02 11:46:18 +02:00
#pragma once
#include "MinimalEngine.h"
#include "Containers/List.h"
2020-08-11 22:38:19 +02:00
#include <filesystem>
2020-06-02 11:46:18 +02:00
namespace Seele
{
2021-10-19 23:04:38 +02:00
DECLARE_REF(MaterialAsset)
2021-04-01 16:40:14 +02:00
DECLARE_NAME_REF(Gfx, Graphics)
2020-06-02 11:46:18 +02:00
class MaterialLoader
{
public:
MaterialLoader(Gfx::PGraphics graphic);
~MaterialLoader();
2021-11-11 20:12:50 +01:00
void importAsset(const std::filesystem::path& name);
2021-10-19 23:04:38 +02:00
PMaterialAsset getPlaceHolderMaterial();
2020-06-02 11:46:18 +02:00
private:
2022-02-24 22:38:26 +01:00
void import(std::filesystem::path filePath, PMaterialAsset asset);
2020-09-19 14:36:50 +02:00
Gfx::PGraphics graphics;
2021-10-19 23:04:38 +02:00
PMaterialAsset placeholderMaterial;
2020-06-02 11:46:18 +02:00
};
2021-04-01 16:40:14 +02:00
DEFINE_REF(MaterialLoader)
2020-06-02 11:46:18 +02:00
} // namespace Seele