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)
|
2023-02-01 22:13:04 +01:00
|
|
|
struct FontImportArgs
|
|
|
|
|
{
|
|
|
|
|
std::filesystem::path filePath;
|
|
|
|
|
std::string importPath;
|
|
|
|
|
};
|
2022-04-13 13:01:35 +02:00
|
|
|
class FontLoader
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FontLoader(Gfx::PGraphics graphic);
|
|
|
|
|
~FontLoader();
|
2023-02-01 22:13:04 +01:00
|
|
|
void importAsset(FontImportArgs args);
|
2022-04-13 13:01:35 +02:00
|
|
|
private:
|
2023-02-01 22:13:04 +01:00
|
|
|
void import(FontImportArgs args, PFontAsset asset);
|
2022-04-13 13:01:35 +02:00
|
|
|
Gfx::PGraphics graphics;
|
|
|
|
|
};
|
|
|
|
|
DEFINE_REF(FontLoader)
|
|
|
|
|
} // namespace Seele
|