FreeTypeFontResourceManager.ixx File
FreeType-based font loading and glyph caching for OpenGL text rendering. More...
Included Headers
#include <string_view>
#include <cassert>
#include <ft2build.h>
#include <glad/gl.h>
#include <ostream>
#include <ranges>
#include <unordered_map>
#include <helios.engine.modules.ui.widgets.types.FontId>
#include <helios.rendering.text.Glyph>
#include <helios.rendering.text.FontResourceProvider>
Namespaces Index
| namespace | helios |
| namespace | ext |
|
Platform-specific extensions and backend implementations. More... | |
| namespace | opengl |
|
OpenGL-specific implementations. More... | |
| namespace | rendering |
|
OpenGL rendering implementations. More... | |
Classes Index
| class | FreeTypeFontResourceManager |
|
FreeType-based implementation of `FontResourceProvider` for OpenGL. More... | |
| struct | FontCache |
|
Internal cache structure for a single font's glyphs. More... | |
Description
FreeType-based font loading and glyph caching for OpenGL text rendering.
File Listing
The file content with the documentation metadata removed is:
28export namespace helios::ext::opengl::rendering {
60 class FreeTypeFontResourceManager : public helios::rendering::text::FontResourceProvider {
69 helios::rendering::text::Glyph characters[128];
76 helios::engine::modules::ui::widgets::types::FontId, FontCache
88 ~FreeTypeFontResourceManager() override {
92 for (const auto& glyph : cache.characters) {
94 glDeleteTextures(1, &glyph.textureId);
116 const helios::engine::modules::ui::widgets::types::FontId fontId,
202 const helios::engine::modules::ui::widgets::types::FontId fontId
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.