cangine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
text_renderer.hpp File Reference
#include <iostream>
#include <vector>
#include <memory>
#include <cstdint>
#include <unordered_map>
#include <ft2build.h>
#include "../../types/types.hpp"
#include "../texture.hpp"
#include "../../util/color.hpp"
#include "../../shapes/shapes.hpp"
Include dependency graph for text_renderer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cangine::Character
 A single cached glyph: its texture and layout metrics. More...
 
struct  cangine::Font
 A loaded font face plus its cache of rasterized glyphs. More...
 
class  cangine::TextRenderer
 Singleton that loads fonts and renders text via FreeType. More...
 

Namespaces

namespace  cangine
 

Functions

std::vector< uint32_t > cangine::utf8_to_codepoints (const std::string &str)
 Decodes a UTF-8 string into a list of Unicode codepoints.