Horizon
Loading...
Searching...
No Matches
src
canvas
bitmap_font_util.hpp
1
#pragma once
2
3
namespace
horizon::bitmap_font {
4
void
load_texture();
5
6
class
GlyphInfo
{
7
public
:
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
19
GlyphInfo
get_glyph_info(
unsigned
int
glyph);
20
unsigned
int
get_smooth_pixels();
21
float
get_min_y();
22
}
// namespace horizon::bitmap_font
horizon::bitmap_font::GlyphInfo
Definition
bitmap_font_util.hpp:6
Generated by
1.9.8