5#include "../geometry/point.hpp"
6#include "../geometry/extent.hpp"
7#include "../geometry/scale.hpp"
8#include "../geometry/axis_aligned_rectangle.hpp"
10namespace hi::inline v1 {
35 [[nodiscard]]
constexpr bool empty() const noexcept
40 [[nodiscard]]
constexpr operator bool() const noexcept
45 constexpr glyph_atlas_info() noexcept = default;
57 border_scale(border_scale),
58 texture_coordinates(bounding_rectangle(texture_coordinate_scale *
rectangle{position, size}))
60 hi_axiom(position == floor(position));
61 hi_axiom(size == ceil(size));
Class which represents an axis-aligned rectangle.
Definition axis_aligned_rectangle.hpp:20
A rectangle / parallelogram in 3D space.
Definition rectangle.hpp:20
Definition glyph_atlas_info.hpp:12
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