diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-26 17:48:11 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-01-26 17:48:11 +0000 |
commit | 30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7 (patch) | |
tree | 0e347320e8295f03efb3d12bd85e76f838bf51d3 /ui/font.h | |
parent | Always set pixel unpack alignment before generating font texture content (diff) | |
download | ilt-30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7.tar.bz2 ilt-30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7.tar.xz ilt-30f58cc3832bd1b5a5cadf4b0a4a9d47d024f9f7.zip |
Remove the static font cache
Each thing can own/share a font rendering itself
Diffstat (limited to 'ui/font.h')
-rw-r--r-- | ui/font.h | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -1,22 +1,17 @@ #pragma once #include <array> -#include <cache.h> #include <cstddef> -#include <cstdint> #include <filesystem> #include <glArrays.h> #include <glad/gl.h> #include <glm/glm.hpp> #include <map> -#include <string_view> #include <unicode.h> #include <vector> class Font { public: - static Cache<Font, std::filesystem::path, unsigned int> cachedFontRenderings; - Font(std::filesystem::path path, unsigned int height); using Quad = std::array<glm::vec4, 4>; |