Subpixel rendering (#186)
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/186 Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com> Co-authored-by: ohyzha <oleksii.hyzha.ext@madvoxel.com> Co-committed-by: ohyzha <oleksii.hyzha.ext@madvoxel.com>
This commit is contained in:
@@ -46,11 +46,15 @@ namespace OpenVulkano::Scene
|
||||
|
||||
public:
|
||||
FontAtlas() = default;
|
||||
FontAtlas(const Math::Vector2ui textureResolution, const double lineHeight, const FontAtlasType atlasType) { Init(textureResolution, lineHeight, atlasType); }
|
||||
FontAtlas(const Math::Vector2ui textureResolution, const double lineHeight, const FontAtlasType atlasType,
|
||||
DataFormat dataFormat)
|
||||
{
|
||||
Init(textureResolution, lineHeight, atlasType, dataFormat);
|
||||
}
|
||||
FontAtlas(const std::filesystem::path& path);
|
||||
FontAtlas(const std::span<char> data) { Load(data); }
|
||||
|
||||
void Init(Math::Vector2ui textureResolution, double lineHeight, FontAtlasType atlasType);
|
||||
void Init(Math::Vector2ui textureResolution, double lineHeight, FontAtlasType atlasType, DataFormat dataFormat);
|
||||
|
||||
void Save(const std::filesystem::path& path) const;
|
||||
void Load(std::span<char> data);
|
||||
|
||||
Reference in New Issue
Block a user