14 const std::shared_ptr<Core::Window>& window,
15 std::string_view text,
16 glm::uvec2 pixel_dims)
const
19 .
color = { 1.F, 1.F, 1.F, 1.F },
20 .budget_h = pixel_dims.y,
25 auto buf = std::make_shared<Buffers::FormaBuffer>(
28 buf->setup_rendering({
29 .target_window = window,
30 .additional_textures = { {
"text", text_image } },
33 return { .buf = std::move(buf), .text_image = std::move(text_image) };
std::shared_ptr< Buffers::TextBuffer > press(std::string_view text, const PressParams ¶ms)
Composite a UTF-8 string into a new TextBuffer.
static VertexLayout for_meshes(uint32_t stride=60)
Factory: layout for MeshVertex (position, color, weight, uv, normal, tangent)
glm::vec4 color
RGBA color applied to all glyphs.
Construction parameters for press().