Drawable geometry for text. More...
#include <le2d/text/text_geometry.hpp>
Public Member Functions | |
| auto | get_vertices () const -> std::span< Vertex const > final |
| auto | get_indices () const -> std::span< std::uint32_t const > final |
| auto | get_topology () const -> vk::PrimitiveTopology final |
| void | append_glyphs (std::span< kvf::ttf::GlyphLayout const > layouts, glm::vec2 offset={}, kvf::Color color=kvf::white_v) |
| void | clear_vertices () |
| auto | get_vertex_array () const -> VertexArray const & |
| auto | to_primitive (ITexture const &font_atlas) const -> Primitive |
Additional Inherited Members | |
Static Public Attributes inherited from le::IGeometry | |
| static constexpr auto | default_length_v {200.0f} |
Drawable geometry for text.
| void le::TextGeometry::append_glyphs | ( | std::span< kvf::ttf::GlyphLayout const > | layouts, |
| glm::vec2 | offset = {}, |
||
| kvf::Color | color = kvf::white_v |
||
| ) |
|
inline |
|
inlinefinalvirtual |
Implements le::IGeometry.
|
inlinefinalvirtual |
Implements le::IGeometry.
|
inline |
|
inlinefinalvirtual |
Implements le::IGeometry.