Horizon
Loading...
Searching...
No Matches
bitmap_font_util.hpp
1#pragma once
2
3namespace horizon::bitmap_font {
4void load_texture();
5
6class GlyphInfo {
7public:
8 unsigned int atlas_x = 0, atlas_y = 0;
9 unsigned int atlas_w = 0, atlas_h = 0;
10 float minx = 0, maxx = 0;
11 float miny = 0, maxy = 0;
12 float advance = 0;
13 bool is_valid() const
14 {
15 return atlas_w && atlas_h;
16 }
17};
18
19GlyphInfo get_glyph_info(unsigned int glyph);
20unsigned int get_smooth_pixels();
21float get_min_y();
22} // namespace horizon::bitmap_font
Definition bitmap_font_util.hpp:6