Files
OpenVulkano/openVulkanoCpp/Scene/Text/IFontAtlasGenerator.hpp
2025-03-02 19:25:41 +01:00

30 lines
718 B
C++

/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "Base/Wrapper.hpp"
#include "Data/Containers/Array.hpp"
#include <filesystem>
#include <set>
namespace OpenVulkano::Scene
{
class FontAtlas;
class IFontAtlasGenerator
{
public:
virtual ~IFontAtlasGenerator() = default;
void GenerateAtlas(const std::filesystem::path& fontFile, const std::set<uint32_t>& charset);
virtual void GenerateAtlas(const Array<char>& fontData, const std::set<uint32_t>& charset) = 0;
virtual const Ptr<FontAtlas>& GetAtlas() const = 0;
};
}