Files
Seele/src/Editor/Asset/FontLoader.h
T

25 lines
531 B
C++
Raw Normal View History

2022-04-13 13:01:35 +02:00
#pragma once
#include "Containers/List.h"
2024-06-09 12:20:04 +02:00
#include "MinimalEngine.h"
2022-04-13 13:01:35 +02:00
#include <filesystem>
2024-06-09 12:20:04 +02:00
namespace Seele {
2022-04-13 13:01:35 +02:00
DECLARE_REF(FontAsset)
DECLARE_NAME_REF(Gfx, Graphics)
2024-06-09 12:20:04 +02:00
struct FontImportArgs {
2023-02-01 22:13:04 +01:00
std::filesystem::path filePath;
std::string importPath;
};
2024-06-09 12:20:04 +02:00
class FontLoader {
public:
2022-04-13 13:01:35 +02:00
FontLoader(Gfx::PGraphics graphic);
~FontLoader();
2023-02-01 22:13:04 +01:00
void importAsset(FontImportArgs args);
2024-06-09 12:20:04 +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