feat added working text renderer

This commit is contained in:
2025-07-14 23:44:36 +02:00
parent edc2372c96
commit 2375337bf2
70 changed files with 10533 additions and 262 deletions

View File

@ -0,0 +1,15 @@
#pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include "stb_truetype.h"
class FontManager {
public:
bool LoadFont(const std::string& id, const std::string& path);
stbtt_fontinfo* GetFont(const std::string& id);
private:
std::unordered_map<std::string, std::vector<unsigned char>> fontBuffers;
std::unordered_map<std::string, stbtt_fontinfo> fonts;
};