2022-04-13 13:01:35 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "MinimalEngine.h"
|
|
|
|
|
#include "Containers/List.h"
|
|
|
|
|
#include <filesystem>
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
DECLARE_REF(FontAsset)
|
|
|
|
|
DECLARE_NAME_REF(Gfx, Graphics)
|
|
|
|
|
class FontLoader
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FontLoader(Gfx::PGraphics graphic);
|
|
|
|
|
~FontLoader();
|
2023-01-21 18:43:21 +01:00
|
|
|
void importAsset(const std::filesystem::path& filePath, const std::string& importPath);
|
2022-04-13 13:01:35 +02:00
|
|
|
private:
|
|
|
|
|
void import(std::filesystem::path path, PFontAsset asset);
|
|
|
|
|
Gfx::PGraphics graphics;
|
|
|
|
|
};
|
|
|
|
|
DEFINE_REF(FontLoader)
|
|
|
|
|
} // namespace Seele
|