17 constexpr float k_single_texture_weight = 1.F;
22 const std::shared_ptr<Core::VKImage>&
image,
35 const std::shared_ptr<Buffers::TextureBuffer>& buf,
42 std::string_view text,
43 std::optional<Portal::Text::PressParams> params,
54void Element::set_text(std::string_view text, std::optional<Portal::Text::PressParams> params)
static std::shared_ptr< TextSlice > make(FormaTarget target, Kinesis::AABB2D bounds, Text::PressParams params, std::string_view text)
Draw text in bounds on target.
std::array< Kakshya::MeshVertex, 6 > textured_mesh_rect(Kinesis::AABB2D region, float weight, glm::vec3 color)
Generate a UV-mapped TRIANGLE_LIST quad (6 vertices, 2 triangles) from an AABB2D, as Kakshya::MeshVer...
Axis-aligned bounding rectangle in a 2D coordinate space.
Construction parameters for press().