le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
text/util.hpp
Go to the documentation of this file.
1#pragma once
4
5namespace le::util {
6[[nodiscard]] auto clamp(TextHeight height) -> TextHeight;
7void write_glyphs(VertexArray& out, std::span<kvf::ttf::GlyphLayout const> glyphs, glm::vec2 position = {}, kvf::Color color = kvf::white_v);
8} // namespace le::util
Definition text/util.hpp:5
void write_glyphs(VertexArray &out, std::span< kvf::ttf::GlyphLayout const > glyphs, glm::vec2 position={}, kvf::Color color=kvf::white_v)
auto clamp(TextHeight height) -> TextHeight
TextHeight
Strongly typed integer for text height.
Definition text_height.hpp:6
Drawable vertex array.
Definition vertex_array.hpp:9