1#ifndef INTERNAL_H
2#define INTERNAL_H
3
4#include "alba.h"
5
6#include "hashmap.h"
7
8typedef struct
9{
10 struct hashmap* glyphs;
11 int dirty;
12 DynArray glyph_sizes; // in w, h order
13} Atlas;
14
15Atlas atlas_new(uint32_t capacity);
16void atlas_reserve(Atlas* atlas, uint32_t capacity);
17void atlas_append(Atlas* atlas, FT_Face face, uint32_t character);
18void atlas_generate_image(const Atlas* atlas);
19void atlas_release(const Atlas* atlas);
20
21#endif // INTERNAL_H