14 explicit TextBuffer(gsl::not_null<IFontAtlas*> atlas, std::size_t limit,
float n_line_spacing = 1.5f);
17 void push_front(std::span<std::string> lines, kvf::Color color);
19 [[nodiscard]]
auto get_size() const -> glm::vec2 {
return m_size; }
31 gsl::not_null<IFontAtlas*> m_atlas;
33 float m_n_line_spacing;
35 std::deque<Line> m_lines{};
37 std::vector<kvf::ttf::GlyphLayout> m_layouts{};
38 TextGeometry m_geometry{};
Wall of text as a single Primitive.
Definition text_buffer.hpp:12
auto to_primitive() const -> Primitive
void push_front(std::span< std::string > lines, kvf::Color color)
TextBuffer(gsl::not_null< IFontAtlas * > atlas, std::size_t limit, float n_line_spacing=1.5f)
auto get_size() const -> glm::vec2
Definition text_buffer.hpp:19
void push_front(std::string text, kvf::Color color)
Definition text_buffer.hpp:16