8#include "../geometry/module.hpp"
10namespace hi::inline
v1 {
12class glyph_atlas_info {
35 [[nodiscard]]
constexpr bool empty() const noexcept
37 return size == extent2{};
40 [[nodiscard]]
constexpr operator bool() const noexcept
45 constexpr glyph_atlas_info() noexcept = default;
#define hi_axiom(expression,...)
Specify an axiom; an expression that is true.
Definition assert.hpp:253
DOXYGEN BUG.
Definition algorithm.hpp:13
constexpr T ceil(T value, T alignment) noexcept
The smallest multiple of alignment greater than or equal to value.
Definition math.hpp:127
constexpr T floor(T value, T alignment) noexcept
The greatest multiple of alignment less than or equal to value.
Definition math.hpp:116
scale2 border_scale
The scaling factor used for scaling a quad to include the border.
Definition glyph_atlas_info.hpp:27
point3 position
pixel coordinates.
Definition glyph_atlas_info.hpp:19
extent2 size
Size of the glyph in pixels in the texture map.
Definition glyph_atlas_info.hpp:23
aarectangle texture_coordinates
The position and size of the glyph in the texture in UV coordinates.
Definition glyph_atlas_info.hpp:33
A rectangle / parallelogram in 3D space.
Definition rectangle.hpp:20