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